Interface | osid.voting.rules.BallotConstrainerEnablerLookupSession | ||
---|---|---|---|
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 | canLookupBallotConstrainerEnablers | ||
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 | useComparativeBallotConstrainerEnablerView | ||
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 | usePlenaryBallotConstrainerEnablerView | ||
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 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 | useActiveBallotConstrainerEnablerView | ||
Description |
Only active ballot constrainer enablers are current are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyStatusBallotConstrainerEnablerView | ||
Description |
All active and inactive ballot constrainer enablers are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getBallotConstrainerEnabler | ||
Description |
Gets the In active mode, ballot constrainer enablers are returned that are currently active. In any status mode, active and inactive ballot constrainer enablers are returned. | ||
Parameters | osid.id.Id | ballotConstrainerEnablerId | Id of the BallotConstrainerEnabler |
Return | osid.voting.rules.BallotConstrainerEnabler | the ballot constrainer enabler | |
Errors | NOT_FOUND | ballotConstrainerEnablerId not found | |
NULL_ARGUMENT | ballotConstrainerEnablerId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getBallotConstrainerEnablersByIds | ||
Description |
Gets a In active mode, ballot constrainer enablers are returned that are currently active. In any status mode, active and inactive ballot constrainer enablers are returned. | ||
Parameters | osid.id.IdList | ballotConstrainerEnablerIds | the list of Ids to retrieve |
Return | osid.voting.rules.BallotConstrainerEnablerList | the returned BallotConstrainerEnabler list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | ballotConstrainerEnablerIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainerEnablersByGenusType | ||
Description |
Gets a In active mode, ballot constrainer enablers are returned that are currently active. In any status mode, active and inactive ballot constrainer enablers are returned. | ||
Parameters | osid.type.Type | ballotConstrainerEnablerGenusType | a ballot constrainer enabler genus type |
Return | osid.voting.rules.BallotConstrainerEnablerList | the returned BallotConstrainerEnabler list | |
Errors | NULL_ARGUMENT | ballotConstrainerEnablerGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainerEnablersByParentGenusType | ||
Description |
Gets a In active mode, ballot constrainer enablers are returned that are currently active. In any status mode, active and inactive ballot constrainer enablers are returned. | ||
Parameters | osid.type.Type | ballotConstrainerEnablerGenusType | a ballot constrainer enabler genus type |
Return | osid.voting.rules.BallotConstrainerEnablerList | the returned BallotConstrainerEnabler list | |
Errors | NULL_ARGUMENT | ballotConstrainerEnablerGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainerEnablersByRecordType | ||
Description |
Gets a In active mode, ballot constrainer enablers are returned that are currently active. In any status mode, active and inactive ballot constrainer enablers are returned. | ||
Parameters | osid.type.Type | ballotConstrainerEnablerRecordType | a ballot constrainer enabler record type |
Return | osid.voting.rules.BallotConstrainerEnablerList | the returned BallotConstrainerEnabler list | |
Errors | NULL_ARGUMENT | ballotConstrainerEnablerRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainerEnablersOnDate | ||
Description |
Gets a In active mode, ballot constrainer enablers are returned that are currently active. In any status mode, active and inactive ballot constrainer enablers are returned. | ||
Parameters | osid.calendaring.DateTime | from | a start date |
osid.calendaring.DateTime | to | an end date | |
Return | osid.voting.rules.BallotConstrainerEnablerList | the returned BallotConstrainerEnabler list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainerEnablersOnDateWithAgent | ||
Description |
Gets a In active mode, ballot constrainer enablers are returned that are currently active. In any status mode, active and inactive ballot constrainer enablers are returned. | ||
Parameters | osid.id.Id | agentId | an agent Id |
osid.calendaring.DateTime | from | a start date | |
osid.calendaring.DateTime | to | an end date | |
Return | osid.voting.rules.BallotConstrainerEnablerList | the returned BallotConstrainerEnabler list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | agentId, from, or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBallotConstrainerEnablers | ||
Description |
Gets all In plenary mode, the returned list contains all known ballot constrainer enablers or an error results. Otherwise, the returned list may contain only those ballot constrainer enablers that are accessible through this session. In active mode, ballot constrainer enablers are returned that are currently active. In any status mode, active and inactive ballot constrainer enablers are returned. | ||
Return | osid.voting.rules.BallotConstrainerEnablerList | the returned BallotConstrainerEnabler list | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |