| Interface | osid.provisioning.rules.PoolConstrainerAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates and removes pool constrainers. The
data for create and update is provided via the | ||
| 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 | canCreatePoolConstrainer | ||
| Description |
Tests if this user can create pool constrainers. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known creating a | ||
| Return | boolean | false if PoolConstrainer creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePoolConstrainerWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | poolConstrainerRecordTypes | array of pool constrainer record types |
| Return | boolean | true if PoolConstrainer creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | poolConstrainerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPoolConstrainerFormForCreate | ||
| Description |
Gets the pool constrainer form for creating new pool constrainers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | poolConstrainerRecordTypes | array of pool constrainer record types |
| Return | osid.provisioning.rules.PoolConstrainerForm | the pool constrainer form | |
| Errors | NULL_ARGUMENT | poolConstrainerRecordTypes 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 | createPoolConstrainer | ||
| Description |
Creates a new | ||
| Parameters | osid.provisioning.rules.PoolConstrainerForm | poolConstrainerForm | the form for this PoolConstrainer |
| Return | osid.provisioning.rules.PoolConstrainer | the new PoolConstrainer | |
| Errors | ILLEGAL_STATE | poolConstrainerForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | poolConstrainerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | poolConstrainerForm did not originate from
getPoolConstrainerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdatePoolConstrainers | ||
| Description |
Tests if this user can update pool constrainers. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known updating a | ||
| Return | boolean | false if PoolConstrainer modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPoolConstrainerFormForUpdate | ||
| Description |
Gets the pool constrainer form for updating an existing pool constrainer. A new pool constrainer form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | poolConstrainerId | the Id of the PoolConstrainer |
| Return | osid.provisioning.rules.PoolConstrainerForm | the pool constrainer form | |
| Errors | NOT_FOUND | poolConstrainerId is not found | |
| NULL_ARGUMENT | poolConstrainerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updatePoolConstrainer | ||
| Description |
Updates an existing pool constrainer. | ||
| Parameters | osid.provisioning.rules.PoolConstrainerForm | poolConstrainerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | poolConstrainerForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | poolConstrainerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | poolConstrainerForm did not originate from
getPoolConstrainerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeletePoolConstrainers | ||
| Description |
Tests if this user can delete pool constrainers. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known deleting a | ||
| Return | boolean | false if PoolConstrainer deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deletePoolConstrainer | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | poolConstrainerId | the Id of the PoolConstrainer to remove |
| Errors | NOT_FOUND | poolConstrainerId not found | |
| NULL_ARGUMENT | poolConstrainerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManagePoolConstrainerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if PoolConstrainer aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasPoolConstrainer | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | poolConstrainerId | the Id of a PoolConstrainer |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | poolConstrainerId not found | ||
| NULL_ARGUMENT | poolConstrainerId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |