| Interface | osid.voting.rules.VoteEnablerAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.voting.rules.VotingRulesManager | ||
osid.voting.rules.VotingRulesProxyManager | |||
| 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 | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateVoteEnablers | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if VoteEnabler creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateVoteEnablerWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | voteEnablerRecordTypes | array of vote enabler record types |
| Return | boolean | true if VoteEnabler creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | voteEnablerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteEnablerFormForCreate | ||
| Description |
Gets the vote enabler form for creating new vote enablers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | voteEnablerRecordTypes | array of vote enabler record types |
| Return | osid.voting.rules.VoteEnablerForm | the vote enabler form | |
| Errors | NULL_ARGUMENT | voteEnablerRecordTypes 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 | createVoteEnabler | ||
| Description |
Creates a new | ||
| Parameters | osid.voting.rules.VoteEnablerForm | voteEnablerForm | the form for this VoteEnabler |
| Return | osid.voting.rules.VoteEnabler | the new VoteEnabler | |
| Errors | ILLEGAL_STATE | voteEnablerForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | voteEnablerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | voteEnablerForm did not originate from
getVoteEnablerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateVoteEnablers | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if VoteEnabler modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteEnablerFormForUpdate | ||
| Description |
Gets the vote enabler form for updating an existing vote enabler. A new vote enabler form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | voteEnablerId | the Id of the VoteEnabler |
| Return | osid.voting.rules.VoteEnablerForm | the vote enabler form | |
| Errors | NOT_FOUND | voteEnablerId is not found | |
| NULL_ARGUMENT | voteEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateVoteEnabler | ||
| Description |
Updates an existing vote enabler. | ||
| Parameters | osid.voting.rules.VoteEnablerForm | voteEnablerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | voteEnablerForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | voteEnablerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | voteEnablerForm did not originate from
getVoteEnablerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteVoteEnablers | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if VoteEnabler deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteVoteEnabler | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | voteEnablerId | the Id of the VoteEnabler to remove |
| Errors | NOT_FOUND | voteEnablerId not found | |
| NULL_ARGUMENT | voteEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageVoteEnablerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if VoteEnabler aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasVoteEnabler | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | voteEnablerId | the Id of a VoteEnabler |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | voteEnablerId not found | ||
| NULL_ARGUMENT | voteEnablerId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |