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
61a414fb8f
commit
60ecb564ea
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,6 +129,13 @@ public class AccountDaoImpl extends GenericDaoBase<AccountVO, Long> implements A
|
|||
SearchCriteria<AccountVO> sc = AccountNameSearch.create("accountName", accountName);
|
||||
sc.addAnd("domainId", SearchCriteria.Op.EQ, domainId);
|
||||
return findOneIncludingRemovedBy(sc);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AccountVO> listAccounts(String accountName, Long domainId) {
|
||||
SearchCriteria<AccountVO> sc = AccountNameSearch.create("accountName", accountName);
|
||||
sc.addAnd("domainId", SearchCriteria.Op.EQ, domainId);
|
||||
return listIncludingRemovedBy(sc);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue