OSID Logo
OSID Specifications
voting rules package
Version 3.1.0
Interfaceosid.voting.rules.RaceProcessorRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.voting.rules.VotingRulesManager
osid.voting.rules.VotingRulesProxyManager
Description

This session provides methods to apply RaceProcessors to Races.

MethodgetPollsId
Description

Gets the Polls Id associated with this session.

Returnosid.id.Id the Polls Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetPolls
Description

Gets the Polls associated with this session.

Returnosid.voting.Polls the polls
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodassignRaceProcessorToRace
Description

Adds an existing RaceProcessor to a Race.

Parametersosid.id.IdraceProcessorId the Id of the RaceProcessor
osid.id.IdraceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignRaceProcessorFromRace
Description

Removes a RaceProcessor from a Race.

Parametersosid.id.IdraceProcessorId the Id of the RaceProcessor
osid.id.IdraceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdraceProcessorId the Id of a RaceProcessor
osid.id.IdraceId the Id of a Race
osid.id.IdreferenceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdraceProcessorId the Id of a RaceProcessor
osid.id.IdraceId the Id of a Race
osid.id.IdreferenceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderRaceProcessors
Description

Reorders a set of race processors for a race.

Parametersosid.id.Id[]raceProcessorIds the Ids for a set of RaceProcessors
osid.id.IdraceId the Id of a Race
ErrorsNOT_FOUND raceId not found or, a raceProcessorId not related to raceProcessorId
NULL_ARGUMENT raceProcessorIds or raceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.