| Interface | osid.voting.BallotNotificationSession | ||
|---|---|---|---|
| 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 | canRegisterForBallotNotifications | ||
| 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 ballots 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 | registerForNewBallots | ||
| Description | 
                     Register for notifications of new ballots.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedBallots | ||
| Description | 
                     Registers for notification of updated ballots.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedBallot | ||
| Description | 
                     Registers for notification of an updated ballot.   | ||
| Parameters | osid.id.Id | ballotId | the  Id  of the  Ballot  to monitor  | 
| Errors | NULL_ARGUMENT |  ballotId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedBallots | ||
| Description | 
                     Registers for notification of deleted ballots.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedBallot | ||
| Description | 
                     Registers for notification of a deleted ballot.   | ||
| Parameters | osid.id.Id | ballotId | the  Id  of the  Ballot  to monitor  | 
| Errors | NULL_ARGUMENT |  ballotId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |