public interface VoteQuery extends OsidRelationshipQuery
This is the query for searching votes. Each method match request
produces an AND term while multiple invocations of a method
produces a nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearCandidateIdTerms()
Clears the candidate
Id terms. |
void |
clearCandidateTerms()
Clears the candidate terms.
|
void |
clearMinimumVotesTerms()
Clears the minimum votes terms.
|
void |
clearPollsIdTerms()
Clears the polls
Id terms. |
void |
clearPollsTerms()
Clears the polls terms.
|
void |
clearVoterIdTerms()
Clears the voter agent
Id terms. |
void |
clearVoterTerms()
Clears the voter terms.
|
void |
clearVotesTerms()
Clears the votes terms.
|
void |
clearVotingAgentIdTerms()
Clears the voting agent
Id terms. |
void |
clearVotingAgentTerms()
Clears the voter terms.
|
CandidateQuery |
getCandidateQuery()
Gets the query for a candidate.
|
PollsQuery |
getPollsQuery()
Gets the query for a polls.
|
VoteQueryRecord |
getVoteQueryRecord(Type voteRecordType)
Gets the vote query record corresponding to the given
Vote
record Type. |
ResourceQuery |
getVoterQuery()
Gets the query for a voter.
|
AgentQuery |
getVotingAgentQuery()
Gets the query for a voter.
|
void |
matchCandidateId(Id candidateId,
boolean match)
Sets the candidate
Id for this query. |
void |
matchMinimumVotes(long votes,
boolean match)
Matches the number of minimum votes inclusive.
|
void |
matchPollsId(Id pollsId,
boolean match)
Sets the polls
Id for this query to match terms
assigned to polls. |
void |
matchVoterId(Id resourceId,
boolean match)
Sets the resource
Id for this query. |
void |
matchVotes(long from,
long to,
boolean match)
Matches the number of votes within the given range inclusive.
|
void |
matchVotingAgentId(Id agentId,
boolean match)
Sets the voting agent
Id for this query. |
boolean |
supportsCandidateQuery()
Tests if a
CandidateQuery is available for querying
candidates. |
boolean |
supportsPollsQuery()
Tests if a
PollsQuery is available. |
boolean |
supportsVoterQuery()
Tests if a
ResourceQuery is available for querying
candidates. |
boolean |
supportsVotingAgentQuery()
Tests if an
AgentQuery is available for querying
candidates. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryclearCommentIdTerms, 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, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDatevoid matchCandidateId(Id candidateId, boolean match)
Id for this query.candidateId - a candidate Id match - true for a positive match, false
for a negative matchNullArgumentException - candidateId is
null mandatory - This method must be implemented. void clearCandidateIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCandidateQuery()
CandidateQuery is available for querying
candidates. true if a candidate query is available,
false otherwisemandatory - This method must be implemented. CandidateQuery getCandidateQuery()
OR term.UnimplementedException -
supportsCandidateQuery() is false optional - This method must be implemented if
supportsCandidateQuery() is true. void clearCandidateTerms()
mandatory - This method must be implemented. void matchVoterId(Id resourceId, boolean match)
Id for this query.resourceId - a resource Id match - true for a positive match, false
for a negative matchNullArgumentException - resourceId is
null mandatory - This method must be implemented. void clearVoterIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsVoterQuery()
ResourceQuery is available for querying
candidates. true if a resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getVoterQuery()
OR term.UnimplementedException - supportsVoterQuery()
is false optional - This method must be implemented if
supportsVoterQuery() is true. void clearVoterTerms()
mandatory - This method must be implemented. void matchVotingAgentId(Id agentId, boolean match)
Id for this query.agentId - a voting agent agent Id match - true for a positive match, false
for a negative matchNullArgumentException - agentId is
null mandatory - This method must be implemented. void clearVotingAgentIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsVotingAgentQuery()
AgentQuery is available for querying
candidates. true if a voting agent query is available,
false otherwisemandatory - This method must be implemented. AgentQuery getVotingAgentQuery()
OR term.UnimplementedException -
supportsVotingAgentQuery() is false optional - This method must be implemented if
supportsVotingAgentQuery() is true. void clearVotingAgentTerms()
mandatory - This method must be implemented. void matchVotes(long from,
long to,
boolean match)
from - start of rangeto - end of rangematch - true for a positive match, false
for a negative matchInvalidArgumentException - from is
greater than to mandatory - This method must be implemented. void clearVotesTerms()
mandatory - This method must be implemented. void matchMinimumVotes(long votes,
boolean match)
votes - the numbe rof votesmatch - true for a positive match, false
for a negative matchmandatory - This method must be implemented. void clearMinimumVotesTerms()
mandatory - This method must be implemented. void matchPollsId(Id pollsId, boolean match)
Id for this query to match terms
assigned to polls.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. VoteQueryRecord getVoteQueryRecord(Type voteRecordType) throws OperationFailedException
Vote
record Type. Multiple retrievals produce a
nested OR term.voteRecordType - a vote query record typeNullArgumentException - voteRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(voteRecordType) is false mandatory - This method must be implemented.