OSID Logo
OSID Specifications
cataloging rules package
Version 3.1.0
Interfaceosid.cataloging.rules.CatalogEnablerRuleLookupSession
Implementsosid.OsidSession
Used Byosid.cataloging.rules.CatalogingRulesManager
osid.cataloging.rules.CatalogingRulesProxyManager
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.

Like all OsidSessions, CatalogEnablerRuleLookupSessions are dedicated to single processing threads and a single authenticated user.

MethodgetCatalogId
Description

Gets the Catalog Id associated with this session.

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

Gets the Catalog associated with this session.

Returnosid.cataloging.Catalog the catalog
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This method 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.

Compliancemandatory This 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 catalog in the catalog hierarchy.

Compliancemandatory This method must be implemented.
MethoduseIsolatedCatalogView
Description

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

Compliancemandatory This method must be implemented.
MethodgetCatalogEnablerIdsForCatalog
Description

Gets the CatalogEnabler Id associated with a Catalog.

Parametersosid.id.IdcatalogId Id of the Catalog
Returnosid.id.IdList the catalog enabler Ids
ErrorsNOT_FOUND catalogId is not found
NULL_ARGUMENT catalogId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCatalogEnablersForCatalog
Description

Gets the CatalogEnabler associated with a Catalog.

Parametersosid.id.IdcatalogId Id of the Catalog
Returnosid.cataloging.rules.CatalogEnablerList the catalog enablers
ErrorsNOT_FOUND catalogId is not found
NULL_ARGUMENT catalogId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCatalogIdsForCatalogEnabler
Description

Gets the Catalog Ids mapped to a CatalogEnabler.

Parametersosid.id.IdcatalogEnablerId Id of a CatalogEnabler
Returnosid.id.IdList list of catalog Ids
ErrorsNOT_FOUND catalogEnablerId is not found
NULL_ARGUMENT catalogEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCatalogsForCatalogEnabler
Description

Gets the Catalogs mapped to a CatalogEnabler.

Parametersosid.id.IdcatalogEnablerId Id of a CatalogEnabler
Returnosid.cataloging.CatalogList list of catalogs
ErrorsNOT_FOUND catalogEnablerId is not found
NULL_ARGUMENT catalogEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.