OSID Logo
OSID Specifications
voting rules package
Version 3.0.0
Interfaceosid.voting.rules.BallotConstrainerEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.voting.rules.BallotConstrainerEnablerQuerySession
osid.voting.rules.BallotConstrainerEnablerSearchSession
osid.voting.rules.BallotConstrainerEnablerSmartPollsSession
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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTballotConstrainerId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsRuledBallotConstrainerQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledBallotConstrainerQuery() is true .
MethodmatchAnyRuledBallotConstrainer
Description

Matches enablers mapped to any ballot constrainer.

Parametersbooleanmatchtrue 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
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.
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_ARGUMENTballotConstrainerEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(ballotConstrainerEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.