Package org.duracloud.account.db.util
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 Summary
Modifier and TypeMethodDescriptionvoidactivateAccount(Long id) Sets an account in the system to activevoiddeleteAccount(Long id) Delete an account from the systemvoiddeleteUser(Long id) Delete a user from the systemorg.duracloud.account.db.model.AccountInfogetAccount(Long id) Gets an account from the systemList<org.duracloud.account.db.model.StorageProviderAccount>Gets secondary storage providers for an account from the systemSet<org.duracloud.account.db.model.AccountInfo>listAllAccounts(String filter) Set<org.duracloud.account.db.model.DuracloudUser>listAllRootUsers(String filter) Set<org.duracloud.account.db.model.DuracloudUser>listAllUsers(String filter) voidresetUsersPassword(Long userId) Reset a user's passwordvoidsetRootUser(Long id) Add root to a uservoidsetupStorageProvider(Long id, String username, String password, Map<String, String> properties, int storageLimit) Sets up a storage providervoidunsetRootUser(Long id) Remove root from a user
-
Method Details
-
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
Add root to a user- Parameters:
id-
-
unsetRootUser
Remove root from a user- Parameters:
id-
-
deleteUser
Delete a user from the system- Parameters:
id-
-
deleteAccount
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
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-
-
resetUsersPassword
@Secured("role:ROLE_ROOT, scope:ANY") void resetUsersPassword(Long userId) throws DBNotFoundException, UnsentEmailException Reset a user's password- Parameters:
userId-- Throws:
UnsentEmailExceptionDBNotFoundException
-