| Interface | osid.voting.rules.VoteEnablerLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.voting.rules.VotingRulesManager | ||
osid.voting.rules.VotingRulesProxyManager | |||
| 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 | canLookupVoteEnablers | ||
| 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 | useComparativeVoteEnablerView | ||
| 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 | usePlenaryVoteEnablerView | ||
| 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 | getVoteEnabler | ||
| Description |
Gets the In plenary mode, the exact | ||
| Parameters | osid.id.Id | voteEnablerId | Id of the VoteEnabler |
| Return | osid.voting.rules.VoteEnabler | the vote enabler | |
| Errors | NOT_FOUND | voteEnablerId not found | |
| NULL_ARGUMENT | voteEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getVoteEnablersByIds | ||
| Description |
Gets a In plenary mode, the returned list contains all of the
vote enablers specified in the | ||
| Parameters | osid.id.IdList | voteEnablerIds | the list of Ids to retrieve |
| Return | osid.voting.rules.VoteEnablerList | the returned VoteEnabler list | |
| Errors | NOT_FOUND | an Id was not found | |
| NULL_ARGUMENT | voteEnablerIds is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteEnablersByGenusType | ||
| Description |
Gets a In plenary mode, the returned list contains
all known vote enablers or an error results. Otherwise,
the returned list may contain only those vote enablers
that are accessible through this session.
| ||
| Parameters | osid.type.Type | voteEnablerGenusType | a vote enabler genus type |
| Return | osid.voting.rules.VoteEnablerList | the returned VoteEnabler list | |
| Errors | NULL_ARGUMENT | voteEnablerGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteEnablersByParentGenusType | ||
| Description |
Gets a In plenary mode, the returned list contains
all known vote enablers or an error results. Otherwise,
the returned list may contain only those vote enablers
that are accessible through this session.
| ||
| Parameters | osid.type.Type | voteEnablerGenusType | a vote genus type |
| Return | osid.voting.rules.VoteEnablerList | the returned VoteEnabler list | |
| Errors | NULL_ARGUMENT | voteEnablerGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteEnablersByRecordType | ||
| Description |
Gets a In plenary mode, the returned list contains
all known vote enablers or an error results. Otherwise,
the returned list may contain only those vote enablers
that are accessible through this session.
| ||
| Parameters | osid.type.Type | voteEnablerRecordType | a vote enabler record type |
| Return | osid.voting.rules.VoteEnablerList | the returned VoteEnabler list | |
| Errors | NULL_ARGUMENT | voteEnablerRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteEnablers | ||
| Description |
Gets all In plenary mode, the returned list contains all known vote enablers or an error results. Otherwise, the returned list may contain only those vote enablers that are accessible through this session. | ||
| Return | osid.voting.rules.VoteEnablerList | a list of VoteEnablers | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |