| Interface | osid.subscription.rules.DispatchConstrainerPublisherAssignmentSession | ||
|---|---|---|---|
| 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 | canAssignDispatchConstrainers | ||
| Description |
Tests if this user can alter dispatch
constrainer/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 | canAssignDispatchConstrainerToPublisher | ||
| Description |
Tests if this user can alter dispatch
constrainer/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 constrainer 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 | getAssignablePublisherIdsForDispatchConstrainer | ||
| Description |
Gets a list of publishers including and under the given publisher node in which a specific dispatch constrainer can be assigned. | ||
| Parameters | osid.id.Id | publisherId | the Id of the Publisher |
osid.id.Id | dispatchConstrainerId | the Id of the DispatchConstrainer | |
| Return | osid.id.IdList | list of assignable publisher Ids | |
| Errors | NULL_ARGUMENT | publisherId or dispatchConstrainerId is
null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignDispatchConstrainerToPublisher | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | dispatchConstrainerId | the Id of the DispatchConstrainer |
osid.id.Id | publisherId | the Id of the Publisher | |
| Errors | ALREADY_EXISTS | dispatchConstrainerId is already assigned to
publisherId | |
| NOT_FOUND | dispatchConstrainerId or publisherId not found | ||
| NULL_ARGUMENT | dispatchConstrainerId or publisherId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignDispatchConstrainerFromPublisher | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | dispatchConstrainerId | the Id of the DispatchConstraienr |
osid.id.Id | publisherId | the Id of the Publisher | |
| Errors | NOT_FOUND | dispatchConstrainerId or publisherId not found or
dispatchConstrainerId not assigned to publisherId | |
| NULL_ARGUMENT | dispatchConstrainerId or publisherId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignDispatchConstrainerToPublisher | ||
| Description |
Moves a | ||
| Parameters | osid.id.Id | dispatchConstrainerId | the Id of the DispatchConstrainer |
osid.id.Id | fromPublisherId | the Id of the current Publisher | |
osid.id.Id | toPublisherId | the Id of the destination Publisher | |
| Errors | ALREADY_EXISTS | dispatchConstrainerId already assigned to
toPublisherId | |
| NOT_FOUND | dispatchConstrainerId, fromPublisherId , or
toPublisherId not found or dispatchConstrainerId not
mapped to fromPublisherId | ||
| NULL_ARGUMENT | dispatchConstrainerId, fromPublisherId , or
toPublisherId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |