OSID Logo
OSID Specifications
subscription rules package
Version 3.0.0
Interfaceosid.subscription.rules.DispatchEnablerPublisherAssignmentSession
Implementsosid.OsidSession
Used Byosid.subscription.rules.SubscriptionRulesManager
osid.subscription.rules.SubscriptionRulesProxyManager
Description

This session provides methods to re-assign DispatchEnabler to Publisher mappings. A DispatchEnabler may appear in multiple Publisher catalogs and removing the last reference to a DispatchEnabler 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 DispatchEnabler to another Publisher is n ot a copy operation (eg: does not change its Id ).

MethodcanAssignDispatchEnablers
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 PERMISSION_DENIED. T his is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignDispatchEnablerToPublisher
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 PERMISSION_DENIED. T his is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnbooleanfalse if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENTpublisherId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignablePublisherIds
Description

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

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnosid.id.IdListlist of assignable publisher Ids
ErrorsNULL_ARGUMENTpublisherId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignablePublisherIdsForDispatchEnabler
Description

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

Parametersosid.id.IdpublisherIdthe Id of the Publisher
osid.id.IddispatchEnablerIdthe Id of the DispatchEnabler
Returnosid.id.IdListlist of assignable publisher Ids
ErrorsNULL_ARGUMENTpublisherId or dispatchEnablerId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignDispatchEnablerToPublisher
Description

Adds an existing DispatchEnabler to a Publisher .

Parametersosid.id.IddispatchEnablerIdthe Id of the DispatchEnabler
osid.id.IdpublisherIdthe Id of the Publisher
ErrorsALREADY_EXISTSdispatchEnablerId is already assigned to publisherId
NOT_FOUNDdispatchEnablerId or publisherId not found
NULL_ARGUMENTdispatchEnablerId or publisherId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignDispatchEnablerFromPublisher
Description

Removes a DispatchEnabler from a Publisher .

Parametersosid.id.IddispatchEnablerIdthe Id of the DispatchEnabler
osid.id.IdpublisherIdthe Id of the Publisher
ErrorsNOT_FOUNDdispatchEnablerId or publisherId not found or dispatchEnablerId not assigned to publisherId
NULL_ARGUMENTdispatchEnablerId or publisherId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignDispatchEnablerToPublisher
Description

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

Parametersosid.id.IddispatchEnablerIdthe Id of the DispatchEnabler
osid.id.IdfromPublisherIdthe Id of the current Publisher
osid.id.IdtoPublisherIdthe Id of the destination Publisher
ErrorsALREADY_EXISTSdispatchEnablerId already assigned to toPublisherId
NOT_FOUNDdispatchEnablerId, fromPublisherId , or toPublisherId not found or dispatchEnablerId not mapped to fromPublisherId
NULL_ARGUMENTdispatchEnablerId, fromPublisherId , or toPublisherId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.