OSID Logo
OSID Specifications
ontology package
Version 3.1.0
Interfaceosid.ontology.RelevancySearchOrder
Implementsosid.OsidRelationshipSearchOrder
Used Byosid.ontology.RelevancySearchSession
osid.ontology.RelevancySmartOntologySession
Description

An interface for specifying the ordering of search results.

MethodorderBySubject
Description

Specified a preference for ordering results by the subject.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsSubjectSearchOrder
Description

Tests if a SubjectSearchOrder is available.

Returnboolean true if a subject search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetSubjectSearchOrder
Description

Gets the search order for a subject.

Returnosid.ontology.SubjectSearchOrder the subject search order
ErrorsUNIMPLEMENTED supportsSubjectSearchOrder() is false
Complianceoptional This method must be implemented if supportsSubjectSearchOrder() is true.
MethodgetRelevancySearchOrderRecord
Description

Gets the relevancy search order record corresponding to the given commitment record Type.Multiple retrievals return the same underlying object.

Parametersosid.type.TyperelevancyRecordType a relevancy record type
Returnosid.ontology.records.RelevancySearchOrderRecord the relevancy search order record
ErrorsNULL_ARGUMENT relevancyRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(relevancyRecordType) is false
Compliancemandatory This method must be implemented.