Interface ObjectiveSearchOrder
- All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidFederateableSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, Suppliable
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptionGets the search order for an assessment.Gets a grade search order to order on cognitive process.Gets a grade search order to order on knolwgedge category.getObjectiveSearchOrderRecord(Type objectiveRecordType) Gets the objective search order record corresponding to the given objective recordType.Multiple retrievals return the same underlying object.voidSpecified a preference for ordering results by the assessment.voidSpecifies a preference for ordering the result set by the cognitive process.voidSpecifies a preference for ordering the result set by the knowledge category.booleanTests if anAssessmentSearchOrderis available.booleanTests if a grade search order is available.booleanTests if a grade search order is available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidIdentifiableSearchOrder
orderByIdModifier and TypeMethodDescriptionvoidorderById(SearchOrderStyle style) Specifies a preference for ordering the result set by theId.Methods inherited from interface OsidObjectSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatisticModifier and TypeMethodDescriptionvoidOrders by the timestamp of the first journal entry.voidorderByCumulativeRating(Id bookId, SearchOrderStyle style) Orders by the cumulative rating in a givenBook.voidSpecifies a preference for ordering the result set by the description.voidSpecifies a preference for ordering the result set by the display name.voidorderByGenusType(SearchOrderStyle style) Specifies a preference for ordering the result set by the genus type.voidOrders by the timestamp of the last journal entry.voidorderByState(Id processId, SearchOrderStyle style) Orders by the state in a givenProcess.voidorderByStatistic(Id meterId, SearchOrderStyle style) Orders by a statistic for a givenMeter.
-
Method Details
-
orderByAssessment
Specified a preference for ordering results by the assessment.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsAssessmentSearchOrder
boolean supportsAssessmentSearchOrder()Tests if anAssessmentSearchOrderis available.- Returns:
trueif an assessment search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssessmentSearchOrder
AssessmentSearchOrder getAssessmentSearchOrder()Gets the search order for an assessment.- Returns:
- the assessment search order
- Throws:
UnimplementedException-supportsAssessmentSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAssessmentSearchOrder()} is {@code true} .
-
orderByKnowledgeCategory
Specifies a preference for ordering the result set by the knowledge category.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsKnowledgeCategorySearchOrder
boolean supportsKnowledgeCategorySearchOrder()Tests if a grade search order is available.- Returns:
trueif a grade search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getKnowledgeCategorySearchOrder
GradeSearchOrder getKnowledgeCategorySearchOrder()Gets a grade search order to order on knolwgedge category.- Returns:
- a grade search order
- Throws:
UnimplementedException-supportsKnowledgeCategorySearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKnowledgeCategorySearchOrder()} is {@code true} .
-
orderByCognitiveProcess
Specifies a preference for ordering the result set by the cognitive process.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsCognitiveProcessSearchOrder
boolean supportsCognitiveProcessSearchOrder()Tests if a grade search order is available.- Returns:
trueif a grade search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCognitiveProcessSearchOrder
GradeSearchOrder getCognitiveProcessSearchOrder()Gets a grade search order to order on cognitive process.- Returns:
- a grade search order
- Throws:
UnimplementedException-supportsCognitiveProcessSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCognitiveProcessSearchOrder()} is {@code true} .
-
getObjectiveSearchOrderRecord
ObjectiveSearchOrderRecord getObjectiveSearchOrderRecord(Type objectiveRecordType) throws OperationFailedException Gets the objective search order record corresponding to the given objective recordType.Multiple retrievals return the same underlying object.- Parameters:
objectiveRecordType- an objective record type- Returns:
- the objective search order record
- Throws:
NullArgumentException-objectiveRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(objectiveRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-