OSID Logo
OSID Specifications
voting rules package
Version 3.0.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.IdvoteIdthe vote Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTvoteId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledVoteIdTerms
Description

Clears the vote Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledVoteQuery
Description

Tests if a VoteQuery is available.

Returnbooleantrue if a vote query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledVoteQuery
Description

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

Returnosid.voting.VoteQuerythe vote query
ErrorsUNIMPLEMENTEDsupportsRuledVoteQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledVoteQuery() is true .
MethodmatchAnyRuledVote
Description

Matches mapped to any vote.

Parametersbooleanmatchtrue for mapped to any vote, false to match mapped to no vote
CompliancemandatoryThis method must be implemented.
MethodclearRuledVoteTerms
Description

Clears the vote query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPollsId
Description

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

Parametersosid.id.IdpollsIdthe polls Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpollsId is null
CompliancemandatoryThis method must be implemented.
MethodclearPollsIdTerms
Description

Clears the polls Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPollsQuery
Description

Tests if a PollsQuery is available.

Returnbooleantrue if a polls query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPollsQuery
Description

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

Returnosid.voting.PollsQuerythe polls query
ErrorsUNIMPLEMENTEDsupportsPollsQuery() is false
ComplianceoptionalThis method must be implemented if supportsPollsQuery() is true .
MethodclearPollsTerms
Description

Clears the polls query terms.

CompliancemandatoryThis 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.TypevoteEnablerRecordTypea vote enabler record type
Returnosid.voting.rules.records.VoteEnablerQueryRecordthe vote enabler query record
ErrorsNULL_ARGUMENTvoteEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(voteEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.