OSID Logo
OSID Specifications
ontology rules package
Version 3.1.0
Interfaceosid.ontology.rules.RelevancyEnablerSearchSession
Implementsosid.ontology.rules.RelevancyEnablerQuerySession
Used Byosid.ontology.rules.OntologyRulesManager
osid.ontology.rules.OntologyRulesProxyManager
Description

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

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

This session defines views that offer differing behaviors for searching.

  • federated ontology view: searches include relevancy enablers in ontologies of which this ontology is an ancestor in the ontology hierarchy
  • isolated ontology view: searches are restricted to relevancy enablers in this ontology
RelevancyEnablers may have a query record indicated by their respective record types. The query record is accessed via the RelevancyEnablerQuery.
MethodgetRelevancyEnablerSearch
Description

Gets a relevancy enabler search.

Returnosid.ontology.rules.RelevancyEnablerSearch the relevancy enabler search
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablerSearchOrder
Description

Gets a relevancy enabler search order. The RelevancyEnablerSearchOrder is supplied to a RelevancyEnablerSearch to specify the ordering of results.

Returnosid.ontology.rules.RelevancyEnablerSearchOrder the relevancy enabler search order
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablersBySearch
Description

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

Parametersosid.ontology.rules.RelevancyEnablerQueryrelevancyEnablerQuery the relevancy enabler query
osid.ontology.rules.RelevancyEnablerSearchrelevancyEnablerSearch the relevancy enabler search
Returnosid.ontology.rules.RelevancyEnablerSearchResults the returned search results
ErrorsNULL_ARGUMENT relevancyEnablerQuery or relevancyEnablerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED relevancyEnablerQuery or relevancyEnablerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablerQueryFromInspector
Description

Gets a relevancy enabler query from an inspector. The inspector is available from a RelevancyEnablerSearchResults.

Parametersosid.ontology.rules.RelevancyEnablerQueryInspectorrelevancyEnablerQueryInspector a relevancy enabler query inspector
Returnosid.ontology.rules.RelevancyEnablerQuery the relevancy enabler query
ErrorsNULL_ARGUMENT relevancyEnablerQueryInspector is null
UNSUPPORTED relevancyEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.