OSID Logo
OSID Specifications
forum package
Version 3.0.0
Release Candidate Preview
Interfaceosid.forum.ReplyNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Reply objects. 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.

MethodgetForumId
Description

Gets the Forum Id associated with this session.

Returnosid.id.Idthe Forum Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetForum
Description

Gets the Forum associated with this session.

Returnosid.forum.Forumthe forum
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForReplyNotifications
Description

Tests if this user can register for Reply notifications. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedForumView
Description

Federates the view for methods in this session. A federated view will include notifications for replies in forums which are children of this forum in the forum hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedForumView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this forum only.

CompliancemandatoryThis method is must be implemented.
MethodreliableReplyNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeReplyNotification() .

CompliancemandatoryThis method is must be implemented.
MethodunreliableReplyNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeReplyNotification
Description

Acknowledge a reply notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewReplies
Description

Register for notifications of new replies. ReplyReceiver.newReplies() is invoked when a new Reply is created.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRepliesForPoster
Description

Register for notifications of new replies for the given poster resource Id. ReplyReceiver.newReplies() is invoked when a new Reply is created.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRepliesForPost
Description

Register for notifications of new replies for the given post Id. ReplyReceiver.newReplies() is invoked when a new Reply is created.

Parametersosid.id.IdpostIdthe Id of the post to monitor
ErrorsNULL_ARGUMENT postId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedReplies
Description

Registers for notification of updated replies. ReplyReceiver.changedReplies() is invoked when a reply is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRepliesForPoster
Description

Register for notifications of changed replies for the given poster resource Id. ReplyReceiver.changedReplies() is invoked when a Reply for the poster is changed.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRepliesForPost
Description

Register for notifications of changed replies for the given post Id. ReplyReceiver.changedReplies() is invoked when a Reply for the post is changed.

Parametersosid.id.IdpostIdthe Id of the post to monitor
ErrorsNULL_ARGUMENT postId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedReply
Description

Registers for notification of an updated reply. ReplyReceiver.changedReplies() is invoked when the specified reply is changed.

Parametersosid.id.IdreplyIdthe Id of the Reply to monitor
ErrorsNULL_ARGUMENT replyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedReplies
Description

Registers for notification of deleted replies. ReplyReceiver.deletedReplies() is invoked when a reply is deleted.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRepliesForPoster
Description

Register for notifications of deleted replies for the given poster resource Id. ReplyReceiver.deletedReplies() is invoked when a Reply for the poster is deleted.

Parametersosid.id.IdresourceIdthe Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRepliesForPost
Description

Register for notifications of deleted replies for the given post Id. ReplyReceiver.deletedReplies() is invoked when a Reply for the post is deleted.

Parametersosid.id.IdpostIdthe Id of the post to monitor
ErrorsNULL_ARGUMENT postId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedReply
Description

Registers for notification of a deleted reply. ReplyReceiver.deletedReplies() is invoked when the specified reply is deleted.

Parametersosid.id.IdreplyIdthe Id of the Reply to monitor
ErrorsNULL_ARGUMENT replyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.