Interface VoteSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
VoteSearch defines the interface for specifying vote search
options.
-
Method Summary
Modifier and TypeMethodDescriptiongetVoteSearchRecord(Type voteSearchRecordType) Gets the vote search record corresponding to the given vote search recordType.voidorderVoteResults(VoteSearchOrder voteSearchOrder) Specify an ordering to the search results.voidsearchAmongVotes(IdList voteIds) Execute this search among the given list of votes.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 OsidSearch
limitResultSetModifier and TypeMethodDescriptionvoidlimitResultSet(long start, long end) By default, searches return all matching results.
-
Method Details
-
searchAmongVotes
Execute this search among the given list of votes.- Parameters:
voteIds- a list of voteIds- Throws:
NullArgumentException-voteIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderVoteResults
Specify an ordering to the search results.- Parameters:
voteSearchOrder- a vote search order- Throws:
NullArgumentException-voteSearchOrderisnullUnsupportedException-voteSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getVoteSearchRecord
VoteSearchRecord getVoteSearchRecord(Type voteSearchRecordType) throws OperationFailedException, PermissionDeniedException Gets the vote search record corresponding to the given vote search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
voteSearchRecordType- a vote search record type- Returns:
- the vote search record
- Throws:
NullArgumentException-voteSearchRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-hasRecordType(voteSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-