public interface ReplyLookupSession extends OsidSession
This session defines methods for retrieving replies.
This lookup session defines several views:
ReplyAdminSession. The methods useFederatedForumView() and
useIsolatedForumView() behave as a radio group and one should be
selected before invoking any lookup methods.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupReplies()
Tests if this user can lookup replies.
|
Forum |
getForum()
Gets the
Forum associated with this session. |
Id |
getForumId()
Gets the
Forum Id associated with this
session. |
ReplyList |
getReplies()
Gets a list of all replies.
|
ReplyList |
getRepliesByDate(DateTime from,
DateTime to)
Gets a list of all replies corresponding to the given date range
inclusive
. |
ReplyList |
getRepliesByDateForPost(Id postId,
DateTime from,
DateTime to)
Gets a list of all replies corresponding to post
Id in
the given daterange inclusive. |
ReplyList |
getRepliesByDateForPostAndPoster(Id postId,
Id resourceId,
DateTime from,
DateTime to)
Gets a list of all replies corresponding to a post
Id
and poster within the given daterange incluisve. |
ReplyList |
getRepliesByDateForPoster(Id resourceId,
DateTime from,
DateTime to)
Gets a list of all replies corresponding to a post
Id
for the given poster within the date range inclusive. |
ReplyList |
getRepliesByGenusType(Type replyGenusType)
Gets a
ReplyList corresponding to the given reply genus
Type which does not include replies of genus types
derived from the specified Type. |
ReplyList |
getRepliesByIds(IdList replyIds)
Gets a
ReplyList corresponding to the given
IdList. |
ReplyList |
getRepliesByParentGenusType(Type replyGenusType)
Gets a
ReplyList corresponding to the given reply genus
Type and include any additional replies with genus
types derived from the specified Type. |
ReplyList |
getRepliesByRecordType(Type replyRecordType)
Gets a
ReplyList containing the given reply record
Type. |
ReplyList |
getRepliesForPost(Id postId)
Gets a list of all replies corresponding to a post
Id. |
ReplyList |
getRepliesForPostAndPoster(Id postId,
Id resourceId)
Gets a list of all replies corresponding to a post
Id
and poster. |
ReplyList |
getRepliesForPoster(Id resourceId)
Gets a list of all replies corresponding to a poster.
|
Reply |
getReply(Id replyId)
Gets the
Reply specified by its Id. |
void |
useComparativeReplyView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedForumView()
Federates the view for methods in this session.
|
void |
useIsolatedForumView()
Isolates the view for methods in this session.
|
void |
usePlenaryReplyView()
A complete view of the
Reply returns is desired. |
void |
useSequesteredReplyView()
The returns from the lookup methods omit sequestered replies.
|
void |
useUnsequesteredReplyView()
All replies are returned including sequestered replies.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getForumId()
Forum Id associated with this
session. Forum Id associated with this sessionmandatory - This method must be implemented. Forum getForum() throws OperationFailedException, PermissionDeniedException
Forum associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupReplies()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer these operations. false if reply lookup methods are not
authorized, true otherwisemandatory - This method must be implemented. void useComparativeReplyView()
mandatory - This method is must be implemented. void usePlenaryReplyView()
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.mandatory - This method is must be implemented. void useFederatedForumView()
mandatory - This method is must be implemented. void useIsolatedForumView()
mandatory - This method is must be implemented. void useSequesteredReplyView()
mandatory - This method is must be implemented. void useUnsequesteredReplyView()
mandatory - This method is must be implemented. Reply getReply(Id replyId) throws NotFoundException, OperationFailedException, PermissionDeniedException
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.replyId - the Id of the Reply to
retrieve Reply NotFoundException - no Reply found with
the given Id NullArgumentException - replyId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesByIds(IdList replyIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
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.replyIds - the list of Ids to retrieve Reply list NotFoundException - an Id was not foundNullArgumentException - replyIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesByGenusType(Type replyGenusType) throws OperationFailedException, PermissionDeniedException
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.replyGenusType - a reply genus type Reply listNullArgumentException - replyGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesByParentGenusType(Type replyGenusType) throws OperationFailedException, PermissionDeniedException
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.replyGenusType - a reply genus type Post listNullArgumentException - postGenusType is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesByRecordType(Type replyRecordType) throws OperationFailedException, PermissionDeniedException
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.replyRecordType - a reply record type Post listNullArgumentException - replyRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesByDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
.
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.from - start of date rangeto - end of date range ReplyList InvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesForPost(Id postId) throws OperationFailedException, PermissionDeniedException
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.postId - the Id of the post ReplyList NullArgumentException - postId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesByDateForPost(Id postId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.postId - the Id of the postfrom - start of date rangeto - end of date range ReplyList InvalidArgumentException - from is
greater than to NullArgumentException - postId, from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesForPoster(Id resourceId) throws OperationFailedException, PermissionDeniedException
resourceId - the resource Id ReplyList NullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesByDateForPoster(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.resourceId - the resource Id from - start of date rangeto - end of date range ReplyList InvalidArgumentException - from is
greater than to NullArgumentException - resourceId, from
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesForPostAndPoster(Id postId, Id resourceId) throws OperationFailedException, PermissionDeniedException
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.postId - the Id of the postresourceId - the resource Id ReplyList NullArgumentException - postId or
resourceId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getRepliesByDateForPostAndPoster(Id postId, Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.postId - the Id of the postresourceId - the resource Id from - start of date rangeto - end of date range ReplyList InvalidArgumentException - from is
greater than to NullArgumentException - postId, resourceId, from
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ReplyList getReplies() throws OperationFailedException, PermissionDeniedException
ReplyList OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.