OSID Logo
OSID Specifications
ontology rules package
Version 3.1.0
Interfaceosid.ontology.rules.RelevancyEnablerQuerySession
Implementsosid.OsidSession
Implemented Byosid.ontology.rules.RelevancyEnablerSearchSession
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 RelevancyEnablerQuery.

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

Relevancy enablers may have a query record indicated by their respective record types. The query record is accessed via the RelevancyEnablerQuery.

MethodgetOntologyId
Description

Gets the Ontology Id associated with this session.

Returnosid.id.Id the Ontology Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetOntology
Description

Gets the Ontology associated with this session.

Returnosid.ontology.Ontology the ontology
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchRelevancyEnablers
Description

Tests if this user can perform RelevancyEnabler lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedOntologyView
Description

Federates the view for methods in this session. A federated view will include relevancy enablers in ontologies which are children of this broker in the ontology hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedOntologyView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this ontology only.

Compliancemandatory This method is must be implemented.
MethodgetRelevancyEnablerQuery
Description

Gets a relevancy enabler query.

Returnosid.ontology.rules.RelevancyEnablerQuery the relevancy enabler query
Compliancemandatory This method must be implemented.
MethodgetRelevancyEnablersByQuery
Description

Gets a list of RelevancyEnablers matching the given relevancy enabler query.

Parametersosid.ontology.rules.RelevancyEnablerQueryrelevancyEnablerQuery the relevancy enabler query
Returnosid.ontology.rules.RelevancyEnablerList the returned RelevancyEnablerList
ErrorsNULL_ARGUMENT relevancyEnablerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED relevancyEnablerQuery is not of this service
Compliancemandatory This method must be implemented.