| Interface | osid.voting.rules.VoteEnablerRuleLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.voting.rules.VotingRulesManager | ||
osid.voting.rules.VotingRulesProxyManager | |||
| Description |
This session provides methods to retrieve
Th is lookup session defines several views:
| ||
| 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 | canLookupVoteEnablerRules | ||
| Description |
Tests if this user can perform lookups of vote
enabler/vote mappings. A return of true does not guarantee
successful authorization. A return of false indicates that
it is known lookup methods in this session will result in
a | ||
| Return | boolean | false if looking up mappings is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeVoteEnablerRuleView | ||
| 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 | usePlenaryVoteEnablerRuleView | ||
| 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 vote enablers 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 | getVoteEnablerIdsForVote | ||
| Description |
Gets the | ||
| Parameters | osid.id.Id | voteId | Id of the Vote |
| Return | osid.id.IdList | the vote enabler Ids | |
| Errors | NOT_FOUND | voteId is not found | |
| NULL_ARGUMENT | voteId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteEnablersForVote | ||
| Description |
Gets the | ||
| Parameters | osid.id.Id | voteId | Id of the Vote |
| Return | osid.voting.rules.VoteEnablerList | the vote enablers | |
| Errors | NOT_FOUND | voteId is not found | |
| NULL_ARGUMENT | voteId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteIdsForVoteEnabler | ||
| Description |
Gets the | ||
| Parameters | osid.id.Id | voteEnablerId | Id of a VoteEnabler |
| Return | osid.id.IdList | list of vote Ids | |
| Errors | NOT_FOUND | voteEnablerId is not found | |
| NULL_ARGUMENT | voteEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getVotesForVoteEnabler | ||
| Description |
Gets the | ||
| Parameters | osid.id.Id | voteEnablerId | Id of a VoteEnabler |
| Return | osid.voting.VoteList | list of votes | |
| Errors | NOT_FOUND | voteEnablerId is not found | |
| NULL_ARGUMENT | voteEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |