public class RootAccountManagerServiceImpl extends Object implements RootAccountManagerService
| Constructor and Description |
|---|
RootAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr,
NotificationMgr notificationMgr,
UserDetailsPropagator propagator,
DuracloudInstanceManagerService instanceManagerService,
DuracloudUserService userService,
AmaEndpoint amaEndpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateAccount(Long accountId)
Sets an account in the system to active
|
void |
addDuracloudImage(String imageId,
String version,
String description) |
void |
createServerImage(String providerImageId,
String version,
String description,
String password,
boolean latest,
String iamRole,
String cfKeyPath,
String cfAccountId,
String cfKeyId)
Creates a service image in the system
|
void |
deleteAccount(Long accountId)
Delete an account from the system
|
void |
deleteServerImage(Long id)
Deletes a server image from the system
|
void |
deleteUser(Long userId)
Delete a user from the system
|
void |
editServerImage(Long id,
String providerImageId,
String version,
String description,
String password,
boolean latest,
String iamRole,
String cfKeyPath,
String cfAccountId,
String cfKeyId)
Edits a service image in 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
|
org.duracloud.account.db.model.ServerImage |
getServerImage(Long id)
Gets a server image from the system
|
Set<org.duracloud.account.db.model.AccountInfo> |
listAllAccounts(String filter) |
Set<org.duracloud.account.db.model.ServerImage> |
listAllServerImages(String filter) |
Set<org.duracloud.account.db.model.DuracloudUser> |
listAllUsers(String filter) |
void |
resetUsersPassword(Long userId)
Reset a user's password
|
void |
setupComputeProvider(Long providerId,
String username,
String password,
String elasticIp,
String keypair,
String securityGroup)
Sets up a compute provider
|
void |
setupStorageProvider(Long providerId,
String username,
String password,
Map<String,String> properties,
int storageLimit)
Sets up a storage provider
|
public RootAccountManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr duracloudRepoMgr,
NotificationMgr notificationMgr,
UserDetailsPropagator propagator,
DuracloudInstanceManagerService instanceManagerService,
DuracloudUserService userService,
AmaEndpoint amaEndpoint)
public void addDuracloudImage(String imageId, String version, String description)
addDuracloudImage in interface RootAccountManagerServicepublic void resetUsersPassword(Long userId) throws DBNotFoundException, UnsentEmailException
RootAccountManagerServiceresetUsersPassword in interface RootAccountManagerServiceUnsentEmailExceptionDBNotFoundExceptionpublic void deleteUser(Long userId)
RootAccountManagerServicedeleteUser 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 void setupComputeProvider(Long providerId, String username, String password, String elasticIp, String keypair, String securityGroup)
RootAccountManagerServicesetupComputeProvider 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.ServerImage> listAllServerImages(String filter)
listAllServerImages in interface RootAccountManagerServicefilter - optional filter on provider image idpublic void createServerImage(String providerImageId, String version, String description, String password, boolean latest, String iamRole, String cfKeyPath, String cfAccountId, String cfKeyId)
RootAccountManagerServicecreateServerImage in interface RootAccountManagerServicepublic void editServerImage(Long id, String providerImageId, String version, String description, String password, boolean latest, String iamRole, String cfKeyPath, String cfAccountId, String cfKeyId)
RootAccountManagerServiceeditServerImage in interface RootAccountManagerServicepublic org.duracloud.account.db.model.ServerImage getServerImage(Long id)
RootAccountManagerServicegetServerImage in interface RootAccountManagerServicepublic void deleteServerImage(Long id)
RootAccountManagerServicedeleteServerImage in interface RootAccountManagerServiceCopyright © 2009–2016 DuraSpace. All rights reserved.