| Interface | osid.provisioning.rules.BrokerConstrainerAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates and removes broker 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 | canCreateBrokerConstrainer | ||
| Description |
Tests if this user can create broker 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 BrokerConstrainer creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBrokerConstrainerWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | brokerConstrainerRecordTypes | array of broker constrainer record types |
| Return | boolean | true if BrokerConstrainer creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | brokerConstrainerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBrokerConstrainerFormForCreate | ||
| Description |
Gets the broker constrainer form for creating new broker constrainers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | brokerConstrainerRecordTypes | array of broker constrainer record types |
| Return | osid.provisioning.rules.BrokerConstrainerForm | the broker constrainer form | |
| Errors | NULL_ARGUMENT | brokerConstrainerRecordTypes 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 | createBrokerConstrainer | ||
| Description |
Creates a new | ||
| Parameters | osid.provisioning.rules.BrokerConstrainerForm | brokerConstrainerForm | the form for this BrokerConstrainer |
| Return | osid.provisioning.rules.BrokerConstrainer | the new BrokerConstrainer | |
| Errors | ILLEGAL_STATE | brokerConstrainerForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | brokerConstrainerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | brokerConstrainerForm did not originate from
getBrokerConstrainerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateBrokerConstrainers | ||
| Description |
Tests if this user can update broker 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 BrokerConstrainer modification is
not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBrokerConstrainerFormForUpdate | ||
| Description |
Gets the broker constrainer form for updating an existing broker constrainer. A new broker constrainer form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | brokerConstrainerId | the Id of the BrokerConstrainer |
| Return | osid.provisioning.rules.BrokerConstrainerForm | the broker constrainer form | |
| Errors | NOT_FOUND | brokerConstrainerId is not found | |
| NULL_ARGUMENT | brokerConstrainerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateBrokerConstrainer | ||
| Description |
Updates an existing broker constrainer. | ||
| Parameters | osid.provisioning.rules.BrokerConstrainerForm | brokerConstrainerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | brokerConstrainerForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | brokerConstrainerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | brokerConstrainerForm did not originate from
getBrokerConstrainerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteBrokerConstrainers | ||
| Description |
Tests if this user can delete broker 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 BrokerConstrainer deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteBrokerConstrainer | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | brokerConstrainerId | the Id of the BrokerConstrainer to remove |
| Errors | NOT_FOUND | brokerConstrainerId not found | |
| NULL_ARGUMENT | brokerConstrainerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageBrokerConstrainerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if BrokerConstrainer aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasBrokerConstrainer | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | brokerConstrainerId | the Id of a BrokerConstrainer |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | brokerConstrainerId not found | ||
| NULL_ARGUMENT | brokerConstrainerId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |