| Interface | osid.provisioning.ProvisionAdminSession | ||
|---|---|---|---|
| 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 | canCreateProvisions | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Provision creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateProvisionWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | provisionRecordTypes | array of provision record types |
| Return | boolean | true if Provision creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | provisionRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionFormForCreate | ||
| Description |
Gets the provision form for creating new provisions. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | brokerId | the Id for the broker |
osid.id.Id | provisionableId | the Id for the provisionable | |
osid.id.Id | resourceId | the Id for the resource | |
osid.type.Type[] | provisionRecordTypes | array of provision record types | |
| Return | osid.provisioning.ProvisionForm | the provision form | |
| Errors | NOT_FOUND | brokerId, provisionableId, or resourceId is
not found | |
| NULL_ARGUMENT | brokerId, provisionableId, resourceId, or
provisionRecordTypes 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 | createProvision | ||
| Description |
Creates a new | ||
| Parameters | osid.provisioning.ProvisionForm | provisionForm | the form for this Provision |
| Return | osid.provisioning.Provision | the new Provision | |
| Errors | ILLEGAL_STATE | provisionForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | provisionForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | provisionForm did not originate from
getProvisionFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateProvisions | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Provision modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getProvisionFormForUpdate | ||
| Description |
Gets the provision form for updating an existing provision. A new provision form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | provisionId | the Id of the Provision |
| Return | osid.provisioning.ProvisionForm | the provision form | |
| Errors | NOT_FOUND | provisionId is not found | |
| NULL_ARGUMENT | provisionId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateProvision | ||
| Description |
Updates an existing provision. | ||
| Parameters | osid.provisioning.ProvisionForm | provisionForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | provisionForm already used in an update transatcion | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | provisionForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | provisionForm did not originate from
getProvisionFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteProvisions | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Provision deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteProvision | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | provisionId | the Id of the Provision to remove |
| Errors | NOT_FOUND | provisionId not found | |
| NULL_ARGUMENT | provisionId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageProvisionAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Provision aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasProvision | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | provisionId | the Id of a Provision |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | provisionId not found | ||
| NULL_ARGUMENT | provisionId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |