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
Constructors Constructor Description RootAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr, DuracloudUserService userService, org.duracloud.common.changenotifier.AccountChangeNotifier accountChangeNotifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateAccount(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 Detail
-
RootAccountManagerServiceImpl
@Autowired public RootAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr, DuracloudUserService userService, org.duracloud.common.changenotifier.AccountChangeNotifier accountChangeNotifier)
-
-
Method Detail
-
resetUsersPassword
public void resetUsersPassword(Long userId) throws DBNotFoundException, UnsentEmailException
Description copied from interface:RootAccountManagerServiceReset a user's password- Specified by:
resetUsersPasswordin interfaceRootAccountManagerService- Throws:
UnsentEmailExceptionDBNotFoundException
-
deleteUser
public void deleteUser(Long userId)
Description copied from interface:RootAccountManagerServiceDelete a user from the system- Specified by:
deleteUserin interfaceRootAccountManagerService
-
setRootUser
public void setRootUser(Long userId)
Description copied from interface:RootAccountManagerServiceAdd root to a user- Specified by:
setRootUserin interfaceRootAccountManagerService
-
unsetRootUser
public void unsetRootUser(Long userId)
Description copied from interface:RootAccountManagerServiceRemove root from a user- Specified by:
unsetRootUserin interfaceRootAccountManagerService
-
deleteAccount
public void deleteAccount(Long accountId)
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
public org.duracloud.account.db.model.AccountInfo getAccount(Long id)
Description copied from interface:RootAccountManagerServiceGets an account from the system- Specified by:
getAccountin interfaceRootAccountManagerService
-
activateAccount
public void activateAccount(Long accountId)
Description copied from interface:RootAccountManagerServiceSets an account in the system to active- Specified by:
activateAccountin interfaceRootAccountManagerService
-
listAllAccounts
public Set<org.duracloud.account.db.model.AccountInfo> listAllAccounts(String filter)
- Specified by:
listAllAccountsin interfaceRootAccountManagerService- Parameters:
filter- optional filter on org name- Returns:
-
listAllUsers
public Set<org.duracloud.account.db.model.DuracloudUser> listAllUsers(String filter)
- Specified by:
listAllUsersin interfaceRootAccountManagerService- Parameters:
filter- optional filter on username- Returns:
-
listAllRootUsers
public Set<org.duracloud.account.db.model.DuracloudUser> listAllRootUsers(String filter)
- Specified by:
listAllRootUsersin interfaceRootAccountManagerService- Parameters:
filter- optional filter on username- Returns:
-
-