| Interface | osid.voting.batch.CandidateBatchAdminSession | ||
|---|---|---|---|
| Implements | osid.voting.CandidateAdminSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a The Once a batch of For updates, Once a batch of The delete operations delete | ||
| Method | getCandidateFormsForCreate | ||
| Description |
Gets the candidate forms for creating a bunch of new candidates. A candidate form is returned for each supplied race and resource pair. | ||
| Parameters | osid.voting.batch.CandidatePeerList | peers | the candidate peers |
osid.type.Type[] | candidateRecordTypes | array of candidate record types to be included in each create operation or an empty list if none | |
| Return | osid.voting.batch.CandidateBatchFormList | the candidate forms | |
| Errors | NOT_FOUND | a resourceId or raceId is not found | |
| NULL_ARGUMENT | peers or candidateRecordTypes is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to request forms with given record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createCandidates | ||
| Description |
Creates a new set of | ||
| Parameters | osid.voting.batch.CandidateBatchFormList | candidateForms | the candidate forms |
| Return | osid.transaction.batch.CreateResponseList | the create responses | |
| Errors | NULL_ARGUMENT | candidateForms is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCandidateFormsForUpdate | ||
| Description |
Gets the candidate forms for updating an existing set of candidates. A new candidate form should be requested for each update transaction. | ||
| Parameters | osid.id.IdList | candidateIds | the Ids of the Candidate |
| Return | osid.voting.batch.CandidateBatchFormList | the candidate form | |
| Errors | NOT_FOUND | a candidateId is not found | |
| NULL_ARGUMENT | candidateIds is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateCandidates | ||
| Description |
Updates existing candidates. This method returns an
error if the entire operation fails. Otherwise, the status
of an individual update operation is indicated in the
| ||
| Parameters | osid.voting.batch.CandidateBatchFormList | candidateForms | the form containing the elements to be updated |
| Return | osid.transaction.batch.UpdateResponseList | the update responses | |
| Errors | NULL_ARGUMENT | candidateForms is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteAllCandidates | ||
| Description |
Deletes all | ||
| Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCandidates | ||
| Description |
Deletes candidates for the given | ||
| Parameters | osid.id.IdList | candidateIds | the Ids of the candidates to delete |
| Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
| Errors | NULL_ARGUMENT | candidateIds is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCandidatesForRace | ||
| Description |
Deletes candidates for the given race. | ||
| Parameters | osid.id.Id | raceId | the Ids of a race |
| Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
| Errors | NULL_ARGUMENT | raceId is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCandidatesForResource | ||
| Description |
Deletes candidates for the given resource. | ||
| Parameters | osid.id.Id | resourceId | the Ids of a resource |
| Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
| Errors | NULL_ARGUMENT | resourceId is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteIneffectiveCandidatesByDate | ||
| Description |
Deletes candidates ineffective before the given date. | ||
| Parameters | osid.calendaring.DateTime | date | a date |
| Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
| Errors | NULL_ARGUMENT | date is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasCandidates | ||
| Description |
Adds an | ||
| Parameters | osid.transaction.batch.AliasRequestList | aliasRequests | the alias requests |
| Return | osid.transaction.batch.AliasResponseList | the alias responses | |
| Errors | NULL_ARGUMENT | aliasRequests is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |