OSID Logo
OSID Specifications
voting rules package
Version 3.1.0
Interfaceosid.voting.rules.VoteEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.voting.rules.VoteEnablerQuerySession
osid.voting.rules.VoteEnablerSearchSession
osid.voting.rules.VoteEnablerSmartPollsSession
Description

This is the query for searching vote enablers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchRuledVoteId
Description

Matches mapped to the vote.

Parametersosid.id.IdvoteId the vote Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT voteId is null
Compliancemandatory This method must be implemented.
MethodclearRuledVoteIdTerms
Description

Clears the vote Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledVoteQuery
Description

Tests if a VoteQuery is available.

Returnboolean true if a vote query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuledVoteQuery
Description

Gets the query for a vote. Multiple retrievals produce a nested OR term.

Returnosid.voting.VoteQuery the vote query
ErrorsUNIMPLEMENTED supportsRuledVoteQuery() is false
Complianceoptional This method must be implemented if supportsRuledVoteQuery() is true.
MethodmatchAnyRuledVote
Description

Matches mapped to any vote.

Parametersbooleanmatch true for mapped to any vote, false to match mapped to no vote
Compliancemandatory This method must be implemented.
MethodclearRuledVoteTerms
Description

Clears the vote query terms.

Compliancemandatory This method must be implemented.
MethodmatchPollsId
Description

Sets the polls Id for this query to match votes assigned to polls.

Parametersosid.id.IdpollsId the polls Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pollsId is null
Compliancemandatory This method must be implemented.
MethodclearPollsIdTerms
Description

Clears the polls Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsPollsQuery
Description

Tests if a PollsQuery is available.

Returnboolean true if a polls query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPollsQuery
Description

Gets the query for a polls. Multiple retrievals produce a nested OR term.

Returnosid.voting.PollsQuery the polls query
ErrorsUNIMPLEMENTED supportsPollsQuery() is false
Complianceoptional This method must be implemented if supportsPollsQuery() is true.
MethodclearPollsTerms
Description

Clears the polls query terms.

Compliancemandatory This method must be implemented.
MethodgetVoteEnablerQueryRecord
Description

Gets the vote enabler query record corresponding to the given VoteEnabler record Type.Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypevoteEnablerRecordType a vote enabler record type
Returnosid.voting.rules.records.VoteEnablerQueryRecord the vote enabler query record
ErrorsNULL_ARGUMENT voteEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(voteEnablerRecordType) is false
Compliancemandatory This method must be implemented.