public interface CommentSmartBookSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A CommentQuery
can be retrieved from this session
and mapped to this Book
to create a virtual collection of
Comments.
The comments may be sequenced using the
CommentSearchOrder
from this session.
This Book
has a default query that matches any comment
and a default search order that specifies no sequencing. The queries may
be examined using a CommentQueryInspector.
The query may be
modified by converting the inspector back to a CommentQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyCommentQuery(CommentQuery commentQuery)
Applies a comment query to this book.
|
void |
applyCommentSequencing(CommentSearchOrder commentSearchOrder)
Applies a comment search order to this book.
|
boolean |
canManageSmartBooks()
Tests if this user can manage smart books.
|
Book |
getBook()
Gets the
Book associated with this session. |
Id |
getBookId()
Gets the
Book Id associated with this
session. |
CommentQuery |
getCommentQuery()
Gets a comment query.
|
CommentQuery |
getCommentQueryFromInspector(CommentQueryInspector commentQueryInspector)
Gets a comment query from an inspector.
|
CommentSearchOrder |
getCommentSearchOrder()
Gets a comment search order.
|
CommentQueryInspector |
inspectCommentQuery()
Gets a comment query inspector for this book.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getBookId()
Book
Id
associated with this
session. Book Id
associated with this sessionmandatory
- This method must be implemented. Book getBook() throws OperationFailedException, PermissionDeniedException
Book
associated with this session. Book
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartBooks()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart book management is not
authorized, true
otherwisemandatory
- This method must be implemented. CommentQuery getCommentQuery()
mandatory
- This method must be implemented. CommentSearchOrder getCommentSearchOrder()
mandatory
- This method must be implemented. void applyCommentQuery(CommentQuery commentQuery) throws OperationFailedException, PermissionDeniedException
commentQuery
- the comment queryNullArgumentException
- commentQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- commentQuery
not
of this servicemandatory
- This method must be implemented. CommentQueryInspector inspectCommentQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyCommentSequencing(CommentSearchOrder commentSearchOrder) throws OperationFailedException, PermissionDeniedException
commentSearchOrder
- the comment search orderNullArgumentException
- commentSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- commentSearchOrder
not of this servicemandatory
- This method must be implemented. CommentQuery getCommentQueryFromInspector(CommentQueryInspector commentQueryInspector)
commentQueryInspector
- a query inspectorNullArgumentException
- commentQueryInspector
is null
UnsupportedException
- commentQueryInspector
is not of this servicemandatory
- This method must be implemented.