Interface | osid.voting.rules.RaceProcessorLookupSession | ||
---|---|---|---|
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 | canLookupRaceProcessors | ||
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 | useComparativeRaceProcessorView | ||
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 | usePlenaryRaceProcessorView | ||
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 race processor 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 | useActiveRaceProcessorView | ||
Description |
Only active race processors are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyStatusRaceProcessorView | ||
Description |
All active and inactive race processors are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRaceProcessor | ||
Description |
Gets the In active mode, race processors are returned that are currently active. In any status mode, active and inactive race processors are returned. | ||
Parameters | osid.id.Id | raceProcessorId | Id of the RaceProcessor |
Return | osid.voting.rules.RaceProcessor | the race processor | |
Errors | NOT_FOUND | raceProcessorId not found | |
NULL_ARGUMENT | raceProcessorId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRaceProcessorsByIds | ||
Description |
Gets a In active mode, race processors are returned that are currently active. In any status mode, active and inactive race processors are returned. | ||
Parameters | osid.id.IdList | raceProcessorIds | the list of Ids to retrieve |
Return | osid.voting.rules.RaceProcessorList | the returned RaceProcessor list | |
Errors | NOT_FOUND | a Id was not found | |
NULL_ARGUMENT | raceProcessorIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRaceProcessorsByGenusType | ||
Description |
Gets a In active mode, race processors are returned that are currently active. In any status mode, active and inactive race processors are returned. | ||
Parameters | osid.type.Type | raceProcessorGenusType | a race processor genus type |
Return | osid.voting.rules.RaceProcessorList | the returned RaceProcessor list | |
Errors | NULL_ARGUMENT | raceProcessorGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRaceProcessorsByParentGenusType | ||
Description |
Gets a In active mode, race processors are returned that are currently active. In any status mode, active and inactive race processors are returned. | ||
Parameters | osid.type.Type | raceProcessorGenusType | a race processor genus type |
Return | osid.voting.rules.RaceProcessorList | the returned RaceProcessor list | |
Errors | NULL_ARGUMENT | raceProcessorGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRaceProcessorsByRecordType | ||
Description |
Gets a In active mode, race processors are returned that are currently active. In any status mode, active and inactive race processors are returned. | ||
Parameters | osid.type.Type | raceProcessorRecordType | a race processor record type |
Return | osid.voting.rules.RaceProcessorList | the returned RaceProcessor list | |
Errors | NULL_ARGUMENT | raceProcessorRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRaceProcessors | ||
Description |
Gets all In plenary mode, the returned list contains all known race processor or an error results. Otherwise, the returned list may contain only those race processor that are accessible through this session. In active mode, race processors are returned that are currently active. In any status mode, active and inactive race processors are returned. | ||
Return | osid.voting.rules.RaceProcessorList | the returned RaceProcessor list | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |