| Interface | osid.provisioning.RequestTransactionAdminSession | ||
|---|---|---|---|
| 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 | canCreateRequestTransactions | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  RequestTransaction  creation is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateRequestTransactionsWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | requestTransactionRecordTypes | array of request transaction record types | 
| Return | boolean |  true  if  RequestTransaction  creation using the 
specified record  Types  is supported,  false  
otherwise  | |
| Errors | NULL_ARGUMENT |  requestTransactionRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRequestTransactionFormForCreate | ||
| Description | 
                     Gets the request transaction form for creating new request transactionss. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | brokerId | a broker  Id   | 
osid.id.Id | resourceId | a resource  Id   | |
osid.type.Type[] | requestTransactionRecordTypes | array of request transaction record types | |
| Return | osid.provisioning.RequestTransactionForm | the request transaction form | |
| Errors | NOT_FOUND |  brokerId  or  resourceId  is not found  |                 |
| NULL_ARGUMENT |  brokerId, resourceId,  or  
requestTransactionRecordTypes  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 | createRequestTransaction | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.provisioning.RequestTransactionForm | requestTransactionForm | the form for this  RequestTransaction   | 
| Return | osid.provisioning.RequestTransaction | the new  RequestTransaction   | |
| Errors | ILLEGAL_STATE |  requestTransactionForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  requestTransactionForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  requestForm  did not originate from  
getRequestTransactionFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateRequestTransactions | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  RequestTransaction  modification is 
not authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRequestTransactionFormForUpdate | ||
| Description | 
                     Gets the request transaction form for updating an existing request. A new request transaction form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | requestTransactionId | the  Id  of the  RequestTransaction   | 
| Return | osid.provisioning.RequestTransactionForm | the request transaction form | |
| Errors | NOT_FOUND |  requestTransactionId  is not found  |                 |
| NULL_ARGUMENT |  requestTransactionId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateRequestTransaction | ||
| Description | 
                     Updates an existing request transaction.  | ||
| Parameters | osid.provisioning.RequestTransactionForm | requestTransactionForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  requestTransactionForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  requestTransactionForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  requestForm  did not originate from  
getRequestTransactionFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | submitRequestTransaction | ||
| Description | 
                     Submits a   | ||
| Parameters | osid.id.Id | requestTransactionId | the  Id  of the request transaction to submit  | 
| Errors | NOT_FOUND |  requestTransactionId  is not found  |                 |
| NULL_ARGUMENT |  requestTransactionId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCancelRequestTransactions | ||
| Description | 
                     Tests if this user can cancel   | ||
| Return | boolean |  false  if  RequestTransaction  cancelation is 
not authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | cancelRequestTransaction | ||
| Description | 
                     Cancels a   | ||
| Parameters | osid.id.Id | requestTransactionId | the  Id  of the request transaction to cancel  | 
| Errors | NOT_FOUND |  requestTransactionId  is not found  |                 |
| NULL_ARGUMENT |  requestTransactionId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteRequestTransactions | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  RequestTransaction  deletion is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteRequestTransaction | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | requestTransactionId | the  Id  of the request transaction to delete  | 
| Errors | NOT_FOUND |  requestTransactionId  is not found  |                 |
| NULL_ARGUMENT |  requestTransactionId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageRequestTransactionAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  RequestTransaction  aliasing is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasRequestTransaction | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | requestTransactionId | the  Id  of a  RequestTransaction   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  requestTransactionId  not found  |                 ||
| NULL_ARGUMENT |  requestTransactionId  or  aliasId  is  
null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |