OSID Logo
OSID Specifications
voting rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.rules.BallotConstrainerEnablerQuery
Implementsosid.OsidEnablerQuery
Description

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

MethodmatchRuledBallotConstrainerId
Description

Matches enablers mapped to the ballot constrainer.

Parametersosid.id.IdballotConstrainerIdthe ballot constrainer Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT ballotConstrainerId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledBallotConstrainerIdTerms
Description

Clears the ballot constrainer Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledBallotConstrainerQuery
Description

Tests if a BallotConstrainerQuery is available.

Returnboolean true if a ballot constrainer query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledBallotConstrainerQuery
Description

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

Returnosid.voting.rules.BallotConstrainerQuerythe ballot constrainer query
ErrorsUNIMPLEMENTED supportsRuledBallotConstrainerQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledBallotConstrainerQuery() is true.
MethodmatchAnyRuledBallotConstrainer
Description

Matches enablers mapped to any ballot constrainer.

Parametersbooleanmatch true for enablers mapped to any ballot constrainer, false to match enablers mapped to no ballot constrainers
CompliancemandatoryThis method must be implemented.
MethodclearRuledBallotConstrainerTerms
Description

Clears the ballot constrainer query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPollsId
Description

Matches enablers mapped to the polls.

Parametersosid.id.IdpollsIdthe polls Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pollsId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsPollsQuery() is false
ComplianceoptionalThis method must be implemented if supportsPollsQuery() is true.
MethodclearPollsTerms
Description

Clears the polls query terms.

CompliancemandatoryThis method must be implemented.
MethodgetBallotConstrainerEnablerQueryRecord
Description

Gets the ballot constrainer enabler query record corresponding to the given BallotConstrainerEnabler record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypeballotConstrainerEnablerRecordTypea ballot constrainer enabler record type
Returnosid.voting.rules.records.BallotConstrainerEnablerQueryRecordthe ballot constrainer enabler query record
ErrorsNULL_ARGUMENT ballotConstrainerEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(ballotConstrainerEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.