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

This session provides methods to retrieve Id to Catalog mappings. An Id may appear in multiple Catalogs. Each Catalog may have its own authorizations as to who is allowed to look at it.

This lookup session defines several views:

  • federated view: entries are accessible from the specified Catalog and any descendant catalogs in the Catalog hierarchy
  • isolated view: entries are accessible from the specified Catalog only
  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition

Generally, the comparative view should be used for most applications as it permits operation even if there a particular element is inaccessible. For example, a hierarchy output can be plugged into a lookup method to retrieve all objects known to a hierarchy, but it may not be necessary to break execution if a node from the hierarchy no longer exists. However, some administrative applications may need to know whether it had retrieved an entire set of objects and may sacrifice some interoperability for the sake of precision.

MethodcanLookupMappings
Description

Tests if this user can perform lookups of Id to 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.
MethoduseComparativeCatalogView
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.
MethodusePlenaryCatalogView
Description

A complete view of the Id 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 entries from descendant catalogs 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 the specified catalog only.

CompliancemandatoryThis method is must be implemented.
MethodgetIdsByCatalog
Description

Gets the list of Ids map to a Catalog.

Parametersosid.id.IdcatalogIda catalog Id
Returnosid.id.IdListlist of Ids mapped to the given catalogId
ErrorsNOT_FOUND catalogId is not found
NULL_ARGUMENT catalogId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdsByCatalogs
Description

Gets the list of Ids map to a lst of Catalogs.

Parametersosid.id.IdListcatalogIdsan Id
Returnosid.id.IdListlist of catalogs containing the given Id
ErrorsNULL_ARGUMENT catalogIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCatalogIdsById
Description

Gets the Catalog Ids mapped to an Id.

Parametersosid.id.Ididan Id
Returnosid.id.IdListlist of catalog Ids containing the given Id
ErrorsNULL_ARGUMENT id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCatalogsById
Description

Gets the Catalogs mapped to an Id.

Parametersosid.id.Ididan Id
Returnosid.cataloging.CatalogListlist of catalogs containing the given Id
ErrorsNULL_ARGUMENT id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.