public interface CommentSearchSession extends CommentQuerySession
This session provides methods for searching Comment
objects. The search query is constructed using the CommentQuery.
The comment record Type
also specifies the record
for the comment query.
getCommentsByQuery()
is the basic search method and
returns a list of Comment
elements. A more advanced search
may be performed with getCommentsBySearch().
It accepts a
CommentSearch
in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getCommentsBySearch()
returns a
CommentSearchResults
that can be used to access the resulting
CommentList
or be used to perform a search within the
result set through CommentSearch.
Comments may have a query record indicated by their respective record
types. The query record is accessed via the CommentQuery.
The returns in this session may not be cast directly to these interfaces.
Modifier and Type | Method and Description |
---|---|
CommentQuery |
getCommentQueryFromInspector(CommentQueryInspector commentQueryInspector)
Gets an entry query from an inspector.
|
CommentSearchResults |
getCommentsBySearch(CommentQuery commentQuery,
CommentSearch commentSearch)
Gets the search results matching the given search.
|
CommentSearch |
getCommentSearch()
Gets a comment search.
|
CommentSearchOrder |
getCommentSearchOrder()
Gets a comment search order.
|
canSearchComments, getBook, getBookId, getCommentQuery, getCommentsByQuery, useFederatedBookView, useIsolatedBookView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
CommentSearch getCommentSearch()
mandatory
- This method must be implemented. CommentSearchOrder getCommentSearchOrder()
CommentSearchOrder
is
supplied to a CommentSearch
to specify the ordering of
results.mandatory
- This method must be implemented. CommentSearchResults getCommentsBySearch(CommentQuery commentQuery, CommentSearch commentSearch) throws OperationFailedException, PermissionDeniedException
commentQuery
- the comment querycommentSearch
- the comment searchNullArgumentException
- commentQuery
or
commentSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- commentQuery
or
commentSearch
is not of this servicemandatory
- This method must be implemented. CommentQuery getCommentQueryFromInspector(CommentQueryInspector commentQueryInspector)
CommentSearchResults.
commentQueryInspector
- a comment query inspectorNullArgumentException
- commentQueryInspector
is null
UnsupportedException
- commentQueryInspector
is not of this servicemandatory
- This method must be implemented.