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
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.
-
Method Details
-
subdomainAvailable
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 AccountNotFoundException Returns 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.
-