| Interface | osid.voting.rules.VoteEnablerPollsAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.voting.rules.VotingRulesManager | ||
osid.voting.rules.VotingRulesProxyManager | |||
| Description |
This session provides methods to re-assign
Adding a reference of a | ||
| Method | canAssignVoteEnablers | ||
| Description |
Tests if this user can alter vote enabler/polls
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignVoteEnablerToPolls | ||
| Description |
Tests if this user can alter vote enabler/polls
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Parameters | osid.id.Id | pollsId | the Id of the Polls |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | pollsId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignablePollsIds | ||
| Description |
Gets a list of polls including and under the given polls node in which any vote enabler can be assigned. | ||
| Parameters | osid.id.Id | pollsId | the Id of the Polls |
| Return | osid.id.IdList | list of assignable polls Ids | |
| Errors | NULL_ARGUMENT | pollsId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignablePollsIdsForVoteEnabler | ||
| Description |
Gets a list of polls including and under the given polls node in which a specific vote enabler can be assigned. | ||
| Parameters | osid.id.Id | pollsId | the Id of the Polls |
osid.id.Id | voteEnablerId | the Id of the VoteEnabler | |
| Return | osid.id.IdList | list of assignable polls Ids | |
| Errors | NULL_ARGUMENT | pollsId or voteEnablerId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignVoteEnablerToPolls | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | voteEnablerId | the Id of the VoteEnabler |
osid.id.Id | pollsId | the Id of the Polls | |
| Errors | ALREADY_EXISTS | voteEnablerId is already assigned to pollsId | |
| NOT_FOUND | voteEnablerId or pollsId not found | ||
| NULL_ARGUMENT | voteEnablerId or pollsId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignVoteEnablerFromPolls | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | voteEnablerId | the Id of the VoteEnabler |
osid.id.Id | pollsId | the Id of the Polls | |
| Errors | NOT_FOUND | voteEnablerId or pollsId not found or
voteEnablerId not assigned to pollsId | |
| NULL_ARGUMENT | voteEnablerId or pollsId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignVoteEnablerToPolls | ||
| Description |
Moves a | ||
| Parameters | osid.id.Id | voteEnablerId | the Id of the VoteEnabler |
osid.id.Id | fromPollsId | the Id of the current Polls | |
osid.id.Id | toPollsId | the Id of the destination Polls | |
| Errors | ALREADY_EXISTS | voteEnablerId already assigned to toPollsId | |
| NOT_FOUND | voteEnablerId, fromPollsId , or toPollsId not
found or voteEnablerId not mapped to fromPollsId | ||
| NULL_ARGUMENT | voteEnablerId, fromPollsId , or toPollsId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |