OSID Logo
OSID Specifications
subscription package
Version 3.0.0
Release Candidate Preview
Interfaceosid.subscription.SubscriptionSmartPublisherSession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A SubscriptionQuery can be retrieved from this session and mapped to this Publisher to create a virtual collection of Subscriptions. The subscriptions may be sequenced using the SubscriptionSearchOrder from this session.

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

MethodgetPublisherId
Description

Gets the Publisher Id associated with this session.

Returnosid.id.Idthe Publisher Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetPublisher
Description

Gets the Publisher associated with this session.

Returnosid.subscription.Publisherthe Publisher associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetSubscriptionQuery
Description

Gets a subscription query.

Returnosid.subscription.SubscriptionQuerythe subscription query
CompliancemandatoryThis method must be implemented.
MethodgetSubscriptionSearchOrder
Description

Gets a subscription search order.

Returnosid.subscription.SubscriptionSearchOrderthe subscription search order
CompliancemandatoryThis method must be implemented.
MethodapplySubscriptionQuery
Description

Applies a subscription query to this publisher.

Parametersosid.subscription.SubscriptionQuerysubscriptionQuerythe subscription query
ErrorsNULL_ARGUMENT subscriptionQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED subscriptionQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectSubscriptionQuery
Description

Gets a subscription query inspector for this publisher.

Returnosid.subscription.SubscriptionQueryInspectorthe subscriptions query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplySubscriptionSequencing
Description

Applies a subscription search order to this publisher.

Parametersosid.subscription.SubscriptionSearchOrdersubscriptionSearchOrderthe subscription search order
ErrorsNULL_ARGUMENT subscriptionSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED subscriptionSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetSubscriptionQueryFromInspector
Description

Gets a subscription query from an inspector.

Parametersosid.subscription.SubscriptionQueryInspectorsubscriptionQueryInspectora query inspector
Returnosid.subscription.SubscriptionQuerythe subscription query
ErrorsNULL_ARGUMENT subscriptionQueryInspector is null
UNSUPPORTED subscriptionQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.