OSID Logo
OSID Specifications
subscription package
Version 3.1.0
Interfaceosid.subscription.DispatchPublisherAssignmentSession
Implementsosid.OsidSession
Used Byosid.subscription.SubscriptionManager
osid.subscription.SubscriptionProxyManager
Description

This session provides methods to re-assign Dispatches to Publishers. A Dispatch may map to multiple Publishers and removing the last reference to a Dispatch is the equivalent of deleting it. Each Publisher may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Dispatch to another Publisher is not a copy operation (eg: does not change its Id).

MethodcanAssignDispatches
Description

Tests if this user can alter dispatch/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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignDispatchesToPublisher
Description

Tests if this user can alter dispatch/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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Parametersosid.id.IdpublisherId the Id of the Publisher
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT publisherId is null
Compliancemandatory This method must be implemented.
MethodgetAssignablePublisherIds
Description

Gets a list of publishers including and under the given publisher node in which any dispatch can be assigned.

Parametersosid.id.IdpublisherId the Id of the Publisher
Returnosid.id.IdList list of assignable publisher Ids
ErrorsNULL_ARGUMENT publisherId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignablePublisherIdsForDispatch
Description

Gets a list of publishers including and under the given publisher node in which a specific dispatch can be assigned.

Parametersosid.id.IdpublisherId the Id of the Publisher
osid.id.IddispatchId the Id of the Dispatch
Returnosid.id.IdList list of assignable publisher Ids
ErrorsNULL_ARGUMENT publisherId or dispatchId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignDispatchToPublisher
Description

Adds an existing Dispatch to a Publisher.

Parametersosid.id.IddispatchId the Id of the Dispatch
osid.id.IdpublisherId the Id of the Publisher
ErrorsALREADY_EXISTS dispatchId is already assigned to publisherId
NOT_FOUND dispatchId or publisherId not found
NULL_ARGUMENT dispatchId or publisherId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignDispatchFromPublisher
Description

Removes a Dispatch from a Publisher.

Parametersosid.id.IddispatchId the Id of the Dispatch
osid.id.IdpublisherId the Id of the Publisher
ErrorsNOT_FOUND dispatchId or publisherId not found or dispatchId not assigned to publisherId
NULL_ARGUMENT dispatchId or publisherId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignDispatchToPublisher
Description

Moves a Dispatch from one Publisher to another. Mappings to other Publishers are unaffected.

Parametersosid.id.IddispatchId the Id of the Dispatch
osid.id.IdfromPublisherId the Id of the current Publisher
osid.id.IdtoPublisherId the Id of the destination Publisher
ErrorsALREADY_EXISTS dispatchId already assigned to toPublisherId
NOT_FOUND dispatchId, fromPublisherId, or toPublisherId not found or dispatchId, not mapped to fromPublisherId
NULL_ARGUMENT dispatchId, fromPublisherId, or toPublisherId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.