OSID Logo
OSID Specifications
cataloging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.cataloging.CatalogSearchSession
Implementsosid.cataloging.CatalogQuerySession
Description

This session provides methods for searching Catalog objects. The search query is constructed using the CatalogQuery . The catalog record Type also specifies the record for the catalog query.

getCatalogsByQuery() is the basic search method and returns a list of Catalog elements. A more advanced search may be performed with getCatalogsBySearch(). It accepts a CatalogSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCatalogsBySearch() returns a CatalogSearchResults that can be used to access the resulting CatalogList or be used to perform a search within the result set through CatalogSearch.

Catalogs may have a query record indicated by their respective record types. The query record is accessed via the CatalogQuery.

MethodgetCatalogSearch
Description

Gets a catalog search.

Returnosid.cataloging.CatalogSearchthe catalog search
CompliancemandatoryThis method must be implemented.
MethodgetCatalogSearchOrder
Description

Gets a subject search order. The CatalogSearchOrder is supplied to a CatalogSearch to specify the ordering of results.

Returnosid.cataloging.CatalogSearchOrderthe catalog search order
CompliancemandatoryThis method must be implemented.
MethodgetCatalogsBySearch
Description

Gets the search results matching the given search.

Parametersosid.cataloging.CatalogQuerycatalogQuerythe catalog query
osid.cataloging.CatalogSearchcatalogSearchthe catalog search
Returnosid.cataloging.CatalogSearchResultsthe search results
ErrorsNULL_ARGUMENT catalogQuery or catalogSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED catalogQuery or catalogSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCatalogQueryFromInspector
Description

Gets a catalog query from an inspector. The inspector is available from an CatalogSearchResults.

Parametersosid.cataloging.CatalogQueryInspectorcatalogQueryInspectora catalog query inspector
Returnosid.cataloging.CatalogQuerythe catalog query
ErrorsNULL_ARGUMENT catalogQueryInspector is null
UNSUPPORTED catalogQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.