| Interface | osid.provisioning.DistributorAdminSession | ||
|---|---|---|---|
| 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 | canCreateDistributors | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  Distributor  creation is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateDistributorWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | distributorRecordTypes | array of distributor record types | 
| Return | boolean |  true  if  Distributor  creation using the 
specified record  Types  is supported,  false  
otherwise  | |
| Errors | NULL_ARGUMENT |  distributorRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDistributorFormForCreate | ||
| Description | 
                     Gets the distributor form for creating new distributors. A new form should be requested for each create transaction.  | ||
| Parameters | osid.type.Type[] | distributorRecordTypes | array of distributor record types | 
| Return | osid.provisioning.DistributorForm | the distributor form | |
| Errors | NULL_ARGUMENT |  distributorRecordTypes  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 | createDistributor | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.provisioning.DistributorForm | distributorForm | the form for this  Distributor   | 
| Return | osid.provisioning.Distributor | the new  Distributor   | |
| Errors | ILLEGAL_STATE |  distributorForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  distributorForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  distributorForm  did not originate from  
getDistributorFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateDistributors | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  Distributor  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDistributorFormForUpdate | ||
| Description | 
                     Gets the distributor form for updating an existing distributor. A new distributor form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | distributorId | the  Id  of the  Distributor   | 
| Return | osid.provisioning.DistributorForm | the distributor form | |
| Errors | NOT_FOUND |  distributorId  is not found  |                 |
| NULL_ARGUMENT |  distributorId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateDistributor | ||
| Description | 
                     Updates an existing distributor  | ||
| Parameters | osid.provisioning.DistributorForm | distributorForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  distributorForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  distributorForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  distributorForm  did not originate from  
getDistributorFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteDistributors | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  Distributor  deletion is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteDistributor | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | distributorId | the  Id  of the  Distributor  to remove  | 
| Errors | NOT_FOUND |  distributorId  not found  |                 |
| NULL_ARGUMENT |  distributorId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageDistributorAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Distributor  aliasing is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasDistributor | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | distributorId | the  Id  of a  Distributor   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  distributorId  not found  |                 ||
| NULL_ARGUMENT |  distributorId  or  aliasId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |