OSID Logo
OSID Specifications
commenting package
Version 3.1.0
Interfaceosid.commenting.CommentSmartBookSession
Implementsosid.OsidSession
Used Byosid.commenting.CommentingManager
osid.commenting.CommentingProxyManager
Description

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.

MethodgetBookId
Description

Gets the Book Id associated with this session.

Returnosid.id.Id the Book Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetBook
Description

Gets the Book associated with this session.

Returnosid.commenting.Book the Book associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartBooks
Description

Tests if this user can manage smart books. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart book management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetCommentQuery
Description

Gets a comment query.

Returnosid.commenting.CommentQuery the comment query
Compliancemandatory This method must be implemented.
MethodgetCommentSearchOrder
Description

Gets a comment search order.

Returnosid.commenting.CommentSearchOrder the comment search order
Compliancemandatory This method must be implemented.
MethodapplyCommentQuery
Description

Applies a comment query to this book.

Parametersosid.commenting.CommentQuerycommentQuery the comment query
ErrorsNULL_ARGUMENT commentQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED commentQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectCommentQuery
Description

Gets a comment query inspector for this book.

Returnosid.commenting.CommentQueryInspector the comment query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyCommentSequencing
Description

Applies a comment search order to this book.

Parametersosid.commenting.CommentSearchOrdercommentSearchOrder the comment search order
ErrorsNULL_ARGUMENT commentSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED commentSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetCommentQueryFromInspector
Description

Gets a comment query from an inspector.

Parametersosid.commenting.CommentQueryInspectorcommentQueryInspector a query inspector
Returnosid.commenting.CommentQuery the comment query
ErrorsNULL_ARGUMENT commentQueryInspector is null
UNSUPPORTED commentQueryInspector is not of this service
Compliancemandatory This method must be implemented.