Interface | osid.voting.CandidatePollsAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to re-assign Moving or adding a reference of a | ||
Method | canAssignCandidates | ||
Description |
Tests if this user can alter candidate/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 | canAssignCandidatesToPolls | ||
Description |
Tests if this user can alter candidate/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 candidate 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 | getAssignablePollsIdsForCandidate | ||
Description |
Gets a list of polls including and under the given polls node in which a specific candidate can be assigned. | ||
Parameters | osid.id.Id | pollsId | the Id of the Polls |
osid.id.Id | candidateId | the Id of the Candidate | |
Return | osid.id.IdList | list of assignable polls Ids | |
Errors | NULL_ARGUMENT | pollsId or candidateId is null | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | assignCandidateToPolls | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | candidateId | the Id of the Candidate |
osid.id.Id | pollsId | the Id of the Polls | |
Errors | ALREADY_EXISTS | candidateId is already assigned to pollsId | |
NOT_FOUND | candidateId or pollsId not found | ||
NULL_ARGUMENT | candidateId or pollsId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignCandidateFromPolls | ||
Description |
Removes a | ||
Parameters | osid.id.Id | candidateId | the Id of the Candidate |
osid.id.Id | pollsId | the Id of the Polls | |
Errors | NOT_FOUND | candidateId or pollsId not found or
candidateId not assigned to pollsId | |
NULL_ARGUMENT | candidateId or pollsId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |