OSID Logo
OSID Specifications
cataloging rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.cataloging.rules.CatalogEnablerSmartCatalogSession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A CatalogEnablerQuery can be retrieved from this session and mapped to this Catalog to create a virtual collection of catalog enablers. The catalog enablers may be sequenced using the CatalogEnablerSearchOrder from this session.

This Catalog has a default query that matches any catalog enabler and a default search order that specifies no sequencing. The queries may be examined using a CatalogEnablerQueryInspector. The query may be modified by converting the inspector back to a CatalogEnablerQuery.

MethodgetCatalogId
Description

Gets the Catalog Id associated with this session.

Returnosid.id.Idthe Catalog Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCatalog
Description

Gets the Catalog associated with this session.

Returnosid.cataloging.Catalogthe catalog
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartCatalogs
Description

Tests if this user can manage smart catalogs. 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 catalog management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablerQuery
Description

Gets a catalog enabler query.

Returnosid.cataloging.rules.CatalogEnablerQuerythe catalog enabler query
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablerSearchOrder
Description

Gets a catalog enabler search order.

Returnosid.cataloging.rules.CatalogEnablerSearchOrderthe catalog enabler search order
CompliancemandatoryThis method must be implemented.
MethodapplyCatalogEnablerQuery
Description

Applies a catalog enabler query to this catalog.

Parametersosid.cataloging.rules.CatalogEnablerQuerycatalogEnablerQuerythe catalog enabler query
ErrorsNULL_ARGUMENT catalogEnablerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED catalogEnablerQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectCatalogEnablerQuery
Description

Gets a catalog enabler query inspector for this catalog.

Returnosid.cataloging.rules.CatalogEnablerQueryInspectorthe catalog enabler query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyCatalogEnablerSequencing
Description

Applies a catalog enabler search order to this catalog.

Parametersosid.cataloging.rules.CatalogEnablerSearchOrdercatalogEnablerSearchOrderthe catalog enabler search order
ErrorsNULL_ARGUMENT catalogEnablerSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED catalogEnablerSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablerQueryFromInspector
Description

Gets a catalog enabler query from an inspector.

Parametersosid.cataloging.rules.CatalogEnablerQueryInspectorcatalogEnablerQueryInspectora catalog enabler query inspector
Returnosid.cataloging.rules.CatalogEnablerQuerythe catalog enabler query
ErrorsNULL_ARGUMENT catalogEnablerQueryInspector is null
UNSUPPORTED catalogEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.