Class RootAccountManagerServiceImpl
java.lang.Object
org.duracloud.account.db.util.impl.RootAccountManagerServiceImpl
- All Implemented Interfaces:
RootAccountManagerService
@Component("rootAccountManagerService")
public class RootAccountManagerServiceImpl
extends Object
implements RootAccountManagerService
- Author:
- Andrew Woods Date: Oct 9, 2010
-
Constructor Summary
ConstructorsConstructorDescriptionRootAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr, DuracloudUserService userService, org.duracloud.common.changenotifier.AccountChangeNotifier accountChangeNotifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateAccount(Long accountId) Sets an account in the system to activevoiddeleteAccount(Long accountId) Delete an account from the systemvoiddeleteUser(Long userId) 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 accountId) 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 userId) Add root to a uservoidsetupStorageProvider(Long providerId, String username, String password, Map<String, String> properties, int storageLimit) Sets up a storage providervoidunsetRootUser(Long userId) Remove root from a user
-
Constructor Details
-
RootAccountManagerServiceImpl
@Autowired public RootAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr, DuracloudUserService userService, org.duracloud.common.changenotifier.AccountChangeNotifier accountChangeNotifier)
-
-
Method Details
-
resetUsersPassword
Description copied from interface:RootAccountManagerServiceReset a user's password- Specified by:
resetUsersPasswordin interfaceRootAccountManagerService- Throws:
UnsentEmailExceptionDBNotFoundException
-
deleteUser
Description copied from interface:RootAccountManagerServiceDelete a user from the system- Specified by:
deleteUserin interfaceRootAccountManagerService
-
setRootUser
Description copied from interface:RootAccountManagerServiceAdd root to a user- Specified by:
setRootUserin interfaceRootAccountManagerService
-
unsetRootUser
Description copied from interface:RootAccountManagerServiceRemove root from a user- Specified by:
unsetRootUserin interfaceRootAccountManagerService
-
deleteAccount
Description copied from interface:RootAccountManagerServiceDelete an account from the system- Specified by:
deleteAccountin interfaceRootAccountManagerService
-
getSecondaryStorageProviders
public List<org.duracloud.account.db.model.StorageProviderAccount> getSecondaryStorageProviders(Long accountId) Description copied from interface:RootAccountManagerServiceGets secondary storage providers for an account from the system- Specified by:
getSecondaryStorageProvidersin interfaceRootAccountManagerService
-
setupStorageProvider
public void setupStorageProvider(Long providerId, String username, String password, Map<String, String> properties, int storageLimit) Description copied from interface:RootAccountManagerServiceSets up a storage provider- Specified by:
setupStorageProviderin interfaceRootAccountManagerService
-
getAccount
Description copied from interface:RootAccountManagerServiceGets an account from the system- Specified by:
getAccountin interfaceRootAccountManagerService
-
activateAccount
Description copied from interface:RootAccountManagerServiceSets an account in the system to active- Specified by:
activateAccountin interfaceRootAccountManagerService
-
listAllAccounts
- Specified by:
listAllAccountsin interfaceRootAccountManagerService- Parameters:
filter- optional filter on org name- Returns:
-
listAllUsers
- Specified by:
listAllUsersin interfaceRootAccountManagerService- Parameters:
filter- optional filter on username- Returns:
-
listAllRootUsers
- Specified by:
listAllRootUsersin interfaceRootAccountManagerService- Parameters:
filter- optional filter on username- Returns:
-