OSID Logo
OSID Specifications
forum package
Version 3.0.0
Release Candidate Preview
Interfaceosid.forum.ReplyLookupSession
Implementsosid.OsidSession
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.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.
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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedForumView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseSequesteredReplyView
Description

The returns from the lookup methods omit sequestered replies.

CompliancemandatoryThis method is must be implemented.
MethoduseUnsequesteredReplyView
Description

All replies are returned including sequestered replies.

CompliancemandatoryThis 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.IdreplyIdthe Id of the Reply to retrieve
Returnosid.forum.Replythe returned Reply
ErrorsNOT_FOUNDno Reply found with the given Id
NULL_ARGUMENT replyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListreplyIdsthe list of Ids to retrieve
Returnosid.forum.ReplyListthe returned Reply list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT replyIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypereplyGenusTypea reply genus type
Returnosid.forum.ReplyListthe returned Reply list
ErrorsNULL_ARGUMENT replyGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypereplyGenusTypea reply genus type
Returnosid.forum.ReplyListthe returned Post list
ErrorsNULL_ARGUMENT postGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypereplyRecordTypea reply record type
Returnosid.forum.ReplyListthe returned Post list
ErrorsNULL_ARGUMENT replyRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.forum.ReplyListthe returned ReplyList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpostIdthe Id of the post
Returnosid.forum.ReplyListthe returned ReplyList
ErrorsNULL_ARGUMENT postId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRepliesByDateForPost
Description

Gets a list of all replies corresponding to post Id in the given daterange 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.IdpostIdthe Id of the post
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.forum.ReplyListthe returned ReplyList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT postId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdresourceIdthe resource Id
Returnosid.forum.ReplyListthe returned ReplyList
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdresourceIdthe resource Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.forum.ReplyListthe returned ReplyList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpostIdthe Id of the post
osid.id.IdresourceIdthe resource Id
Returnosid.forum.ReplyListthe returned ReplyList
ErrorsNULL_ARGUMENT postId or resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpostIdthe Id of the post
osid.id.IdresourceIdthe resource Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.forum.ReplyListthe returned ReplyList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT postId, resourceId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.ReplyListthe returned ReplyList
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.