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

This session manages queries and sequencing to create "smart" dynamic catalogs. A DispatchQuery can be retrieved from this session and mapped to this Publisher to create a virtual collection of Dispatches. The dispatches may be sequenced using the DispatchSearchOrder from this session.

This Publisher has a default query that matches any dispatch and a default search order that specifies no sequencing. The queries may be examined using a DispatchQueryInspector. The query may be modified by converting the inspector back to a DispatchQuery.

MethodgetPublisherId
Description

Gets the Publisher Id associated with this session.

Returnosid.id.Id the Publisher Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetPublisher
Description

Gets the Publisher associated with this session.

Returnosid.subscription.Publisher the Publisher associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartPublishers
Description

Tests if this user can manage smart publishers. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart publisher management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetDispatchQuery
Description

Gets a dispatch query.

Returnosid.subscription.DispatchQuery the dispatch query
Compliancemandatory This method must be implemented.
MethodgetDispatchSearchOrder
Description

Gets a dispatch search order.

Returnosid.subscription.DispatchSearchOrder the dispatch search order
Compliancemandatory This method must be implemented.
MethodapplyDispatchQuery
Description

Applies a dispatch query to this publisher.

Parametersosid.subscription.DispatchQuerydispatchQuery the dispatch query
ErrorsNULL_ARGUMENT dispatchQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED dispatchQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectDispatchQuery
Description

Gets a dispatch query inspector for this publisher.

Returnosid.subscription.DispatchQueryInspector the dispatch query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyDispatchSequencing
Description

Applies a dispatch search order to this publisher.

Parametersosid.subscription.DispatchSearchOrderdispatchSearchOrder the dispatch search order
ErrorsNULL_ARGUMENT dispatchSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED dispatchSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetDispatchQueryFromInspector
Description

Gets a dispatch query from an inspector.

Parametersosid.subscription.DispatchQueryInspectordispatchQueryInspector a query inspector
Returnosid.subscription.DispatchQuery the dispatch query
ErrorsNULL_ARGUMENT dispatchQueryInspector is null
UNSUPPORTED dispatchQueryInspector is not of this service
Compliancemandatory This method must be implemented.