Interface VoteSearchOrder
- All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidRelationshipSearchOrder, OsidSearchOrder, OsidTemporalSearchOrder, Suppliable
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptionGets the search order interface for a candidate.Gets the search order for a resource.getVoteSearchOrderRecord(Type voteRecordType) Gets the vote search order record corresponding to the given vote recordType.Gets the search order for an agent.voidorderByCandidate(SearchOrderStyle style) Specified a preference for ordering results by the candidate.voidorderByVoter(SearchOrderStyle style) Specified a preference for ordering results by the voter.voidorderByVotes(SearchOrderStyle style) Specified a preference for ordering results by the number of votes.voidSpecified a preference for ordering results by the voteing agent.booleanTests if aCandidateSearchOrderis available.booleanTests if aResourceSearchOrderis available.booleanTests if anAgentSearchOrderis 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.Methods inherited from interface OsidRelationshipSearchOrder
getEndReasonSearchOrder, orderByEndReason, supportsEndReasonSearchOrderModifier and TypeMethodDescriptionGets the search order for a state.voidorderByEndReason(SearchOrderStyle style) Specifies a preference for ordering the results by the end reason state.booleanTests if aStateSearchOrderis available.Methods inherited from interface OsidTemporalSearchOrder
orderByEffective, orderByEndDate, orderByStartDateModifier and TypeMethodDescriptionvoidorderByEffective(SearchOrderStyle style) Specifies a preference for ordering the result set by the effective status.voidorderByEndDate(SearchOrderStyle style) Specifies a preference for ordering the result set by the end date.voidorderByStartDate(SearchOrderStyle style) Specifies a preference for ordering the result set by the start date.
-
Method Details
-
orderByCandidate
Specified a preference for ordering results by the candidate.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsCandidateSearchOrder
boolean supportsCandidateSearchOrder()Tests if aCandidateSearchOrderis available.- Returns:
trueif a candidate search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCandidateSearchOrder
CandidateSearchOrder getCandidateSearchOrder()Gets the search order interface for a candidate.- Returns:
- the candidate search order
- Throws:
UnimplementedException-supportsCandidateSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCandidateSearchOrder()} is {@code true} .
-
orderByVoter
Specified a preference for ordering results by the voter.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsVoterSearchOrder
boolean supportsVoterSearchOrder()Tests if aResourceSearchOrderis available.- Returns:
trueif a resource search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getVoterSearchOrder
ResourceSearchOrder getVoterSearchOrder()Gets the search order for a resource.- Returns:
- the resource search order
- Throws:
UnimplementedException-supportsVoterSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsVoterSearchOrder()} is {@code true} .
-
orderByVotingAgent
Specified a preference for ordering results by the voteing agent.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsVotingAgentSearchOrder
boolean supportsVotingAgentSearchOrder()Tests if anAgentSearchOrderis available.- Returns:
trueif an agent search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getVotingAgentSearchOrder
AgentSearchOrder getVotingAgentSearchOrder()Gets the search order for an agent.- Returns:
- the agent search order
- Throws:
UnimplementedException-supportsVotingAgentSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsVotingAgentSearchOrder()} is {@code true} .
-
orderByVotes
Specified a preference for ordering results by the number of votes.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
getVoteSearchOrderRecord
Gets the vote search order record corresponding to the given vote recordType. Multiple retrievals return the same underlying object.- Parameters:
voteRecordType- a vote record type- Returns:
- the vote search order record
- Throws:
NullArgumentException-voteRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(VoteRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-