public interface GroupAssignmentSession extends OsidSession
This session provides methods to re-assign Resources to
group Resources.
| Modifier and Type | Method and Description |
|---|---|
void |
assignResourceToGroup(Id resourceId,
Id resourceGroupId)
Adds an existing
Resource to a Resource
group. |
boolean |
canAssignResources()
Tests if this user can change resource group mappings.
|
boolean |
canAssignResourcesToGroup(Id resourceId)
Tests if this user can assign members to the given group.
|
Bin |
getBin()
Gets the
Bin associated with this session. |
Id |
getBinId()
Gets the
Bin Id associated with this
session. |
void |
unassignResourceFromGroup(Id resourceId,
Id resourceGroupId)
Removes a
Resource from a Resource
group. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getBinId()
Bin Id associated with this
session. Bin Id associated with this sessionmandatory - This method must be implemented. Bin getBin() throws OperationFailedException, PermissionDeniedException
Bin associated with this session. Bin associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignResources()
PERMISSION_DENIED. This is intended as a hint to an
application that may not wish to offer assignment operations. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignResourcesToGroup(Id resourceId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.resourceId - the Id of the Resource
false if mapping is not authorized, true
otherwiseNullArgumentException - resourceId is
null mandatory - This method must be implemented. void assignResourceToGroup(Id resourceId, Id resourceGroupId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Resource to a Resource
group.resourceId - the Id of the Resource
resourceGroupId - the Id of the Resource
groupAlreadyExistsException - resourceId is
already part of resourceGroupId NotFoundException - resourceId or
resourceGroupId not foundNullArgumentException - resourceId or
resourceGroupId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignResourceFromGroup(Id resourceId, Id resourceGroupId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Resource from a Resource
group.resourceId - the Id of the Resource
resourceGroupId - the Id of the Repository
NotFoundException - resourceId or
resourceGroupId not found or resourceId
not part of resourceGroupId NullArgumentException - resourceId or
resourceGroupId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.