@Component(value="rootAccountManagerService") public class RootAccountManagerServiceImpl extends Object implements RootAccountManagerService
| Constructor and Description |
|---|
RootAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr,
DuracloudUserService userService,
org.duracloud.common.sns.AccountChangeNotifier accountChangeNotifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateAccount(Long accountId)
Sets an account in the system to active
|
void |
deleteAccount(Long accountId)
Delete an account from the system
|
void |
deleteUser(Long userId)
Delete a user from the system
|
org.duracloud.account.db.model.AccountInfo |
getAccount(Long id)
Gets an account from the system
|
List<org.duracloud.account.db.model.StorageProviderAccount> |
getSecondaryStorageProviders(Long accountId)
Gets secondary storage providers for an account from the system
|
Set<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) |
void |
resetUsersPassword(Long userId)
Reset a user's password
|
void |
setRootUser(Long userId)
Add root to a user
|
void |
setupStorageProvider(Long providerId,
String username,
String password,
Map<String,String> properties,
int storageLimit)
Sets up a storage provider
|
void |
unsetRootUser(Long userId)
Remove root from a user
|
@Autowired
public RootAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr,
DuracloudUserService userService,
org.duracloud.common.sns.AccountChangeNotifier accountChangeNotifier)
public void resetUsersPassword(Long userId) throws DBNotFoundException, UnsentEmailException
RootAccountManagerServiceresetUsersPassword in interface RootAccountManagerServiceUnsentEmailExceptionDBNotFoundExceptionpublic void deleteUser(Long userId)
RootAccountManagerServicedeleteUser in interface RootAccountManagerServicepublic void setRootUser(Long userId)
RootAccountManagerServicesetRootUser in interface RootAccountManagerServicepublic void unsetRootUser(Long userId)
RootAccountManagerServiceunsetRootUser in interface RootAccountManagerServicepublic void deleteAccount(Long accountId)
RootAccountManagerServicedeleteAccount in interface RootAccountManagerServicepublic List<org.duracloud.account.db.model.StorageProviderAccount> getSecondaryStorageProviders(Long accountId)
RootAccountManagerServicegetSecondaryStorageProviders in interface RootAccountManagerServicepublic void setupStorageProvider(Long providerId, String username, String password, Map<String,String> properties, int storageLimit)
RootAccountManagerServicesetupStorageProvider in interface RootAccountManagerServicepublic org.duracloud.account.db.model.AccountInfo getAccount(Long id)
RootAccountManagerServicegetAccount in interface RootAccountManagerServicepublic void activateAccount(Long accountId)
RootAccountManagerServiceactivateAccount in interface RootAccountManagerServicepublic Set<org.duracloud.account.db.model.AccountInfo> listAllAccounts(String filter)
listAllAccounts in interface RootAccountManagerServicefilter - optional filter on org namepublic Set<org.duracloud.account.db.model.DuracloudUser> listAllUsers(String filter)
listAllUsers in interface RootAccountManagerServicefilter - optional filter on usernamepublic Set<org.duracloud.account.db.model.DuracloudUser> listAllRootUsers(String filter)
listAllRootUsers in interface RootAccountManagerServicefilter - optional filter on usernameCopyright © 2009–2019 DuraSpace. All rights reserved.