| Interface | osid.voting.rules.RaceProcessorAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates and removes race processors. The data
for create and update is provided via the | ||
| 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 | canCreateRaceProcessor | ||
| 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
| ||
| Return | boolean | false if RaceProcessor creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateRaceProcessorWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | raceProcessorRecordTypes | array of race processor types |
| Return | boolean | true if RaceProcessor creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | raceProcessorRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRaceProcessorFormForCreate | ||
| Description |
Gets the race processor form for creating new race processors. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | raceProcessorRecordTypes | array of race processor types |
| Return | osid.voting.rules.RaceProcessorForm | the race processor form | |
| Errors | NULL_ARGUMENT | raceProcessorRecordTypes is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createRaceProcessor | ||
| Description |
Creates a new | ||
| Parameters | osid.voting.rules.RaceProcessorForm | raceProcessorForm | the form for this RaceProcessor |
| Return | osid.voting.rules.RaceProcessor | the new RaceProcessor | |
| Errors | ILLEGAL_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() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateRaceProcessors | ||
| 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
| ||
| Return | boolean | false if RaceProcessor modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRaceProcessorFormForUpdate | ||
| Description |
Gets the race processor form for updating an existing race processor. A new race processor form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | raceProcessorId | the Id of the RaceProcessor |
| Return | osid.voting.rules.RaceProcessorForm | the race processor form | |
| Errors | NOT_FOUND | raceProcessorId is not found | |
| NULL_ARGUMENT | raceProcessorId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateRaceProcessor | ||
| Description |
Updates an existing race processor. | ||
| Parameters | osid.voting.rules.RaceProcessorForm | raceProcessorForm | the form containing the elements to be updated |
| Errors | ILLEGAL_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() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteRaceProcessors | ||
| 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
| ||
| Return | boolean | false if RaceProcessor deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteRaceProcessor | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | raceProcessorId | the Id of the RaceProcessor to remove |
| Errors | NOT_FOUND | raceProcessorId not found | |
| NULL_ARGUMENT | raceProcessorId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageRaceProcessorAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if RaceProcessor aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasRaceProcessor | ||
| Description |
Adds a | ||
| Parameters | osid.id.Id | raceProcessorId | the Id of a RaceProcessor |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_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 | ||
| Compliance | mandatory | This method must be implemented. | |