| Interface | osid.provisioning.rules.QueueConstrainerDistributorAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods to re-assign   Adding a reference of a   | ||
| Method | canAssignQueueConstrainers | ||
| Description | 
                     Tests if this user can alter queue 
                    constrainer/distributor mappings. 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   | ||
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignQueueConstrainersToDistributor | ||
| Description | 
                     Tests if this user can alter queue 
                    constrainer/distributor mappings. 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 | distributorId | the  Id  of the  Distributor   | 
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Errors | NULL_ARGUMENT |  distributorId  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableDistributorIds | ||
| Description | 
                     Gets a list of distributors including and under the given distributor node in which any queue constrainer can be assigned.  | ||
| Parameters | osid.id.Id | distributorId | the  Id  of the  Distributor   | 
| Return | osid.id.IdList | list of assignable distributor  Ids   | |
| Errors | NULL_ARGUMENT |  distributorId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableDistributorIdsForQueueConstrainer | ||
| Description | 
                     Gets a list of distributors including and under the given distributor node in which a specific queue constrainer can be assigned.  | ||
| Parameters | osid.id.Id | distributorId | the  Id  of the  Distributor   | 
osid.id.Id | queueConstrainerId | the  Id  of the  QueueConstrainer   | |
| Return | osid.id.IdList | list of assignable distributor  Ids   | |
| Errors | NULL_ARGUMENT |  distributorId  or  queueConstrainerId  is  
null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignQueueConstrainerToDistributor | ||
| Description | 
                     Adds an existing   | ||
| Parameters | osid.id.Id | queueConstrainerId | the  Id  of the  QueueConstrainer   | 
osid.id.Id | distributorId | the  Id  of the  Distributor   | |
| Errors | ALREADY_EXISTS |  queueConstrainerId  is not assigned to  distributorId 
  |                 |
| NOT_FOUND |  queueConstrainerId  or  distributorId  not found  |                 ||
| NULL_ARGUMENT |  queueConstrainerId  or  distributorId  is  
null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignQueueConstrainerFromDistributor | ||
| Description | 
                     Removes a   | ||
| Parameters | osid.id.Id | queueConstrainerId | the  Id  of the  QueueConstrainer   | 
osid.id.Id | distributorId | the  Id  of the  Distributor   | |
| Errors | NOT_FOUND |  queueConstrainerId  or  distributorId  not found 
or  queueConstrainerId  not assigned to  distributorId 
  |                 |
| NULL_ARGUMENT |  queueConstrainerId  or  distributorId  is  
null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |