Class AccountServiceImpl
java.lang.Object
org.duracloud.account.db.util.impl.AccountServiceImpl
- All Implemented Interfaces:
AccountService
- Author:
- "Daniel Bernstein (dbernstein@duraspace.org)"
-
Constructor Summary
ConstructorsConstructorDescriptionAccountServiceImpl(AmaEndpoint amaEndpoint, org.duracloud.account.db.model.AccountInfo acct, org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr, org.duracloud.common.changenotifier.AccountChangeNotifier accountChangeNotifier, NotificationMgr notificationMgr, EmailTemplateService emailTemplateService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStorageProvider(org.duracloud.storage.domain.StorageProviderType storageProviderType) Adds a new secondary storage provider to this account.voidchangePrimaryStorageProvider(Long storageProviderId) Changes the primary storage provider to the one specified by the id.voiddeleteUserInvitation(Long invitationId) Deletes an invitation to this account.This method returns the id of accountSet<org.duracloud.account.db.model.UserInvitation>Gets a listing of the user invitations which are associated with this account.org.duracloud.account.db.model.StorageProviderAccountRetrieves the primary storage provider account infoSet<org.duracloud.account.db.model.StorageProviderAccount>Retrieves the info for all secondary storage provider accountsThis method returns the subdomain associated with this account.Set<org.duracloud.account.db.model.DuracloudUser>getUsers()org.duracloud.account.db.model.UserInvitationinviteUser(String emailAddress, String adminUsername) Invites a user to join this account by sending a notification to the provided email address.voidremoveStorageProvider(Long storageProviderId) Removes a storage provider from the list of secondary storage providers for this account.org.duracloud.account.db.model.AccountInfovoidstoreAccountInfo(String acctName, String orgName, String department) voidstoreAccountStatus(org.duracloud.account.db.model.AccountInfo.AccountStatus status)
-
Constructor Details
-
AccountServiceImpl
public AccountServiceImpl(AmaEndpoint amaEndpoint, org.duracloud.account.db.model.AccountInfo acct, org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr, org.duracloud.common.changenotifier.AccountChangeNotifier accountChangeNotifier, NotificationMgr notificationMgr, EmailTemplateService emailTemplateService) - Parameters:
acct-
-
-
Method Details
-
getUsers
- Specified by:
getUsersin interfaceAccountService- Returns:
- empty list
-
getAccountId
Description copied from interface:AccountServiceThis method returns the id of account- Specified by:
getAccountIdin interfaceAccountService- Returns:
- account id
-
retrieveAccountInfo
public org.duracloud.account.db.model.AccountInfo retrieveAccountInfo()- Specified by:
retrieveAccountInfoin interfaceAccountService- Returns:
-
getPrimaryStorageProvider
public org.duracloud.account.db.model.StorageProviderAccount getPrimaryStorageProvider()Description copied from interface:AccountServiceRetrieves the primary storage provider account info- Specified by:
getPrimaryStorageProviderin interfaceAccountService- Returns:
-
getSecondaryStorageProviders
Description copied from interface:AccountServiceRetrieves the info for all secondary storage provider accounts- Specified by:
getSecondaryStorageProvidersin interfaceAccountService- Returns:
-
addStorageProvider
public void addStorageProvider(org.duracloud.storage.domain.StorageProviderType storageProviderType) Description copied from interface:AccountServiceAdds a new secondary storage provider to this account.- Specified by:
addStorageProviderin interfaceAccountService
-
removeStorageProvider
Description copied from interface:AccountServiceRemoves a storage provider from the list of secondary storage providers for this account. The primary storage provider cannot be removed.- Specified by:
removeStorageProviderin interfaceAccountService
-
changePrimaryStorageProvider
Description copied from interface:AccountServiceChanges the primary storage provider to the one specified by the id.- Specified by:
changePrimaryStorageProviderin interfaceAccountService- Parameters:
storageProviderId- of the new primary storage provider.
-
storeAccountInfo
- Specified by:
storeAccountInfoin interfaceAccountService
-
storeAccountStatus
public void storeAccountStatus(org.duracloud.account.db.model.AccountInfo.AccountStatus status) - Specified by:
storeAccountStatusin interfaceAccountService
-
getSubdomain
Description copied from interface:AccountServiceThis method returns the subdomain associated with this account.- Specified by:
getSubdomainin interfaceAccountService- Returns:
- subdomain
-
inviteUser
public org.duracloud.account.db.model.UserInvitation inviteUser(String emailAddress, String adminUsername) Description copied from interface:AccountServiceInvites a user to join this account by sending a notification to the provided email address. The invitation sent to the user is also returned by this method, as it may be useful to an administrator.- Specified by:
inviteUserin interfaceAccountService- Parameters:
emailAddress- address at which to invite user- Returns:
- UserInvitation
-
getPendingInvitations
Description copied from interface:AccountServiceGets a listing of the user invitations which are associated with this account.- Specified by:
getPendingInvitationsin interfaceAccountService- Returns:
- UserInvitation set
-
deleteUserInvitation
Description copied from interface:AccountServiceDeletes an invitation to this account.- Specified by:
deleteUserInvitationin interfaceAccountService
-