Interface | osid.voting.rules.BallotConstrainerLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. The methods | ||
Method | getPollsId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Polls Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getPolls | ||
Description |
Gets the | ||
Return | osid.voting.Polls | the polls | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupBallotConstrainers | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeBallotConstrainerView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryBallotConstrainerView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedPollsView | ||
Description |
Federates the view for methods in this session. A federated view will include ballot constrainer in polls which are children of this polls in the polls hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedPollsView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this polls only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useActiveBallotConstrainerView | ||
Description |
Only active ballot constrainers are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyStatusBallotConstrainerView | ||
Description |
All active and inactive ballot constrainers are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getBallotConstrainer | ||
Description |
Gets the In active mode, ballot constrainers are returned that are currently active. In any status mode, active and inactive ballot constrainers are returned. | ||
Parameters | osid.id.Id | ballotConstrainerId | Id of the BallotConstrainer |
Return | osid.voting.rules.BallotConstrainer | the ballot constrainer | |
Errors | NOT_FOUND | ballotConstrainerId not found | |
NULL_ARGUMENT | ballotConstrainerId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getBallotConstrainersByIds | ||
Description |
Gets a In active mode, ballot constrainers are returned that are currently active. In any status mode, active and inactive ballot constrainers are returned. | ||
Parameters | osid.id.IdList | ballotConstrainerIds | the list of Ids to retrieve |
Return | osid.voting.rules.BallotConstrainerList | the returned BallotConstrainer list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | ballotConstrainerIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainersByGenusType | ||
Description |
Gets a In active mode, ballot constrainers are returned that are currently active. In any status mode, active and inactive ballot constrainers are returned. | ||
Parameters | osid.type.Type | ballotConstrainerGenusType | a ballot constrainer genus type |
Return | osid.voting.rules.BallotConstrainerList | the returned BallotConstrainer list | |
Errors | NULL_ARGUMENT | ballotConstrainerGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainersByParentGenusType | ||
Description |
Gets a In active mode, ballot constrainers are returned that are currently active. In any status mode, active and inactive ballot constrainers are returned. | ||
Parameters | osid.type.Type | ballotConstrainerGenusType | a ballot constrainer genus type |
Return | osid.voting.rules.BallotConstrainerList | the returned BallotConstrainer list | |
Errors | NULL_ARGUMENT | ballotConstrainerGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainersByRecordType | ||
Description |
Gets a In active mode, ballot constrainers are returned that are currently active. In any status mode, active and inactive ballot constrainers are returned. | ||
Parameters | osid.type.Type | ballotConstrainerRecordType | a ballot constrainer record type |
Return | osid.voting.rules.BallotConstrainerList | the returned BallotConstrainer list | |
Errors | NULL_ARGUMENT | ballotConstrainerRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainers | ||
Description |
Gets all In plenary mode, the returned list contains all known ballot constrainer or an error results. Otherwise, the returned list may contain only those ballot constrainer that are accessible through this session. In active mode, ballot constrainers are returned that are currently active. In any status mode, active and inactive ballot constrainers are returned. | ||
Return | osid.voting.rules.BallotConstrainerList | the returned BallotConstrainer list | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |