Interface BallotSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing ballot searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetBallotSearchRecord(Type ballotSearchRecordType) Gets the ballot search record corresponding to the given ballot search recordType.voidorderBallotResults(BallotSearchOrder ballotSearchOrder) Specify an ordering to the search results.voidsearchAmongBallots(IdList ballotIds) Execute this search among the given list of ballots.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
-
searchAmongBallots
Execute this search among the given list of ballots.- Parameters:
ballotIds- list of ballotIds- Throws:
NullArgumentException-ballotIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderBallotResults
Specify an ordering to the search results.- Parameters:
ballotSearchOrder- ballot search order- Throws:
NullArgumentException-orderisnullUnsupportedException-orderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getBallotSearchRecord
BallotSearchRecord getBallotSearchRecord(Type ballotSearchRecordType) throws OperationFailedException Gets the ballot search record corresponding to the given ballot search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
ballotSearchRecordType- a ballot search record type- Returns:
- the ballot search record
- Throws:
NullArgumentException-ballotSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordTypeType(ballotSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-