Class AccountManagerServiceImpl
java.lang.Object
org.duracloud.account.db.util.impl.AccountManagerServiceImpl
- All Implemented Interfaces:
AccountManagerService
- Author:
- "Daniel Bernstein (dbernstein@duraspace.org)"
-
Constructor Summary
ConstructorsConstructorDescriptionAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr, AccountServiceFactory accountServiceFactory, Set<EventMonitor> eventMonitors) -
Method Summary
Modifier and TypeMethodDescriptioncreateAccount(org.duracloud.account.db.model.util.AccountCreationInfo accountCreationInfo) Set<org.duracloud.account.db.model.AccountInfo>findAccountsByUserId(Long userId) getAccount(Long accountId) Returns anAccountServiceinterface.booleansubdomainAvailable(String subdomain) Checks to see if the subdomain is available.
-
Constructor Details
-
AccountManagerServiceImpl
public AccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr, AccountServiceFactory accountServiceFactory, Set<EventMonitor> eventMonitors)
-
-
Method Details
-
createAccount
public AccountService createAccount(org.duracloud.account.db.model.util.AccountCreationInfo accountCreationInfo) throws SubdomainAlreadyExistsException - Specified by:
createAccountin interfaceAccountManagerService- Returns:
- AccountService
- Throws:
SubdomainAlreadyExistsException
-
getAccount
Description copied from interface:AccountManagerServiceReturns anAccountServiceinterface.- Specified by:
getAccountin interfaceAccountManagerService- Returns:
- Throws:
AccountNotFoundException
-
findAccountsByUserId
- 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
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.
-