OSID Logo
OSID Specifications
forum package
Version 3.1.0
Interfaceosid.forum.ReplyLookupSession
Implementsosid.OsidSession
Used Byosid.forum.ForumManager
osid.forum.ForumProxyManager
Description

This session defines methods for retrieving replies.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated forum view: All reply methods in this session operate, retrieve and pertain to replies defined explicitly in the current forum. Using an isolated view is useful for managing replies with the ReplyAdminSession.
  • federated forum view: All reply lookup methods in this session operate, retrieve and pertain to all replies defined in this forum and any other forums implicitly available in this forum through forum inheritence.
  • sequestered reply viiew: All reply methods suppress sequestered replies.
  • unsequestered reply view: All reply methods return all replies.

The methods useFederatedForumView() and useIsolatedForumView() behave as a radio group and one should be selected before invoking any lookup methods.

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.
MethodcanLookupReplies
Description

Tests if this user can lookup replies. 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 these operations.

Returnboolean false if reply lookup methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeReplyView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryReplyView
Description

A complete view of the Reply returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethoduseFederatedForumView
Description

Federates the view for methods in this session. A federated view will include 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 retrievals to this forum only.

Compliancemandatory This method is must be implemented.
MethoduseSequesteredReplyView
Description

The returns from the lookup methods omit sequestered replies.

Compliancemandatory This method is must be implemented.
MethoduseUnsequesteredReplyView
Description

All replies are returned including sequestered replies.

Compliancemandatory This method is must be implemented.
MethodgetReply
Description

Gets the Reply specified by its Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Reply may have a different Id than requested, such as the case where a duplicate Id was assigned to a Reply and retained for compatibility.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.id.IdreplyId the Id of the Reply to retrieve
Returnosid.forum.Reply the returned Reply
ErrorsNOT_FOUND no Reply found with the given Id
NULL_ARGUMENT replyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesByIds
Description

Gets a ReplyList corresponding to the given IdList.

In plenary mode, the returned list contains all of the replies specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible replies may be omitted from the list and may present the elements in any order including returning a unique set.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.id.IdListreplyIds the list of Ids to retrieve
Returnosid.forum.ReplyList the returned Reply list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT replyIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesByGenusType
Description

Gets a ReplyList corresponding to the given reply genus Type which does not include replies of genus types derived from the specified Type.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.type.TypereplyGenusType a reply genus type
Returnosid.forum.ReplyList the returned Reply list
ErrorsNULL_ARGUMENT replyGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesByParentGenusType
Description

Gets a ReplyList corresponding to the given reply genus Type and include any additional replies with genus types derived from the specified Type.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.type.TypereplyGenusType a reply genus type
Returnosid.forum.ReplyList the returned Post list
ErrorsNULL_ARGUMENT postGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesByRecordType
Description

Gets a ReplyList containing the given reply record Type.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.type.TypereplyRecordType a reply record type
Returnosid.forum.ReplyList the returned Post list
ErrorsNULL_ARGUMENT replyRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesByDate
Description

Gets a list of all replies corresponding to the given date range inclusive.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.calendaring.DateTimefrom start of date range
osid.calendaring.DateTimeto end of date range
Returnosid.forum.ReplyList the returned ReplyList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesForPost
Description

Gets a list of all replies corresponding to a post Id.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.id.IdpostId the Id of the post
Returnosid.forum.ReplyList the returned ReplyList
ErrorsNULL_ARGUMENT postId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesByDateForPost
Description

Gets a list of all replies corresponding to post Id in the given date range inclusive.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replis that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.id.IdpostId the Id of the post
osid.calendaring.DateTimefrom start of date range
osid.calendaring.DateTimeto end of date range
Returnosid.forum.ReplyList the returned ReplyList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT postId, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesForPoster
Description

Gets a list of all replies corresponding to a poster.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.id.IdresourceId the resource Id
Returnosid.forum.ReplyList the returned ReplyList
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesByDateForPoster
Description

Gets a list of all replies corresponding to a post Id for the given poster within the date range inclusive.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.id.IdresourceId the resource Id
osid.calendaring.DateTimefrom start of date range
osid.calendaring.DateTimeto end of date range
Returnosid.forum.ReplyList the returned ReplyList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesForPostAndPoster
Description

Gets a list of all replies corresponding to a post Id and poster.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.id.IdpostId the Id of the post
osid.id.IdresourceId the resource Id
Returnosid.forum.ReplyList the returned ReplyList
ErrorsNULL_ARGUMENT postId or resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRepliesByDateForPostAndPoster
Description

Gets a list of all replies corresponding to a post Id and poster within the given daterange incluisve.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Parametersosid.id.IdpostId the Id of the post
osid.id.IdresourceId the resource Id
osid.calendaring.DateTimefrom start of date range
osid.calendaring.DateTimeto end of date range
Returnosid.forum.ReplyList the returned ReplyList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT postId, resourceId, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetReplies
Description

Gets a list of all replies.

In plenary mode, the returned list contains all known replies or an error results. Otherwise, the returned list may contain only those replies that are accessible through this session.

In sequestered mode, no sequestered replies are returned. In unsequestered mode, all replies are returned.

Returnosid.forum.ReplyList the returned ReplyList
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.