Package org.duracloud.account.db.util
Interface AccountManagerService
-
- All Known Implementing Classes:
AccountManagerServiceImpl
public interface AccountManagerService- Author:
- Erik Paulsson Date: 7/17/13
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
subdomainAvailable
@Secured("role:ROLE_USER, scope:ANY") boolean subdomainAvailable(String subdomain)Checks to see if the subdomain is available.- Returns:
- true if the subdomain is available, otherwise file.
-
getAccount
@Secured("role:ROLE_USER, scope:SELF_ACCT") AccountService getAccount(Long accountId) throws AccountNotFoundExceptionReturns anAccountServiceinterface.- Parameters:
accountId-- Returns:
- Throws:
AccountNotFoundException
-
createAccount
@Secured("role:ROLE_USER, scope:ANY") AccountService createAccount(org.duracloud.account.db.model.util.AccountCreationInfo accountCreationInfo) throws SubdomainAlreadyExistsException- Parameters:
accountCreationInfo-- Returns:
- AccountService
- Throws:
SubdomainAlreadyExistsException
-
findAccountsByUserId
@Secured("role:ROLE_USER, scope:SELF_ID") Set<org.duracloud.account.db.model.AccountInfo> findAccountsByUserId(Long userId)- Parameters:
userId-- 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.
-
-