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

This session provides methods for searching among CatalogEnabler objects. The search query is constructed using the CatalogEnablerQuery.

This session defines views that offer differing behaviors for searching.

  • federated catalog view: searches include catalog enablers in catalogs of which this catalog is an ancestor in the catalog hierarchy
  • isolated catalog view: searches are restricted to catalog enablers in this catalog

Catalog enablers may have a query record indicated by their respective record types. The query record is accessed via the 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.
MethodcanSearchCatalogEnablers
Description

Tests if this user can perform CatalogEnabler lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedCatalogView
Description

Federates the view for methods in this session. A federated view will include catalog enablers in catalogs which are children of this broker in the catalog hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedCatalogView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this catalog only.

CompliancemandatoryThis method is must be implemented.
MethodgetCatalogEnablerQuery
Description

Gets a catalog enabler query.

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

Gets a list of CatalogEnablers matching the given search.

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