Class AccountManagerServiceImpl
- java.lang.Object
-
- org.duracloud.account.db.util.impl.AccountManagerServiceImpl
-
- All Implemented Interfaces:
AccountManagerService
public class AccountManagerServiceImpl extends Object implements AccountManagerService
- Author:
- "Daniel Bernstein (dbernstein@duraspace.org)"
-
-
Constructor Summary
Constructors Constructor Description AccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr, AccountServiceFactory accountServiceFactory, Set<EventMonitor> eventMonitors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountServicecreateAccount(org.duracloud.account.db.model.util.AccountCreationInfo accountCreationInfo)Set<org.duracloud.account.db.model.AccountInfo>findAccountsByUserId(Long userId)AccountServicegetAccount(Long accountId)Returns anAccountServiceinterface.booleansubdomainAvailable(String subdomain)Checks to see if the subdomain is available.
-
-
-
Constructor Detail
-
AccountManagerServiceImpl
public AccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr, AccountServiceFactory accountServiceFactory, Set<EventMonitor> eventMonitors)
-
-
Method Detail
-
createAccount
public AccountService createAccount(org.duracloud.account.db.model.util.AccountCreationInfo accountCreationInfo) throws SubdomainAlreadyExistsException
- Specified by:
createAccountin interfaceAccountManagerService- Returns:
- AccountService
- Throws:
SubdomainAlreadyExistsException
-
getAccount
public AccountService getAccount(Long accountId) throws AccountNotFoundException
Description copied from interface:AccountManagerServiceReturns anAccountServiceinterface.- Specified by:
getAccountin interfaceAccountManagerService- Returns:
- Throws:
AccountNotFoundException
-
findAccountsByUserId
public Set<org.duracloud.account.db.model.AccountInfo> findAccountsByUserId(Long userId)
- Specified by:
findAccountsByUserIdin interfaceAccountManagerService- Returns:
- Returns the set of accounts loaded with the user's set of rights. If there are no accounts associated with the specified user, an empty set is returned.
-
subdomainAvailable
public boolean subdomainAvailable(String subdomain)
Description copied from interface:AccountManagerServiceChecks to see if the subdomain is available.- Specified by:
subdomainAvailablein interfaceAccountManagerService- Returns:
- true if the subdomain is available, otherwise file.
-
-