| Interface | osid.voting.rules.RaceConstrainerRuleApplicationSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to apply | ||
| 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 | canAssignRaceConstrainers | ||
| Description |
Tests if this user can alter race constrainer/race
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | assignRaceConstrainerToRace | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | raceConstrainerId | the Id of the RaceConstrainer |
osid.id.Id | raceId | the Id of the Race | |
| Errors | ALREADY_EXISTS | raceConstrainerId is already applied to raceId
| |
| NOT_FOUND | raceConstrainerId or raceId not found | ||
| NULL_ARGUMENT | raceConstrainerId or raceId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignRaceConstrainerFromRace | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | raceConstrainerId | the Id of the RaceConstrainer |
osid.id.Id | raceId | the Id of the Race | |
| Errors | NOT_FOUND | raceConstrainerId or raceId not found or
raceConstrainerId not applied to raceId | |
| NULL_ARGUMENT | raceConstrainerId or raceId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canSequenceRaceConstrainers | ||
| Description |
Tests if this user can order | ||
| Return | boolean | false if RaceConstrainer ordering is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | moveRaceConstrainerAhead | ||
| Description |
Reorders race constrainers for a race by moving the specified race constrainer in front of a reference race constrainer. | ||
| Parameters | osid.id.Id | raceConstrainerId | the Id of a RaceConstrainer |
osid.id.Id | raceId | the Id of a Race | |
osid.id.Id | referenceId | the reference race constrainer Id | |
| Errors | NOT_FOUND | raceConstrainerId, raceId, or referenceId not
found or, raceConstrainerId or referenceId not
related to raceId | |
| NULL_ARGUMENT | raceConstrainerId, raceId, or referenceId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | moveRaceConstrainerBehind | ||
| Description |
Reorders race constrainers for a race by moving the specified race constrainer behind a reference race constrainer. | ||
| Parameters | osid.id.Id | raceConstrainerId | the Id of a RaceConstrainer |
osid.id.Id | raceId | the Id of a Race | |
osid.id.Id | referenceId | the reference race constrainer Id | |
| Errors | NOT_FOUND | raceConstrainerId, raceId, or referenceId not
found or, raceConstrainerId or referenceId not
related to raceId | |
| NULL_ARGUMENT | raceConstrainerId, raceId, or referenceId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | orderRaceConstrainers | ||
| Description |
Reorders a set of race constrainers for a race. | ||
| Parameters | osid.id.Id[] | raceConstrainerIds | the Ids for a set of RaceConstrainers |
osid.id.Id | raceId | the Id of a Race | |
| Errors | NOT_FOUND | raceId not found or, a raceConstrainerId not
related to raceId | |
| NULL_ARGUMENT | raceConstrainerIds or raceId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |