Package org.duracloud.account.db.util
Interface RootAccountManagerService
-
- All Known Implementing Classes:
RootAccountManagerServiceImpl
public interface RootAccountManagerServiceAn interface for the account management application administrator.- Author:
- "Daniel Bernstein (dbernstein@duraspace.org)"
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivateAccount(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>getSecondaryStorageProviders(Long id)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 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-
-
resetUsersPassword
@Secured("role:ROLE_ROOT, scope:ANY") void resetUsersPassword(Long userId) throws DBNotFoundException, UnsentEmailExceptionReset a user's password- Parameters:
userId-- Throws:
UnsentEmailExceptionDBNotFoundException
-
-