| Interface | osid.voting.BallotAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
| 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 associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBallots | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Ballot creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBallotWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | ballotRecordTypes | array of ballot record types |
| Return | boolean | true if Ballot creation using the specified
Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | ballotRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBallotFormForCreate | ||
| Description |
Gets the ballot form for creating new ballots. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | ballotRecordTypes | array of ballot record types |
| Return | osid.voting.BallotForm | the ballot form | |
| Errors | NULL_ARGUMENT | ballotRecordTypes is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form with requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createBallot | ||
| Description |
Creates a new | ||
| Parameters | osid.voting.BallotForm | ballotForm | the form for this Ballot |
| Return | osid.voting.Ballot | the new Ballot | |
| Errors | ILLEGAL_STATE | ballotForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | ballotForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | ballotForm did not originate from
getBallotFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateBallots | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Ballot modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBallotFormForUpdate | ||
| Description |
Gets the ballot form for updating an existing ballot. A new ballot form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | ballotId | the Id of the Ballot |
| Return | osid.voting.BallotForm | the ballot form | |
| Errors | NOT_FOUND | ballotId is not found | |
| NULL_ARGUMENT | ballotId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateBallot | ||
| Description |
Updates an existing ballot. | ||
| Parameters | osid.voting.BallotForm | ballotForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | ballotForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | ballotForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | ballotForm did not originate from
getBallotFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteBallots | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Ballot deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteBallot | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | ballotId | the Id of the Ballot to remove |
| Errors | NOT_FOUND | ballotId not found | |
| NULL_ARGUMENT | ballotId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageBallotAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Ballot aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasBallot | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | ballotId | the Id of a Ballot |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | ballotId not found | ||
| NULL_ARGUMENT | aliasId or ballotId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |