| Interface | osid.subscription.rules.DispatchProcessorAdminSession | ||
|---|---|---|---|
| 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 | canCreateDispatchProcessors | ||
| Description |
Tests if this user can create
| ||
| Return | boolean | false if DispatchProcessor creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateDispatchProcessorWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | dispatchProcessorRecordTypes | array of dispatch processor record types |
| Return | boolean | true if DispatchProcessor creation using the
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | dispatchProcessorRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDispatchProcessorFormForCreate | ||
| Description |
Gets the dispatch processor form for creating new dispatch processors. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | dispatchProcessorRecordTypes | array of dispatch processor record types |
| Return | osid.subscription.rules.DispatchProcessorForm | the dispatch processor form | |
| Errors | NULL_ARGUMENT | dispatchProcessorRecordTypes 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 | createDispatchProcessor | ||
| Description |
Creates a new | ||
| Parameters | osid.subscription.rules.DispatchProcessorForm | dispatchProcessorForm | the form for this DispatchProcessor |
| Return | osid.subscription.rules.DispatchProcessor | the new DispatchProcessor | |
| Errors | ILLEGAL_STATE | dispatchProcessorForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | dispatchProcessorForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | dispatchProcessorForm did not originate from
getDispatchProcessorFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateDispatchProcessors | ||
| Description |
Tests if this user can update
| ||
| Return | boolean | false if DispatchProcessor modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDispatchProcessorFormForUpdate | ||
| Description |
Gets the dispatch processor form for updating an existing dispatch processor. A new dispatch processor form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | dispatchProcessorId | the Id of the DispatchProcessor |
| Return | osid.subscription.rules.DispatchProcessorForm | the dispatch processor form | |
| Errors | NOT_FOUND | dispatchProcessorId is not found | |
| NULL_ARGUMENT | dispatchProcessorId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateDispatchProcessor | ||
| Description |
Updates an existing dispatch processor. | ||
| Parameters | osid.subscription.rules.DispatchProcessorForm | dispatchProcessorForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | dispatchProcessorForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | dispatchProcessorForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | dispatchProcessorForm did not originate from
getDispatchProcessorFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteDispatchProcessors | ||
| Description |
Tests if this user can delete
| ||
| Return | boolean | false if DispatchProcessor deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteDispatchProcessor | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | dispatchProcessorId | the Id of the DispatchProcessor to remove |
| Errors | NOT_FOUND | dispatchProcessorId not found | |
| NULL_ARGUMENT | dispatchProcessorId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageDispatchProcessorAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if DispatchProcessor aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasDispatchProcessor | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | dispatchProcessorId | the Id of a DispatchProcessor |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | dispatchProcessorId not found | ||
| NULL_ARGUMENT | dispatchProcessorId or aliasId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |