Interface AccountManagerService

All Known Implementing Classes:
AccountManagerServiceImpl

public interface AccountManagerService
Author:
Erik Paulsson Date: 7/17/13
  • Method Details

    • 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 AccountNotFoundException
      Returns an AccountService interface.
      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.