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
60ecb564ea
commit
003787a69a
|
|
@ -40,5 +40,5 @@ public interface AccountDao extends GenericDao<AccountVO, Long> {
|
|||
List<AccountVO> findCleanups();
|
||||
List<AccountVO> findAdminAccountsForDomain(Long domainId);
|
||||
void markForCleanup(long accountId);
|
||||
List<AccountVO> listAccounts(String accountName, Long domainId);
|
||||
List<AccountVO> listAccounts(String accountName, Long domainId, Filter filter);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,10 +132,10 @@ public class AccountDaoImpl extends GenericDaoBase<AccountVO, Long> implements A
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<AccountVO> listAccounts(String accountName, Long domainId) {
|
||||
public List<AccountVO> listAccounts(String accountName, Long domainId, Filter filter) {
|
||||
SearchCriteria<AccountVO> sc = AccountNameSearch.create("accountName", accountName);
|
||||
sc.addAnd("domainId", SearchCriteria.Op.EQ, domainId);
|
||||
return listIncludingRemovedBy(sc);
|
||||
return listIncludingRemovedBy(sc, filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue