public interface BallotQuery extends OsidGovernatorQuery, OsidTemporalQuery
This is the query for searching ballots. Each method specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearPollsIdTerms()
Clears the polls
Id terms. |
void |
clearPollsTerms()
Clears the polls terms.
|
void |
clearRaceIdTerms()
Clears the race
Id terms. |
void |
clearRaceTerms()
Clears the race terms.
|
void |
clearRevoteTerms()
Clears the revote ballot terms.
|
BallotQueryRecord |
getBallotQueryRecord(Type ballotRecordType)
Gets the ballot query record corresponding to the given
Ballot
record Type. |
PollsQuery |
getPollsQuery()
Gets the query for a polls.
|
RaceQuery |
getRaceQuery()
Gets the query for a race.
|
void |
matchAnyRace(boolean match)
Matches ballots with any race.
|
void |
matchPollsId(Id pollsId,
boolean match)
Sets the polls
Id for this query. |
void |
matchRaceId(Id raceId,
boolean match)
Sets the race
Id for this query. |
void |
matchRevote(boolean match)
Matches ballots that allow vote modification.
|
boolean |
supportsPollsQuery()
Tests if a
PollsQuery is available. |
boolean |
supportsRaceQuery()
Tests if a
RaceQuery is available. |
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperational
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQuery
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchRevote(boolean match)
match
- true
for a positive match, false
for a negative matchmandatory
- This method must be implemented. void clearRevoteTerms()
mandatory
- This method must be implemented. void matchRaceId(Id raceId, boolean match)
Id
for this query.raceId
- the race Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- raceId
is
null
mandatory
- This method must be implemented. void clearRaceIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsRaceQuery()
RaceQuery
is available. true
if a race query is available, false
otherwisemandatory
- This method must be implemented. RaceQuery getRaceQuery()
OR
term.UnimplementedException
- supportsRaceQuery()
is false
optional
- This method must be implemented if
supportsRaceQuery()
is true.
void matchAnyRace(boolean match)
match
- true
to match any race, false
to match ballots with no racesmandatory
- This method must be implemented. void clearRaceTerms()
mandatory
- This method must be implemented. void matchPollsId(Id pollsId, boolean match)
Id
for this query.pollsId
- the polls Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- pollsId
is
null
mandatory
- This method must be implemented. void clearPollsIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsPollsQuery()
PollsQuery
is available. true
if a polls query is available,
false
otherwisemandatory
- This method must be implemented. PollsQuery getPollsQuery()
OR
term.UnimplementedException
- supportsPollsQuery()
is false
optional
- This method must be implemented if
supportsPollsQuery()
is true.
void clearPollsTerms()
mandatory
- This method must be implemented. BallotQueryRecord getBallotQueryRecord(Type ballotRecordType) throws OperationFailedException
Ballot
record Type.
Multiple retrievals produce a
nested OR
term.ballotRecordType
- a ballot record typeNullArgumentException
- ballotRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(ballotRecordType)
is false
mandatory
- This method must be implemented.