public interface DuracloudGroupService
| Modifier and Type | Method and Description |
|---|---|
org.duracloud.account.db.model.DuracloudGroup |
createGroup(String name,
Long acctId) |
void |
deleteGroup(org.duracloud.account.db.model.DuracloudGroup group,
Long acctId)
Deletes a group.
|
org.duracloud.account.db.model.DuracloudGroup |
getGroup(String name,
Long acctId) |
Set<org.duracloud.account.db.model.DuracloudGroup> |
getGroups(Long acctId)
Returns a set of groups associated with the underlying Account.
|
void |
updateGroupUsers(org.duracloud.account.db.model.DuracloudGroup group,
Set<org.duracloud.account.db.model.DuracloudUser> users,
Long acctId)
This method replaces the users (if any) associated with the specified group.
|
@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") Set<org.duracloud.account.db.model.DuracloudGroup> getGroups(Long acctId)
acctId - associated with group@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") org.duracloud.account.db.model.DuracloudGroup getGroup(String name, Long acctId) throws DuracloudGroupNotFoundException
name - of the groupacctId - associated with groupDuracloudGroupNotFoundException@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT") org.duracloud.account.db.model.DuracloudGroup createGroup(String name, Long acctId) throws DuracloudGroupAlreadyExistsException, InvalidGroupNameException
name - of the new groupacctId - associated with groupDuracloudGroupAlreadyExistsExceptionInvalidGroupNameException@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT")
void deleteGroup(org.duracloud.account.db.model.DuracloudGroup group,
Long acctId)
group - to deleteacctId - associated with group@Secured(value="role:ROLE_ADMIN, scope:SELF_ACCT")
void updateGroupUsers(org.duracloud.account.db.model.DuracloudGroup group,
Set<org.duracloud.account.db.model.DuracloudUser> users,
Long acctId)
throws DuracloudGroupNotFoundException
group - to be updatedusers - to associate with groupacctId - associated with groupDuracloudGroupNotFoundExceptionCopyright © 2009–2015 DuraSpace. All rights reserved.