Interface | osid.cataloging.CatalogSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to retrieve This lookup session defines several views:
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. | ||
Method | canLookupMappings | ||
Description |
Tests if this user can perform lookups of | ||
Return | boolean | false if looking up mappings is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeCatalogView | ||
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. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryCatalogView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedCatalogView | ||
Description |
Federates the view for methods in this session. A federated view will include entries from descendant catalogs in the catalog hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedCatalogView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to the specified catalog only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getIdsByCatalog | ||
Description |
Gets the list of | ||
Parameters | osid.id.Id | catalogId | a catalog Id |
Return | osid.id.IdList | list of Ids mapped to the given catalogId | |
Errors | NOT_FOUND | catalogId is not found | |
NULL_ARGUMENT | catalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getIdsByCatalogs | ||
Description |
Gets the list of | ||
Parameters | osid.id.IdList | catalogIds | an Id |
Return | osid.id.IdList | list of catalogs containing the given Id | |
Errors | NULL_ARGUMENT | catalogIds is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getCatalogIdsById | ||
Description |
Gets the | ||
Parameters | osid.id.Id | id | an Id |
Return | osid.id.IdList | list of catalog Ids containing the given Id | |
Errors | NULL_ARGUMENT | id is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getCatalogsById | ||
Description |
Gets the | ||
Parameters | osid.id.Id | id | an Id |
Return | osid.cataloging.CatalogList | list of catalogs containing the given Id | |
Errors | NULL_ARGUMENT | id is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |