| Interface | osid.resource.GroupAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods to re-assign   | ||
| Method | getBinId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Bin Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBin | ||
| Description | 
                     Gets the   | ||
| Return | osid.resource.Bin | the  Bin  associated with this session  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignResources | ||
| Description | 
                     Tests if this user can change resource group mappings. 
                    A return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known all methods in this session will result in a   | ||
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignResourcesToGroup | ||
| Description | 
                     Tests if this user can assign members to the given 
                    group. A return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known mapping methods in this session will result in a 
                      | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource   | 
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | assignResourceToGroup | ||
| Description | 
                     Adds an existing   | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource   | 
osid.id.Id | resourceGroupId | the  Id  of the  Resource  group  | |
| Errors | ALREADY_EXISTS |  resourceId  is already part of  resourceGroupId   |                 |
| NOT_FOUND |  resourceId  or  resourceGroupId  not found  |                 ||
| NULL_ARGUMENT |  resourceId  or  resourceGroupId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignResourceFromGroup | ||
| Description | 
                     Removes a   | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource   | 
osid.id.Id | resourceGroupId | the  Id  of the  Repository   | |
| Errors | NOT_FOUND |  resourceId or resourceGroupId  not found or  resourceId 
 not part of  resourceGroupId   |                 |
| NULL_ARGUMENT |  resourceId or resourceGroupId is null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |