| Interface | osid.provisioning.BrokerAdminSession | ||
|---|---|---|---|
| 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 | canCreateBrokers | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Broker creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBrokerWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | brokerRecordTypes | array of broker record types |
| Return | boolean | true if Broker creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | brokerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBrokerFormForCreate | ||
| Description |
Gets the broker form for creating new brokers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | brokerRecordTypes | array of broker record types |
| Return | osid.provisioning.BrokerForm | the broker form | |
| Errors | NULL_ARGUMENT | brokerRecordTypes 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 | createBroker | ||
| Description |
Creates a new | ||
| Parameters | osid.provisioning.BrokerForm | brokerForm | the form for this Broker |
| Return | osid.provisioning.Broker | the new Broker | |
| Errors | ILLEGAL_STATE | brokerForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | brokerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | brokerForm did not originate from
getBrokerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateBrokers | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Broker modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBrokerFormForUpdate | ||
| Description |
Gets the broker form for updating an existing broker. A new broker form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | brokerId | the Id of the Broker |
| Return | osid.provisioning.BrokerForm | the broker form | |
| Errors | NOT_FOUND | brokerId is not found | |
| NULL_ARGUMENT | brokerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateBroker | ||
| Description |
Updates an existing broker. | ||
| Parameters | osid.provisioning.BrokerForm | brokerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | brokerForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | brokerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | brokerForm did not originate from
getBrokerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteBrokers | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Broker deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteBroker | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | brokerId | the Id of the Broker to remove |
| Errors | NOT_FOUND | brokerId not found | |
| NULL_ARGUMENT | brokerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageBrokerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Broker aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasBroker | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | brokerId | the Id of a Broker |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | brokerId not found | ||
| NULL_ARGUMENT | brokerId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignQueues | ||
| Description |
Tests if this user can assign queues to brokers. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known assigning a queue will result in a | ||
| Return | boolean | false if queue assignment is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | addQueue | ||
| Description |
Adds a queue to a broker. | ||
| Parameters | osid.id.Id | brokerId | the brokerId Id |
osid.id.Id | queueId | the queue Id | |
| Errors | ALREADY_EXISTS | queue already part of work | |
| NOT_FOUND | queueId or brokerId is not found | ||
| NULL_ARGUMENT | queueId or brokerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | removeQueue | ||
| Description |
Removes a queue from a broker. | ||
| Parameters | osid.id.Id | brokerId | the broker Id |
osid.id.Id | queueId | the queue Id | |
| Errors | NOT_FOUND | queue is not part of broker | |
| NULL_ARGUMENT | brokerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |