Interface HoldSearchOrder
- All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidRelationshipSearchOrder, OsidSearchOrder, OsidTemporalSearchOrder, Suppliable
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptiongetHoldSearchOrderRecord(Type holdRecordType) Gets the hold search order record corresponding to the given hold recordType.Gets the issue search order.Gets the resource search order.voidorderByIssue(SearchOrderStyle style) Orders the results by issue.voidorderByResource(SearchOrderStyle style) Orders the results by resource.booleanTests if an issue search order is available.booleanTests if a resource search order is available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidIdentifiableSearchOrder
orderByIdMethods inherited from interface OsidObjectSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatisticMethods inherited from interface OsidRelationshipSearchOrder
getEndReasonSearchOrder, orderByEndReason, supportsEndReasonSearchOrderMethods inherited from interface OsidTemporalSearchOrder
orderByEffective, orderByEndDate, orderByStartDate
-
Method Details
-
orderByResource
Orders the results by resource.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsResourceSearchOrder
boolean supportsResourceSearchOrder()Tests if a resource search order is available.- Returns:
trueif a resource search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getResourceSearchOrder
ResourceSearchOrder getResourceSearchOrder()Gets the resource search order.- Returns:
- the resource search order
- Throws:
IllegalStateException-supportsResourceSearchOrder()isfalse- Compliance:
mandatory- This method must be implemented.
-
orderByIssue
Orders the results by issue.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsIssueSearchOrder
boolean supportsIssueSearchOrder()Tests if an issue search order is available.- Returns:
trueif an issue search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getIssueSearchOrder
IssueSearchOrder getIssueSearchOrder()Gets the issue search order.- Returns:
- the issue search order
- Throws:
IllegalStateException-supportsIssueSearchOrder()isfalse- Compliance:
mandatory- This method must be implemented.
-
getHoldSearchOrderRecord
Gets the hold search order record corresponding to the given hold recordType. Multiple retrievals return the same underlying object.- Parameters:
holdRecordType- a hold record type- Returns:
- the hold search order record
- Throws:
NullArgumentException-holdRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(holdRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-