OSID Logo
OSID Specifications
voting rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.rules.RaceProcessorRuleApplicationSession
Implementsosid.OsidSession
Description

This session provides methods to apply RaceProcessors to Races.

MethodgetPollsId
Description

Gets the Polls Id associated with this session.

Returnosid.id.Idthe Polls Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetPolls
Description

Gets the Polls associated with this session.

Returnosid.voting.Pollsthe polls
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignRaceProcessors
Description

Tests if this user can alter race processor/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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignRaceProcessorToRace
Description

Adds an existing RaceProcessor to a Race.

Parametersosid.id.IdraceProcessorIdthe Id of the RaceProcessor
osid.id.IdraceIdthe Id of the Race
ErrorsALREADY_EXISTS raceProcessorId is already applied to raceId
NOT_FOUND raceProcessorId or raceId not found
NULL_ARGUMENT raceProcessorId or raceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignRaceProcessorFromRace
Description

Removes a RaceProcessor from a Race.

Parametersosid.id.IdraceProcessorIdthe Id of the RaceProcessor
osid.id.IdraceIdthe Id of the Race
ErrorsNOT_FOUND raceProcessorId or raceId not found or raceProcessorId not applied to raceId
NULL_ARGUMENT raceProcessorId or raceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceRaceProcessors
Description

Tests if this user can order RaceProcessors. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnboolean false if RaceProcessor ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveRaceProcessorAhead
Description

Reorders race processors for a race by moving the specified race processor in front of a reference race processor.

Parametersosid.id.IdraceProcessorIdthe Id of a RaceProcessor
osid.id.IdraceIdthe Id of a Race
osid.id.IdreferenceIdthe reference race processor Id
ErrorsNOT_FOUND raceProcessorId, raceId, or referenceId not found or, raceProcessorId or referenceId not related to raceId
NULL_ARGUMENT raceProcessorId, raceId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveRaceProcessorBehind
Description

Reorders race processors for a race by moving the specified race processor behind a reference race processor.

Parametersosid.id.IdraceProcessorIdthe Id of a RaceProcessor
osid.id.IdraceIdthe Id of a Race
osid.id.IdreferenceIdthe reference race processor Id
ErrorsNOT_FOUND raceProcessorId, raceId, or referenceId not found or, raceProcessorId or referenceId not related to raceId
NULL_ARGUMENT raceProcessorId, raceId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderRaceProcessors
Description

Reorders a set of race processors for a race.

Parametersosid.id.Id[]raceProcessorIdsthe Ids for a set of RaceProcessors
osid.id.IdraceIdthe Id of a Race
ErrorsNOT_FOUND raceId not found or, a raceProcessorId not related to raceProcessorId
NULL_ARGUMENT raceProcessorIds or raceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.