public interface AccountService
| Modifier and Type | Method and Description |
|---|---|
void |
addStorageProvider(org.duracloud.storage.domain.StorageProviderType storageProviderType)
Adds a new secondary storage provider to this account.
|
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 |
setPrimaryStorageProviderRrs(boolean rrs)
Sets the primary storage provider to RRS or not
|
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) |
@Secured(value="role:ROLE_ANONYMOUS, scope:ANY") Long getAccountId()
@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") org.duracloud.account.db.model.AccountInfo retrieveAccountInfo()
@Secured(value="role:ROLE_OWNER, scope:SELF_ACCT") void storeAccountInfo(String acctName, String orgName, String department)
acctName - orgName - department - @Secured(value="role:ROLE_OWNER, scope:SELF_ACCT") void storeAccountStatus(org.duracloud.account.db.model.AccountInfo.AccountStatus status)
status - @Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") org.duracloud.account.db.model.ServerDetails retrieveServerDetails()
@Secured(value="role:ROLE_OWNER, scope:SELF_ACCT") void storeServerDetails(org.duracloud.account.db.model.ServerDetails serverDetails)
serverDetails - @Secured(value="role:ROLE_OWNER, scope:SELF_ACCT") void storeSubdomain(String subdomain)
subdomain - @Secured(value="role:ROLE_USER, scope:SELF_ACCT") String getSubdomain()
@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") org.duracloud.account.db.model.StorageProviderAccount getPrimaryStorageProvider()
@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") org.duracloud.account.db.model.ComputeProviderAccount getComputeProvider()
@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") Set<org.duracloud.account.db.model.StorageProviderAccount> getSecondaryStorageProviders()
@Secured(value="role:ROLE_OWNER, scope:SELF_ACCT") void addStorageProvider(org.duracloud.storage.domain.StorageProviderType storageProviderType)
storageProviderType - @Secured(value="role:ROLE_OWNER, scope:SELF_ACCT") void setPrimaryStorageProviderRrs(boolean rrs)
rrs - @Secured(value="role:ROLE_OWNER, scope:SELF_ACCT") void removeStorageProvider(Long storageProviderId)
storageProviderId - @Secured(value="role:ROLE_ANONYMOUS, scope:ANY") Set<org.duracloud.account.db.model.DuracloudUser> getUsers()
@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") org.duracloud.account.db.model.UserInvitation inviteUser(String emailAddress, String adminUsername, org.duracloud.notification.Emailer emailer)
emailAddress - address at which to invite useremailer - utility for sending mail@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") Set<org.duracloud.account.db.model.UserInvitation> getPendingInvitations()
@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") void deleteUserInvitation(Long invitationId)
invitationId - Copyright © 2009–2015 DuraSpace. All rights reserved.