OSID Logo
OSID Specifications
forum package
Version 3.1.0
Interfaceosid.forum.ReplyNotificationSession
Implementsosid.OsidSession
Used Byosid.forum.ForumManager
osid.forum.ForumProxyManager
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.Id the Forum Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetForum
Description

Gets the Forum associated with this session.

Returnosid.forum.Forum the forum
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedForumView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableReplyNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableReplyNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeReplyNotification
Description

Acknowledge a reply notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewReplies
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdpostId the Id of the post to monitor
ErrorsNULL_ARGUMENT postId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedReplies
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdpostId the Id of the post to monitor
ErrorsNULL_ARGUMENT postId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdreplyId the Id of the Reply to monitor
ErrorsNULL_ARGUMENT replyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedReplies
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdpostId the Id of the post to monitor
ErrorsNULL_ARGUMENT postId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdreplyId the Id of the Reply to monitor
ErrorsNULL_ARGUMENT replyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.