| Interface | osid.provisioning.QueueAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session creates, updates, and deletes   Create and update operations differ in their usage. To 
                create a   For updates,   The delete operations delete   This session includes an   | ||
| Method | getDistributorId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Distributor Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDistributor | ||
| Description | 
                     Gets the   | ||
| Return | osid.provisioning.Distributor | the distributor | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateQueue | ||
| Description | 
                     Tests if this user can create queues. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known creating a   | ||
| Return | boolean |  false  if  Queue  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateQueueWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | queueRecordTypes | array of queue record types | 
| Return | boolean |  true  if  Queue  creation using the specified 
record  Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  queueRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getQueueFormForCreate | ||
| Description | 
                     Gets the queue form for creating new queues. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | brokerId | a broker  Id   | 
osid.type.Type[] | queueRecordTypes | array of queue record types | |
| Return | osid.provisioning.QueueForm | the queue form | |
| Errors | NOT_FOUND |  brokerId  is not found  |                 |
| NULL_ARGUMENT |  brokerId  or  queueRecordTypes  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createQueue | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.provisioning.QueueForm | queueForm | the form for this  Queue   | 
| Return | osid.provisioning.Queue | the new  Queue   | |
| Errors | ILLEGAL_STATE |  queueForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  queueForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  queueForm  did not originate from  
getQueueFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateQueues | ||
| Description | 
                     Tests if this user can update queues. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known updating a   | ||
| Return | boolean |  false  if  Queue  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getQueueFormForUpdate | ||
| Description | 
                     Gets the queue form for updating an existing queue. A new queue form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | queueId | the  Id  of the  Queue   | 
| Return | osid.provisioning.QueueForm | the queue form | |
| Errors | NOT_FOUND |  queueId  is not found  |                 |
| NULL_ARGUMENT |  queueId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateQueue | ||
| Description | 
                     Updates an existing queue.  | ||
| Parameters | osid.provisioning.QueueForm | queueForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  queueForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  queueForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  queueForm  did not originate from  
getQueueFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteQueues | ||
| Description | 
                     Tests if this user can delete queues. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known deleting a   | ||
| Return | boolean |  false  if  Queue  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteQueue | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | queueId | the  Id  of the  Queue  to remove  | 
| Errors | NOT_FOUND |  queueId  not found  |                 |
| NULL_ARGUMENT |  queueId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageQueueAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Queue  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasQueue | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | queueId | the  Id  of a  Queue   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  queueId  not found  |                 ||
| NULL_ARGUMENT |  queueId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |