| Interface | osid.voting.CandidateNotificationSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods to receive notifications on 
                adds/changes to   The two views defined in this session correspond to the 
                views in the   | ||
| 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 | canRegisterForCandidateNotifications | ||
| Description | 
                     Tests if this user can register for   | ||
| Return | boolean |  false  if notification methods are not authorized,  
true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useFederatedPollsView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include candidates in polls which are children of this polls in the polls hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedPollsView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts notifications to this polls only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | registerForNewCandidates | ||
| Description | 
                     Register for notifications of new candidates.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForNewCandidatesForResource | ||
| Description | 
                     Registers for notification of a new candidate for the 
                    given resource.   | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource  to monitor  | 
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForNewCandidatesForRace | ||
| Description | 
                     Registers for notification of a new candidate for the 
                    given race.   | ||
| Parameters | osid.id.Id | raceId | the  Id  of the  race  to monitor  | 
| Errors | NULL_ARGUMENT |  raceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedCandidates | ||
| Description | 
                     Registers for notification of updated candidates. 
                      | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedCandidatesForResource | ||
| Description | 
                     Registers for notification of an updated candidate for 
                    the given resource.   | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource  to monitor  | 
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedCandidatesForRace | ||
| Description | 
                     Registers for notification of an updated candidate for 
                    the given race.   | ||
| Parameters | osid.id.Id | raceId | the  Id  of the  race  to monitor  | 
| Errors | NULL_ARGUMENT |  raceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedCandidate | ||
| Description | 
                     Registers for notification of an updated candidate. 
                      | ||
| Parameters | osid.id.Id | candidateId | the  Id  of the  Candidate  to monitor  | 
| Errors | NULL_ARGUMENT |  candidateId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedCandidates | ||
| Description | 
                     Registers for notification of deleted candidates. 
                      | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedCandidatesForResource | ||
| Description | 
                     Registers for notification of a deleted candidate for 
                    the given resource.   | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource  to monitor  | 
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedCandidatesForRace | ||
| Description | 
                     Registers for notification of a deleted candidate for 
                    the given race.   | ||
| Parameters | osid.id.Id | raceId | the  Id  of the  race  to monitor  | 
| Errors | NULL_ARGUMENT |  raceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedCandidate | ||
| Description | 
                     Registers for notification of a deleted candidate. 
                      | ||
| Parameters | osid.id.Id | candidateId | the  Id  of the  Candidate  to monitor  | 
| Errors | NULL_ARGUMENT |  candidateId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |