OSID Logo
OSID Specifications
commenting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.commenting.CommentingManager
Implementsosid.OsidManager
osid.commenting.CommentingProfile
Description

The commenting manager provides access to commenting sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:

  • CommentLookupSession: a session to lookup comments
  • RatingLookupSession: a session to lookup comments
  • CommentQuerySession: a session to query comments
  • CommentSearchSession: a session to search comments
  • CommentAdminSession: a session to manage comments
  • CommentNotificationSession: a session to subscribe to notifications of comment changes
  • CommentBookSession: a session for looking up comment and book mappings
  • CommentBookAssignmentSession: a session for managing comment and book mappings
  • CommentSmartBookSession: a session to manage dynamic comment books
  • BookLookupSession: a session to retrieve books
  • BookQuerySession: a session to query books
  • BookSearchSession: a session to search for books
  • BookAdminSession: a session to create, update and delete books
  • BookNotificationSession: a session to receive notifications for changes in books
  • BookHierarchyTraversalSession: a session to traverse hierarchies of books
  • BookHierarchyDesignSession: a session to manage hierarchies of books

The commenting manager also provides a profile for determing the supported search types supported by this service.

MethodgetCommentLookupSession
Description

Gets the OsidSession associated with the comment lookup service.

Returnosid.commenting.CommentLookupSessiona CommentLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentLookup() is false
ComplianceoptionalThis method must be implemented if supportsCommentLookup() is true.
MethodgetCommentLookupSessionForBook
Description

Gets the OsidSession associated with the comment lookup service for the given book.

Parametersosid.id.IdbookIdthe Id of the Book
Returnosid.commenting.CommentLookupSessiona CommentLookupSession
ErrorsNOT_FOUNDno Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsCommentLookup() and supportsVisibleFederation() are true
MethodgetRatingLookupSession
Description

Gets the OsidSession associated with the rating lookup service.

Returnosid.commenting.RatingLookupSessiona RatingLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsRatingLookup() is false
ComplianceoptionalThis method must be implemented if supportsRatingLookup() is true.
MethodgetRatingLookupSessionForBook
Description

Gets the OsidSession associated with the rating lookup service for the given book.

Parametersosid.id.IdbookIdthe Id of the Book
Returnosid.commenting.RatingLookupSessiona RatingLookupSession
ErrorsNOT_FOUNDno Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsRatingLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsRatingLookup() and supportsVisibleFederation() are true
MethodgetCommentQuerySession
Description

Gets the OsidSession associated with the comment query service.

Returnosid.commenting.CommentQuerySessiona CommentQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentQuery() is false
ComplianceoptionalThis method must be implemented if supportsCommentQuery() is true.
MethodgetCommentQuerySessionForBook
Description

Gets the OsidSession associated with the comment query service for the given book.

Parametersosid.id.IdbookIdthe Id of the Book
Returnosid.commenting.CommentQuerySessiona CommentQuerySession
ErrorsNOT_FOUNDno Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentQuery() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsCommentQuery() and supportsVisibleFederation() are true
MethodgetCommentSearchSession
Description

Gets the OsidSession associated with the comment search service.

Returnosid.commenting.CommentSearchSessiona CommentSearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentSearch() is false
ComplianceoptionalThis method must be implemented if supportsCommentSearch() is true.
MethodgetCommentSearchSessionForBook
Description

Gets the OsidSession associated with the comment search service for the given book.

Parametersosid.id.IdbookIdthe Id of the Book
Returnosid.commenting.CommentSearchSessiona CommentSearchSession
ErrorsNOT_FOUNDno Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentSearch() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsCommentSearch() and supportsVisibleFederation() are true
MethodgetCommentAdminSession
Description

Gets the OsidSession associated with the comment administration service.

Returnosid.commenting.CommentAdminSessiona CommentAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentAdmin() is false
ComplianceoptionalThis method must be implemented if supportsCommentAdmin() is true.
MethodgetCommentAdminSessionForBook
Description

Gets the OsidSession associated with the comment administration service for the given book.

Parametersosid.id.IdbookIdthe Id of the Book
Returnosid.commenting.CommentAdminSessiona CommentAdminSession
ErrorsNOT_FOUNDno Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentAdmin() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsCommentAdmin() and supportsVisibleFederation() are true
MethodgetCommentNotificationSession
Description

Gets the OsidSession associated with the comment notification service.

Parametersosid.commenting.CommentReceivercommentReceiverthe receiver
Returnosid.commenting.CommentNotificationSessiona CommentNotificationSession
ErrorsNULL_ARGUMENT commentReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentNotification() is false
ComplianceoptionalThis method must be implemented if supportsCommentNotification() is true.
MethodgetCommentNotificationSessionForBook
Description

Gets the OsidSession associated with the comment notification service for the given book.

Parametersosid.commenting.CommentReceivercommentReceiverthe receiver
osid.id.IdbookIdthe Id of the Book
Returnosid.commenting.CommentNotificationSessiona CommentNotificationSession
ErrorsNOT_FOUNDno Book found by the given Id
NULL_ARGUMENT commentReceiver or bookId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentNotification() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsCommentNotification() and supportsVisibleFederation() are true
MethodgetCommentBookSession
Description

Gets the session for retrieving comment to book mappings.

Returnosid.commenting.CommentBookSessiona CommentBookSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentBook() is false
ComplianceoptionalThis method must be implemented if supportsCommentBook() is true.
MethodgetCommentBookAssignmentSession
Description

Gets the session for assigning comment to book mappings.

Returnosid.commenting.CommentBookAssignmentSessiona CommentBookAssignmentSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentBookAssignment() is false
ComplianceoptionalThis method must be implemented if supportsCommentBookAssignment() is true.
MethodgetCommentSmartBookSession
Description

Gets the session associated with the comment smart book for the given book.

Parametersosid.id.IdbookIdthe Id of the book
Returnosid.commenting.CommentSmartBookSessiona CommentSmartBookSession
ErrorsNOT_FOUND bookId not found
NULL_ARGUMENT bookId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentSmartBook() is false
ComplianceoptionalThis method must be implemented if supportsCommentSmartBook() is true.
MethodgetBookLookupSession
Description

Gets the OsidSession associated with the book lookup service.

Returnosid.commenting.BookLookupSessiona BookLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsBookLookup() is false
ComplianceoptionalThis method must be implemented if supportsBookLookup() is true.
MethodgetBookQuerySession
Description

Gets the OsidSession associated with the book query service.

Returnosid.commenting.BookQuerySessiona BookQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsBookQuery() is false
ComplianceoptionalThis method must be implemented if supportsBookQuery() is true.
MethodgetBookSearchSession
Description

Gets the OsidSession associated with the book search service.

Returnosid.commenting.BookSearchSessiona BookSearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsBookSearch() is false
ComplianceoptionalThis method must be implemented if supportsBookSearch() is true.
MethodgetBookAdminSession
Description

Gets the OsidSession associated with the book administrative service.

Returnosid.commenting.BookAdminSessiona BookAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsBookAdmin() is false
ComplianceoptionalThis method must be implemented if supportsBookAdmin() is true.
MethodgetBookNotificationSession
Description

Gets the OsidSession associated with the book notification service.

Parametersosid.commenting.BookReceiverbookReceiverthe receiver
Returnosid.commenting.BookNotificationSessiona BookNotificationSession
ErrorsNULL_ARGUMENT bookReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsBookNotification() is false
ComplianceoptionalThis method must be implemented if supportsBookNotification() is true.
MethodgetBookHierarchySession
Description

Gets the OsidSession associated with the book hierarchy service.

Returnosid.commenting.BookHierarchySessiona BookHierarchySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsBookHierarchy() is false
ComplianceoptionalThis method must be implemented if supportsBookHierarchy() is true.
MethodgetBookHierarchyDesignSession
Description

Gets the OsidSession associated with the book hierarchy design service.

Returnosid.commenting.BookHierarchyDesignSessiona BookHierarchyDesignSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsBookHierarchyDesign() is false
ComplianceoptionalThis method must be implemented if supportsBookHierarchyDesign() is true.
MethodgetCommentingBatchManager
Description

Gets a CommentingBatchManager.

Returnosid.commenting.batch.CommentingBatchManagera CommentingBatchManager
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsCommentingBatch() is false
ComplianceoptionalThis method must be implemented if supportsCommentingBatch() is true.