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

This session provides methods to retrieve CatalogEnabler to Catalog mappings. A Catalog with multiple CatalogEnablers means any positive rule evaluation across the enablers result in an enabled Catalog.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated catalog view: All methods in this session operate, retrieve and pertain catalog enablers defined explicitly in the current catalog
  • federated catalog view: All methods in this session operate, retrieve and pertain to all catalog enablers defined in this catalog and any other catalog enablers implicitly available in this catalog through catalog inheritence.
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.
MethodcanLookupCatalogEnablerRules
Description

Tests if this user can perform lookups of catalog enabler/catalog mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeCatalogEnablerRuleView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryCatalogEnablerRuleView
Description

A complete view of the CatalogEnabler and Catalog returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is 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 catalog 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.
MethodgetCatalogEnablerIdsForCatalog
Description

Gets the CatalogEnabler Id associated with a Catalog.

Parametersosid.id.IdcatalogId Id of the Catalog
Returnosid.id.IdListthe catalog enabler Ids
ErrorsNOT_FOUND catalogId is not found
NULL_ARGUMENT catalogId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablersForCatalog
Description

Gets the CatalogEnabler associated with a Catalog.

Parametersosid.id.IdcatalogId Id of the Catalog
Returnosid.cataloging.rules.CatalogEnablerListthe catalog enablers
ErrorsNOT_FOUND catalogId is not found
NULL_ARGUMENT catalogId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCatalogIdsForCatalogEnabler
Description

Gets the Catalog Ids mapped to a CatalogEnabler.

Parametersosid.id.IdcatalogEnablerId Id of a CatalogEnabler
Returnosid.id.IdListlist of catalog Ids
ErrorsNOT_FOUND catalogEnablerId is not found
NULL_ARGUMENT catalogEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCatalogsForCatalogEnabler
Description

Gets the Catalogs mapped to a CatalogEnabler.

Parametersosid.id.IdcatalogEnablerId Id of a CatalogEnabler
Returnosid.cataloging.CatalogListlist of catalogs
ErrorsNOT_FOUND catalogEnablerId is not found
NULL_ARGUMENT catalogEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.