| Interface | osid.subscription.rules.DispatchEnablerAdminSession | ||
|---|---|---|---|
| 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 | canCreateDispatchEnablers | ||
| Description |
Tests if this user can create
| ||
| Return | boolean | false if DispatchEnabler creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateDispatchEnablerWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | dispatchEnablerRecordTypes | array of dispatch enabler record types |
| Return | boolean | true if DispatchEnabler creation using the
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | dispatchEnablerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDispatchEnablerFormForCreate | ||
| Description |
Gets the dispatch enabler form for creating new dispatch enablers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | dispatchEnablerRecordTypes | array of dispatch enabler record types |
| Return | osid.subscription.rules.DispatchEnablerForm | the dispatch enabler form | |
| Errors | NULL_ARGUMENT | dispatchEnablerRecordTypes 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 | createDispatchEnabler | ||
| Description |
Creates a new | ||
| Parameters | osid.subscription.rules.DispatchEnablerForm | dispatchEnablerForm | the form for this DispatchEnabler |
| Return | osid.subscription.rules.DispatchEnabler | the new DispatchEnabler | |
| Errors | ILLEGAL_STATE | dispatchEnablerForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | dispatchEnablerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | dispatchEnablerForm did not originate from
getDispatchEnablerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateDispatchEnablers | ||
| Description |
Tests if this user can update
| ||
| Return | boolean | false if DispatchEnabler modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDispatchEnablerFormForUpdate | ||
| Description |
Gets the dispatch enabler form for updating an existing dispatch enabler. A new dispatch enabler form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | dispatchEnablerId | the Id of the DispatchEnabler |
| Return | osid.subscription.rules.DispatchEnablerForm | the dispatch enabler form | |
| Errors | NOT_FOUND | dispatchEnablerId is not found | |
| NULL_ARGUMENT | dispatchEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateDispatchEnabler | ||
| Description |
Updates an existing dispatch enabler. | ||
| Parameters | osid.subscription.rules.DispatchEnablerForm | dispatchEnablerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | dispatchEnablerForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | dispatchEnablerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | dispatchEnablerForm did not originate from
getDispatchEnablerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteDispatchEnablers | ||
| Description |
Tests if this user can delete
| ||
| Return | boolean | false if DispatchEnabler deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteDispatchEnabler | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | dispatchEnablerId | the Id of the DispatchEnabler to remove |
| Errors | NOT_FOUND | dispatchEnablerId not found | |
| NULL_ARGUMENT | dispatchEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageDispatchEnablerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if DispatchEnabler aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasDispatchEnabler | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | dispatchEnablerId | the Id of a DispatchEnabler |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | dispatchEnablerId not found | ||
| NULL_ARGUMENT | dispatchEnablerId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |