public class AccountServiceSecuredImpl extends Object implements AccountService
| Constructor and Description |
|---|
AccountServiceSecuredImpl(AccountService accountService,
org.springframework.security.core.Authentication authentication,
org.springframework.security.access.AccessDecisionVoter voter,
AnnotationParser annotationParser) |
| 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
|
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)
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() |
void |
storeAccountInfo(String acctName,
String orgName,
String department) |
void |
storeAccountStatus(org.duracloud.account.db.model.AccountInfo.AccountStatus status) |
public AccountServiceSecuredImpl(AccountService accountService, org.springframework.security.core.Authentication authentication, org.springframework.security.access.AccessDecisionVoter voter, AnnotationParser annotationParser)
public Long getAccountId()
AccountServicegetAccountId in interface AccountServicepublic org.duracloud.account.db.model.AccountInfo retrieveAccountInfo()
retrieveAccountInfo in interface AccountServicepublic 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 String getSubdomain()
AccountServicegetSubdomain in interface AccountServicepublic org.duracloud.account.db.model.StorageProviderAccount getPrimaryStorageProvider()
AccountServicegetPrimaryStorageProvider 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 Set<org.duracloud.account.db.model.DuracloudUser> getUsers()
getUsers in interface AccountServicepublic org.duracloud.account.db.model.UserInvitation inviteUser(String emailAddress, String adminUsername)
AccountServiceinviteUser in interface AccountServiceemailAddress - address at which to invite userpublic Set<org.duracloud.account.db.model.UserInvitation> getPendingInvitations()
AccountServicegetPendingInvitations in interface AccountServicepublic void deleteUserInvitation(Long invitationId)
AccountServicedeleteUserInvitation in interface AccountServiceCopyright © 2009–2019 DuraSpace. All rights reserved.