public class AccountServiceImpl extends Object implements AccountService
| Constructor and Description |
|---|
AccountServiceImpl(AmaEndpoint amaEndpoint,
org.duracloud.account.db.model.AccountInfo acct,
org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStorageProvider(org.duracloud.storage.domain.StorageProviderType storageProviderType)
Adds a new secondary storage provider to this account.
|
void |
changePrimaryStorageProvider(Long storageProviderId)
Changes the primary storage provider to the one specified by the id.
|
void |
deleteUserInvitation(Long invitationId)
Deletes an invitation to this account.
|
Long |
getAccountId()
This method returns the id of account
|
org.duracloud.account.db.model.ComputeProviderAccount |
getComputeProvider()
Retrieves the primary storage provider account info
|
Set<org.duracloud.account.db.model.UserInvitation> |
getPendingInvitations()
Gets a listing of the user invitations which are associated with this
account.
|
org.duracloud.account.db.model.StorageProviderAccount |
getPrimaryStorageProvider()
Retrieves the primary storage provider account info
|
Set<org.duracloud.account.db.model.StorageProviderAccount> |
getSecondaryStorageProviders()
Retrieves the info for all secondary storage provider accounts
|
String |
getSubdomain()
This method returns the subdomain associated with this account.
|
Set<org.duracloud.account.db.model.DuracloudUser> |
getUsers() |
org.duracloud.account.db.model.UserInvitation |
inviteUser(String emailAddress,
String adminUsername,
org.duracloud.notification.Emailer emailer)
Invites a user to join this account by sending a notification to the
provided email address.
|
void |
removeStorageProvider(Long storageProviderId)
Removes a storage provider from the list of secondary storage providers
for this account.
|
org.duracloud.account.db.model.AccountInfo |
retrieveAccountInfo() |
org.duracloud.account.db.model.ServerDetails |
retrieveServerDetails()
Retrieves ServerDetails if they are available (if this account type
makes user of ServerDetails).
|
void |
storeAccountInfo(String acctName,
String orgName,
String department) |
void |
storeAccountStatus(org.duracloud.account.db.model.AccountInfo.AccountStatus status) |
void |
storeServerDetails(org.duracloud.account.db.model.ServerDetails serverDetails) |
void |
storeSubdomain(String subdomain) |
public AccountServiceImpl(AmaEndpoint amaEndpoint, org.duracloud.account.db.model.AccountInfo acct, org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr)
acct - public Set<org.duracloud.account.db.model.DuracloudUser> getUsers()
getUsers in interface AccountServicepublic Long getAccountId()
AccountServicegetAccountId in interface AccountServicepublic org.duracloud.account.db.model.AccountInfo retrieveAccountInfo()
retrieveAccountInfo in interface AccountServicepublic org.duracloud.account.db.model.ServerDetails retrieveServerDetails()
AccountServiceretrieveServerDetails in interface AccountServicepublic void storeServerDetails(org.duracloud.account.db.model.ServerDetails serverDetails)
storeServerDetails in interface AccountServicepublic org.duracloud.account.db.model.StorageProviderAccount getPrimaryStorageProvider()
AccountServicegetPrimaryStorageProvider in interface AccountServicepublic org.duracloud.account.db.model.ComputeProviderAccount getComputeProvider()
AccountServicegetComputeProvider in interface AccountServicepublic Set<org.duracloud.account.db.model.StorageProviderAccount> getSecondaryStorageProviders()
AccountServicegetSecondaryStorageProviders in interface AccountServicepublic void addStorageProvider(org.duracloud.storage.domain.StorageProviderType storageProviderType)
AccountServiceaddStorageProvider in interface AccountServicepublic void removeStorageProvider(Long storageProviderId)
AccountServiceremoveStorageProvider in interface AccountServicepublic void changePrimaryStorageProvider(Long storageProviderId)
AccountServicechangePrimaryStorageProvider in interface AccountServicestorageProviderId - of the new primary storage provider.public void storeAccountInfo(String acctName, String orgName, String department)
storeAccountInfo in interface AccountServicepublic void storeAccountStatus(org.duracloud.account.db.model.AccountInfo.AccountStatus status)
storeAccountStatus in interface AccountServicepublic void storeSubdomain(String subdomain)
storeSubdomain in interface AccountServicepublic String getSubdomain()
AccountServicegetSubdomain in interface AccountServicepublic org.duracloud.account.db.model.UserInvitation inviteUser(String emailAddress, String adminUsername, org.duracloud.notification.Emailer emailer)
AccountServiceinviteUser in interface AccountServiceemailAddress - address at which to invite useremailer - utility for sending mailpublic Set<org.duracloud.account.db.model.UserInvitation> getPendingInvitations()
AccountServicegetPendingInvitations in interface AccountServicepublic void deleteUserInvitation(Long invitationId)
AccountServicedeleteUserInvitation in interface AccountServiceCopyright © 2009–2015 DuraSpace. All rights reserved.