Interface | osid.subscription.SubscriptionPublisherAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to re-assign Adding a reference of a | ||
Method | canAssignSubscriptions | ||
Description |
Tests if this user can alter subscription/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 | canAssignSubscriptionsToPublisher | ||
Description |
Tests if this user can alter subscription/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 subscription 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 | getAssignablePublisherIdsForSubscription | ||
Description |
Gets a list of publishers including and under the given publisher node in which a specific subscription can be assigned. | ||
Parameters | osid.id.Id | publisherId | the Id of the Publisher |
osid.id.Id | subscriptionId | the Id of the Subscription | |
Return | osid.id.IdList | list of assignable publisher Ids | |
Errors | NULL_ARGUMENT | publisherId or subscriptionId is null
| |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | assignSubscriptionToPublisher | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | subscriptionId | the Id of the Subscription |
osid.id.Id | publisherId | the Id of the Publisher | |
Errors | ALREADY_EXISTS | subscriptionId is already assigned to publisherId
| |
NOT_FOUND | subscriptionId or publisherId not found | ||
NULL_ARGUMENT | subscriptionId or publisherId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignSubscriptionFromPublisher | ||
Description |
Removes a | ||
Parameters | osid.id.Id | subscriptionId | the Id of the Subscription |
osid.id.Id | publisherId | the Id of the Publisher | |
Errors | NOT_FOUND | subscriptionId or publisherId not found or
subscriptionId not assigned to publisherId | |
NULL_ARGUMENT | subscriptionId or publisherId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | reassignSubscriptionToPublisher | ||
Description |
Moves a | ||
Parameters | osid.id.Id | subscriptionId | the Id of the Subscription |
osid.id.Id | fromPublisherId | the Id of the current Publisher | |
osid.id.Id | toPublisherId | the Id of the destination Publisher | |
Errors | NOT_FOUND | subscriptionId, fromPublisherId, or toPublisherId
not found or subscriptionId not mapped to
fromPublisherId | |
NULL_ARGUMENT | subscriptionId, fromPublisherId, or toPublisherId
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |