| Interface | osid.voting.PollsAdminSession | ||
|---|---|---|---|
| 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 | canCreatePolls | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Polls creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePollsWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | pollsRecordTypes | array of polls record types |
| Return | boolean | true if Polls creation using the specified
Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | pollsRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPollsFormForCreate | ||
| Description |
Gets the polls form for creating new polls. | ||
| Parameters | osid.type.Type[] | pollsRecordTypes | array of polls record types |
| Return | osid.voting.PollsForm | the polls form | |
| Errors | NULL_ARGUMENT | pollsRecordTypes 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 | createPolls | ||
| Description |
Creates a new | ||
| Parameters | osid.voting.PollsForm | pollsForm | the form for this Polls |
| Return | osid.voting.Polls | the new Polls | |
| Errors | ILLEGAL_STATE | pollsForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | pollsForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | pollsForm did not originate from
getPollsFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdatePolls | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Polls modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPollsFormForUpdate | ||
| Description |
Gets the polls form for updating an existing polls. A new polls form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | pollsId | the Id of the Polls |
| Return | osid.voting.PollsForm | the polls form | |
| Errors | NOT_FOUND | pollsId is not found | |
| NULL_ARGUMENT | pollsId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updatePolls | ||
| Description |
Updates an existing polls. | ||
| Parameters | osid.voting.PollsForm | pollsForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | pollsForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | pollsId or pollsForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | pollsForm did not originate from
getPollsFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeletePolls | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Polls deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deletePolls | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | pollsId | the Id of the Polls to remove |
| Errors | NOT_FOUND | pollsId not found | |
| NULL_ARGUMENT | pollsId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManagePollsAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Polls aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasPolls | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | pollsId | the Id of a Polls |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | pollsId not found | ||
| NULL_ARGUMENT | pollsId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |