OSID Logo
OSID Specifications
cataloging package
Version 3.1.0
Interfaceosid.cataloging.CatalogSearchSession
Implementsosid.cataloging.CatalogQuerySession
Used Byosid.cataloging.CatalogingManager
osid.cataloging.CatalogingProxyManager
Description

This session provides methods for searching Catalogs. 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.CatalogSearch the catalog search
Compliancemandatory This 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.CatalogSearchOrder the catalog search order
Compliancemandatory This method must be implemented.
MethodgetCatalogsBySearch
Description

Gets the search results matching the given search.

Parametersosid.cataloging.CatalogQuerycatalogQuery the catalog query
osid.cataloging.CatalogSearchcatalogSearch the catalog search
Returnosid.cataloging.CatalogSearchResults the search results
ErrorsNULL_ARGUMENT catalogQuery or catalogSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED catalogQuery or catalogSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetCatalogQueryFromInspector
Description

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

Parametersosid.cataloging.CatalogQueryInspectorcatalogQueryInspector a catalog query inspector
Returnosid.cataloging.CatalogQuery the catalog query
ErrorsNULL_ARGUMENT catalogQueryInspector is null
UNSUPPORTED catalogQueryInspector is not of this service
Compliancemandatory This method must be implemented.