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

This session creates and removes race processors. The data for create and update is provided via the RaceProcessorForm.

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.
MethodcanCreateRaceProcessor
Description

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

Returnboolean false if RaceProcessor creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateRaceProcessorWithRecordTypes
Description

Tests if this user can create a single RaceProcessor using the desired record types. While VotingRulesManager.getRaceProcessorRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific RaceProcessor. Providing an empty array tests if a RaceProcessor can be created with no records.

Parametersosid.type.Type[]raceProcessorRecordTypes array of race processor types
Returnboolean true if RaceProcessor creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT raceProcessorRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetRaceProcessorFormForCreate
Description

Gets the race processor form for creating new race processors. A new form should be requested for each create transaction.

Parametersosid.type.Type[]raceProcessorRecordTypes array of race processor types
Returnosid.voting.rules.RaceProcessorForm the race processor form
ErrorsNULL_ARGUMENT raceProcessorRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateRaceProcessor
Description

Creates a new RaceProcessor.

Parametersosid.voting.rules.RaceProcessorFormraceProcessorForm the form for this RaceProcessor
Returnosid.voting.rules.RaceProcessor the new RaceProcessor
ErrorsILLEGAL_STATE raceProcessorForm already used for a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT raceProcessorForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED raceProcessorForm did not originate from getRaceProcessorFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateRaceProcessors
Description

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

Returnboolean false if RaceProcessor modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetRaceProcessorFormForUpdate
Description

Gets the race processor form for updating an existing race processor. A new race processor form should be requested for each update transaction.

Parametersosid.id.IdraceProcessorId the Id of the RaceProcessor
Returnosid.voting.rules.RaceProcessorForm the race processor form
ErrorsNOT_FOUND raceProcessorId is not found
NULL_ARGUMENT raceProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateRaceProcessor
Description

Updates an existing race processor.

Parametersosid.voting.rules.RaceProcessorFormraceProcessorForm the form containing the elements to be updated
ErrorsILLEGAL_STATE raceProcessorForm already used for an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT raceProcessorForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED raceProcessorForm did not originate from getRaceProcessorFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteRaceProcessors
Description

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

Returnboolean false if RaceProcessor deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteRaceProcessor
Description

Deletes a RaceProcessor.

Parametersosid.id.IdraceProcessorId the Id of the RaceProcessor to remove
ErrorsNOT_FOUND raceProcessorId not found
NULL_ARGUMENT raceProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageRaceProcessorAliases
Description

Tests if this user can manage Id aliases for race processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if RaceProcessor aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasRaceProcessor
Description

Adds a Id to a RaceProcessor for the purpose of creating compatibility. The primary Id of the RaceProcessor is determined by the provider. The new Id performs as an alias to the primary Id. If the alias is a pointer to another race processor. it is reassigned to the given race processor Id.

Parametersosid.id.IdraceProcessorId the Id of a RaceProcessor
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND raceProcessorId not found
NULL_ARGUMENT raceProcessorId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.