mirror of https://github.com/apache/cloudstack.git
bug 8613: Added accountId to listUsageRecords API, use active account incase of multiple account with same name
status 8613: resolved fixed
This commit is contained in:
parent
c8842c33e7
commit
e51f4eae25
|
|
@ -39,5 +39,6 @@ public interface AccountDao extends GenericDao<AccountVO, Long> {
|
|||
List<AccountVO> findNewAccounts(Long minAccountId, Filter filter);
|
||||
List<AccountVO> findCleanups();
|
||||
List<AccountVO> findAdminAccountsForDomain(Long domainId);
|
||||
void markForCleanup(long accountId);
|
||||
void markForCleanup(long accountId);
|
||||
List<AccountVO> listAccounts(String accountName, Long domainId, Filter filter);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -179,5 +179,12 @@ public class AccountDaoImpl extends GenericDaoBase<AccountVO, Long> implements A
|
|||
account.setNeedsCleanup(true);
|
||||
update(accountId, account);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<AccountVO> listAccounts(String accountName, Long domainId, Filter filter) {
|
||||
SearchCriteria sc = AccountNameSearch.create("accountName", accountName);
|
||||
sc.addAnd("domainId", SearchCriteria.Op.EQ, domainId);
|
||||
return listBy(sc, filter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue