Interface RootAccountManagerService

  • All Known Implementing Classes:
    RootAccountManagerServiceImpl

    public interface RootAccountManagerService
    An interface for the account management application administrator.
    Author:
    "Daniel Bernstein (dbernstein@duraspace.org)"
    • Method Detail

      • listAllAccounts

        @Secured("role:ROLE_ROOT, scope:ANY")
        Set<org.duracloud.account.db.model.AccountInfo> listAllAccounts​(String filter)
        Parameters:
        filter - optional filter on org name
        Returns:
      • listAllUsers

        @Secured("role:ROLE_ROOT, scope:ANY")
        Set<org.duracloud.account.db.model.DuracloudUser> listAllUsers​(String filter)
        Parameters:
        filter - optional filter on username
        Returns:
      • listAllRootUsers

        @Secured("role:ROLE_ROOT, scope:ANY")
        Set<org.duracloud.account.db.model.DuracloudUser> listAllRootUsers​(String filter)
        Parameters:
        filter - optional filter on username
        Returns:
      • setRootUser

        @Secured("role:ROLE_ROOT, scope:ANY")
        void setRootUser​(Long id)
        Add root to a user
        Parameters:
        id -
      • unsetRootUser

        @Secured("role:ROLE_ROOT, scope:ANY")
        void unsetRootUser​(Long id)
        Remove root from a user
        Parameters:
        id -
      • deleteUser

        @Secured("role:ROLE_ROOT, scope:ANY")
        void deleteUser​(Long id)
        Delete a user from the system
        Parameters:
        id -
      • deleteAccount

        @Secured("role:ROLE_ROOT, scope:ANY")
        void deleteAccount​(Long id)
        Delete an account from the system
        Parameters:
        id -
      • getAccount

        @Secured("role:ROLE_ROOT, scope:ANY")
        org.duracloud.account.db.model.AccountInfo getAccount​(Long id)
        Gets an account from the system
        Parameters:
        id -
      • getSecondaryStorageProviders

        @Secured("role:ROLE_ROOT, scope:ANY")
        List<org.duracloud.account.db.model.StorageProviderAccount> getSecondaryStorageProviders​(Long id)
        Gets secondary storage providers for an account from the system
        Parameters:
        id -
      • activateAccount

        @Secured("role:ROLE_ROOT, scope:ANY")
        void activateAccount​(Long id)
        Sets an account in the system to active
        Parameters:
        id -
      • setupStorageProvider

        @Secured("role:ROLE_ROOT, scope:ANY")
        void setupStorageProvider​(Long id,
                                  String username,
                                  String password,
                                  Map<String,​String> properties,
                                  int storageLimit)
        Sets up a storage provider
        Parameters:
        id -
        username -
        password -
        storageLimit -