Interface | osid.calendaring.CommitmentNotificationSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods to receive asynchronous notifications on adds/changes to event commitments. This session is intended for consumers needing to synchronize their state with this service without the use of polling. Notifications are cancelled when this session is closed. The views defined in this session correspond to the views
in the | ||
Method | getCalendarId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Calendar Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCalendar | ||
Description |
Gets the | ||
Return | osid.calendaring.Calendar | the Calendar associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canRegisterForCommitmentNotifications | ||
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 | useFederatedCalendarView | ||
Description |
Federates the view for methods in this session. A federated view will include notifications for commitments in calendars which are children of this calendar in the calendar hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedCalendarView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts notifications to this calendar only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | reliableCommitmentNotifications | ||
Description |
Reliable notifications are desired. In reliable mode,
notifications are to be acknowledged using | ||
Compliance | mandatory | This method is must be implemented. | |
Method | unreliableCommitmentNotifications | ||
Description |
Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | acknowledgeCommitmentNotification | ||
Description |
Acknowledge a commitment notification. | ||
Parameters | osid.id.Id | notificationId | the Id of the notification |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForNewCommitments | ||
Description |
Register for notifications of new commitments. | ||
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForNewCommitmentsByGenusType | ||
Description |
Register for notifications of new commitments by
commitment genus type. | ||
Parameters | osid.id.Id | commitmentGenusType | the commitment genus type to monitor |
Errors | NULL_ARGUMENT | commitmentGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForNewCommitmentsForEvent | ||
Description |
Register for notifications of new commitments for the
given event. | ||
Parameters | osid.id.Id | eventId | the Id of the Event to monitor |
Errors | NULL_ARGUMENT | eventId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForNewCommitmentsForResource | ||
Description |
Register for notifications of new commitments 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 | registerForChangedCommitments | ||
Description |
Registers for notification of updated commitments.
| ||
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForChangedCommitmentsByGenusType | ||
Description |
Register for notifications of changed commitments by
commitment genus type. | ||
Parameters | osid.type.Type | commitmentGenusType | the commitment genus type to monitor |
Errors | NULL_ARGUMENT | commitmentGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForChangedCommitmentsForEvent | ||
Description |
Register for notifications of changed commitments for
the given event. | ||
Parameters | osid.id.Id | eventId | the Id of the Event to monitor |
Errors | NULL_ARGUMENT | eventId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForChangedCommitmentsForResource | ||
Description |
Register for notifications of changed commitments for
the given rsource. | ||
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 | registerForChangedCommitment | ||
Description |
Registers for notification of an updated commitment.
| ||
Parameters | osid.id.Id | commitmentId | the Id of the Commitment to monitor |
Errors | NULL_ARGUMENT | commitmentId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForDeletedCommitments | ||
Description |
Registers for notification of deleted commitments.
| ||
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForDeletedCommitmentsByGenusType | ||
Description |
Register for notifications of deleted commitments by
commitment genus type. | ||
Parameters | osid.id.Id | commitmentGenusType | the commitment genus type to monitor |
Errors | NULL_ARGUMENT | commitmentGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForDeletedCommitmentsForEvent | ||
Description |
Register for notifications of deleted commitments for
the given event. | ||
Parameters | osid.id.Id | eventId | the Id of the Event to monitor |
Errors | NULL_ARGUMENT | eventId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForDeletedCommitmentsForResource | ||
Description |
Register for notifications of deleted commitments for
the given rsource. | ||
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 | registerForDeletedCommitment | ||
Description |
Registers for notification of a deleted commitment.
| ||
Parameters | osid.id.Id | commitmentId | the Id of the Commitment to monitor |
Errors | NULL_ARGUMENT | commitmentId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |