OSID Logo
OSID Specifications
cataloging rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.cataloging.rules.CatalogEnablerSearchSession
Implementsosid.cataloging.rules.CatalogEnablerQuerySession
Description

This session provides methods for searching among CatalogEnabler objects. The search query is constructed using the CatalogEnableryQuery.

getCatalogEnablersByQuery() is the basic search method and returns a list of CatalogEnablers. A more advanced search may be performed with getCatalogEnablersBySearch(). It accepts a CatalogEnablerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCatalogEnablersBySearch() returns a CatalogEnablerSearchResults that can be used to access the resulting CatalogEnablerList or be used to perform a search within the result set through CatalogEnablerSearch.

This session defines views that offer differing behaviors for searching.

  • federated catalog view: searches include catalog enablers in catalogs of which this catalog is an ancestor in the catalog hierarchy
  • isolated catalog view: searches are restricted to catalog enablers in this catalog

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

MethodgetCatalogEnablerSearch
Description

Gets a catalog enabler search.

Returnosid.cataloging.rules.CatalogEnablerSearchthe catalog enabler search
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablerSearchOrder
Description

Gets a catalog enabler search order. The CatalogEnablerSearchOrder is supplied to a CatalogEnablerSearch to specify the ordering of results.

Returnosid.cataloging.rules.CatalogEnablerSearchOrderthe catalog enabler search order
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablersBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.cataloging.rules.CatalogEnablerQuerycatalogEnablerQuerythe catalog enabler query
osid.cataloging.rules.CatalogEnablerSearchcatalogEnablerSearchthe catalog enabler search
Returnosid.cataloging.rules.CatalogEnablerSearchResultsthe returned search results
ErrorsNULL_ARGUMENT catalogEnablerQuery or catalogEnablerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED catalogEnablerQuery or catalogEnablerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablerQueryFromInspector
Description

Gets a catalog enabler query from an inspector. The inspector is available from a CatalogEnablerSearchResults.

Parametersosid.cataloging.rules.CatalogEnablerQueryInspectorcatalogEnablerQueryInspectora catalog enabler query inspector
Returnosid.cataloging.rules.CatalogEnablerQuerythe catalog enabler query
ErrorsNULL_ARGUMENT catalogEnablerQueryInspector is null
UNSUPPORTED catalogEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.