| Interface | osid.subscription.rules.DispatchConstrainerEnablerAdminSession | ||
|---|---|---|---|
| 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 | canCreateDispatchConstrainerEnablers | ||
| Description |
Tests if this user can create
| ||
| Return | boolean | false if DispatchConstrainerEnabler creation is
not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateDispatchConstrainerEnablerWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | dispatchConstrainerEnablerRecordTypes | array of dispatch constrainer enabler record types |
| Return | boolean | true if DispatchConstrainerEnabler creation using
the specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | dispatchConstrainerEnablerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDispatchConstrainerEnablerFormForCreate | ||
| Description |
Gets the dispatch constrainer enabler form for creating new dispatch constrainer enablers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | dispatchConstrainerEnablerRecordTypes | array of dispatch constrainer enabler record types |
| Return | osid.subscription.rules.DispatchConstrainerEnablerForm | the dispatch constrainer enabler form | |
| Errors | NULL_ARGUMENT | dispatchConstrainerEnablerRecordTypes 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 | createDispatchConstrainerEnabler | ||
| Description |
Creates a new | ||
| Parameters | osid.subscription.rules.DispatchConstrainerEnablerForm | dispatchConstrainerEnablerForm | the form for this DispatchConstrainerEnabler |
| Return | osid.subscription.rules.DispatchConstrainerEnabler | the new DispatchConstrainerEnabler | |
| Errors | ILLEGAL_STATE | dispatchConstrainerEnablerForm already used in a create
transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | dispatchConstrainerEnablerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | dispatchConstrainerEnablerForm did not originate from
getDispatchConstrainerEnablerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateDispatchConstrainerEnablers | ||
| Description |
Tests if this user can update
| ||
| Return | boolean | false if DispatchConstrainerEnabler modification
is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDispatchConstrainerEnablerFormForUpdate | ||
| Description |
Gets the dispatch constrainer enabler form for updating an existing dispatch constrainer enabler. A new dispatch constrainer enabler form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | dispatchConstrainerEnablerId | the Id of the DispatchConstrainerEnabler |
| Return | osid.subscription.rules.DispatchConstrainerEnablerForm | the dispatch constrainer enabler form | |
| Errors | NOT_FOUND | dispatchConstrainerEnablerId is not found | |
| NULL_ARGUMENT | dispatchConstrainerEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateDispatchConstrainerEnabler | ||
| Description |
Updates an existing dispatch constrainer enabler. | ||
| Parameters | osid.subscription.rules.DispatchConstrainerEnablerForm | dispatchConstrainerEnablerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | dispatchConstrainerEnablerForm already used in an update
transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | dispatchConstrainerEnablerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | dispatchConstrainerEnablerForm did not originate from
getDispatchConstrainerEnablerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteDispatchConstrainerEnablers | ||
| Description |
Tests if this user can delete
| ||
| Return | boolean | false if DispatchConstrainerEnabler deletion is
not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteDispatchConstrainerEnabler | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | dispatchConstrainerEnablerId | the Id of the DispatchConstrainerEnabler to
remove |
| Errors | NOT_FOUND | dispatchConstrainerEnablerId not found | |
| NULL_ARGUMENT | dispatchConstrainerEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageDispatchConstrainerEnablerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if DispatchConstrainerEnabler aliasing is
not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasDispatchConstrainerEnabler | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | dispatchConstrainerEnablerId | the Id of a DispatchConstrainerEnabler |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | dispatchConstrainerEnablerId not found | ||
| NULL_ARGUMENT | dispatchConstrainerEnablerId or aliasId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |