| Interface | osid.subscription.rules.DispatchConstrainerAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.subscription.rules.SubscriptionRulesManager | ||
osid.subscription.rules.SubscriptionRulesProxyManager | |||
| 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 | getPublisherId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Publisher Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPublisher | ||
| Description |
Gets the | ||
| Return | osid.subscription.Publisher | the publisher | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateDispatchConstrainers | ||
| Description |
Tests if this user can create
| ||
| Return | boolean | false if DispatchConstrainer creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateDispatchConstrainerWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | dispatchConstrainerRecordTypes | array of dispatch constrainer record types |
| Return | boolean | true if DispatchConstrainer creation using the
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | dispatchConstrainerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDispatchConstrainerFormForCreate | ||
| Description |
Gets the dispatch constrainer form for creating new dispatch constrainers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | dispatchConstrainerRecordTypes | array of dispatch constrainer record types |
| Return | osid.subscription.rules.DispatchConstrainerForm | the dispatch constrainer form | |
| Errors | NULL_ARGUMENT | dispatchConstrainerRecordTypes 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 | createDispatchConstrainer | ||
| Description |
Creates a new | ||
| Parameters | osid.subscription.rules.DispatchConstrainerForm | dispatchConstrainerForm | the form for this DispatchConstrainer |
| Return | osid.subscription.rules.DispatchConstrainer | the new DispatchConstrainer | |
| Errors | ILLEGAL_STATE | dispatchConstrainerForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | dispatchConstrainerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | dispatchConstrainerForm did not originate from
getDispatchConstrainerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateDispatchConstrainers | ||
| Description |
Tests if this user can update
| ||
| Return | boolean | false if DispatchConstrainer modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDispatchConstrainerFormForUpdate | ||
| Description |
Gets the dispatch constrainer form for updating an existing dispatch constrainer. A new dispatch constrainer form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | dispatchConstrainerId | the Id of the DispatchConstrainer |
| Return | osid.subscription.rules.DispatchConstrainerForm | the dispatch form | |
| Errors | NOT_FOUND | dispatchConstrainerId is not found | |
| NULL_ARGUMENT | dispatchConstrainerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateDispatchConstrainer | ||
| Description |
Updates an existing dispatch constrainer. | ||
| Parameters | osid.subscription.rules.DispatchConstrainerForm | dispatchConstrainerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | dispatchConstrainerForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | dispatchConstrainerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | dispatchConstrainerForm did not originate from
getDispatchConstrainerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteDispatchConstrainers | ||
| Description |
Tests if this user can delete
| ||
| Return | boolean | false if DispatchConstrainer deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteDispatchConstrainer | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | dispatchConstrainerId | the Id of the DispatchConstrainer to remove |
| Errors | NOT_FOUND | dispatchConstrainerId not found | |
| NULL_ARGUMENT | dispatchConstrainerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageDispatchConstrainerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if DispatchConstrainer aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasDispatchConstrainer | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | dispatchConstrainerId | the Id of a DispatchConstrainer |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | dispatchConstrainerId not found | ||
| NULL_ARGUMENT | dispatchConstrainerId or aliasId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |