| Interface | osid.subscription.rules.DispatchEnablerPublisherAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.subscription.rules.SubscriptionRulesManager | ||
osid.subscription.rules.SubscriptionRulesProxyManager | |||
| Description |
This session provides methods to re-assign
Adding a reference of a | ||
| Method | canAssignDispatchEnablers | ||
| Description |
Tests if this user can alter dispatch enabler/publisher
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignDispatchEnablerToPublisher | ||
| Description |
Tests if this user can alter dispatch enabler/publisher
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Parameters | osid.id.Id | publisherId | the Id of the Publisher |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | publisherId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignablePublisherIds | ||
| Description |
Gets a list of publishers including and under the given publisher node in which any dispatch enabler can be assigned. | ||
| Parameters | osid.id.Id | publisherId | the Id of the Publisher |
| Return | osid.id.IdList | list of assignable publisher Ids | |
| Errors | NULL_ARGUMENT | publisherId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignablePublisherIdsForDispatchEnabler | ||
| Description |
Gets a list of publishers including and under the given publisher node in which a specific dispatch enabler can be assigned. | ||
| Parameters | osid.id.Id | publisherId | the Id of the Publisher |
osid.id.Id | dispatchEnablerId | the Id of the DispatchEnabler | |
| Return | osid.id.IdList | list of assignable publisher Ids | |
| Errors | NULL_ARGUMENT | publisherId or dispatchEnablerId is
null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignDispatchEnablerToPublisher | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | dispatchEnablerId | the Id of the DispatchEnabler |
osid.id.Id | publisherId | the Id of the Publisher | |
| Errors | ALREADY_EXISTS | dispatchEnablerId is already assigned to
publisherId | |
| NOT_FOUND | dispatchEnablerId or publisherId not found | ||
| NULL_ARGUMENT | dispatchEnablerId or publisherId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignDispatchEnablerFromPublisher | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | dispatchEnablerId | the Id of the DispatchEnabler |
osid.id.Id | publisherId | the Id of the Publisher | |
| Errors | NOT_FOUND | dispatchEnablerId or publisherId not found or
dispatchEnablerId not assigned to publisherId | |
| NULL_ARGUMENT | dispatchEnablerId or publisherId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignDispatchEnablerToPublisher | ||
| Description |
Moves a | ||
| Parameters | osid.id.Id | dispatchEnablerId | the Id of the DispatchEnabler |
osid.id.Id | fromPublisherId | the Id of the current Publisher | |
osid.id.Id | toPublisherId | the Id of the destination Publisher | |
| Errors | ALREADY_EXISTS | dispatchEnablerId already assigned to
toPublisherId | |
| NOT_FOUND | dispatchEnablerId, fromPublisherId , or
toPublisherId not found or dispatchEnablerId not
mapped to fromPublisherId | ||
| NULL_ARGUMENT | dispatchEnablerId, fromPublisherId , or
toPublisherId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |