OSID Logo
OSID Specifications
commenting package
Version 3.1.0
Interfaceosid.commenting.CommentingManager
Implementsosid.OsidManager
osid.commenting.CommentingProfile
Used Byosid.orchestration.OrchestrationManager
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.CommentLookupSession a CommentLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentLookup() is false
Complianceoptional This 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.IdbookId the Id of the Book
Returnosid.commenting.CommentLookupSession a CommentLookupSession
ErrorsNOT_FOUND no Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentLookup() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsCommentLookup() and supportsVisibleFederation() are true
MethodgetRatingLookupSession
Description

Gets the OsidSession associated with the rating lookup service.

Returnosid.commenting.RatingLookupSession a RatingLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRatingLookup() is false
Complianceoptional This 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.IdbookId the Id of the Book
Returnosid.commenting.RatingLookupSession a RatingLookupSession
ErrorsNOT_FOUND no Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRatingLookup() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsRatingLookup() and supportsVisibleFederation() are true
MethodgetCommentQuerySession
Description

Gets the OsidSession associated with the comment query service.

Returnosid.commenting.CommentQuerySession a CommentQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentQuery() is false
Complianceoptional This 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.IdbookId the Id of the Book
Returnosid.commenting.CommentQuerySession a CommentQuerySession
ErrorsNOT_FOUND no Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentQuery() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsCommentQuery() and supportsVisibleFederation() are true
MethodgetCommentSearchSession
Description

Gets the OsidSession associated with the comment search service.

Returnosid.commenting.CommentSearchSession a CommentSearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentSearch() is false
Complianceoptional This 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.IdbookId the Id of the Book
Returnosid.commenting.CommentSearchSession a CommentSearchSession
ErrorsNOT_FOUND no Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentSearch() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsCommentSearch() and supportsVisibleFederation() are true
MethodgetCommentAdminSession
Description

Gets the OsidSession associated with the comment administration service.

Returnosid.commenting.CommentAdminSession a CommentAdminSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentAdmin() is false
Complianceoptional This 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.IdbookId the Id of the Book
Returnosid.commenting.CommentAdminSession a CommentAdminSession
ErrorsNOT_FOUND no Book found by the given Id
NULL_ARGUMENT bookId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentAdmin() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsCommentAdmin() and supportsVisibleFederation() are true
MethodgetCommentNotificationSession
Description

Gets the OsidSession associated with the comment notification service.

Parametersosid.commenting.CommentReceivercommentReceiver the receiver
Returnosid.commenting.CommentNotificationSession a CommentNotificationSession
ErrorsNULL_ARGUMENT commentReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentNotification() is false
Complianceoptional This 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.CommentReceivercommentReceiver the receiver
osid.id.IdbookId the Id of the Book
Returnosid.commenting.CommentNotificationSession a CommentNotificationSession
ErrorsNOT_FOUND no Book found by the given Id
NULL_ARGUMENT commentReceiver or bookId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentNotification() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsCommentNotification() and supportsVisibleFederation() are true
MethodgetCommentBookSession
Description

Gets the session for retrieving comment to book mappings.

Returnosid.commenting.CommentBookSession a CommentBookSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentBook() is false
Complianceoptional This method must be implemented if supportsCommentBook() is true.
MethodgetCommentBookAssignmentSession
Description

Gets the session for assigning comment to book mappings.

Returnosid.commenting.CommentBookAssignmentSession a CommentBookAssignmentSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentBookAssignment() is false
Complianceoptional This 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.IdbookId the Id of the book
Returnosid.commenting.CommentSmartBookSession a CommentSmartBookSession
ErrorsNOT_FOUND bookId not found
NULL_ARGUMENT bookId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentSmartBook() is false
Complianceoptional This method must be implemented if supportsCommentSmartBook() is true.
MethodgetBookLookupSession
Description

Gets the OsidSession associated with the book lookup service.

Returnosid.commenting.BookLookupSession a BookLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsBookLookup() is false
Complianceoptional This method must be implemented if supportsBookLookup() is true.
MethodgetBookQuerySession
Description

Gets the OsidSession associated with the book query service.

Returnosid.commenting.BookQuerySession a BookQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsBookQuery() is false
Complianceoptional This method must be implemented if supportsBookQuery() is true.
MethodgetBookSearchSession
Description

Gets the OsidSession associated with the book search service.

Returnosid.commenting.BookSearchSession a BookSearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsBookSearch() is false
Complianceoptional This method must be implemented if supportsBookSearch() is true.
MethodgetBookAdminSession
Description

Gets the OsidSession associated with the book administrative service.

Returnosid.commenting.BookAdminSession a BookAdminSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsBookAdmin() is false
Complianceoptional This method must be implemented if supportsBookAdmin() is true.
MethodgetBookNotificationSession
Description

Gets the OsidSession associated with the book notification service.

Parametersosid.commenting.BookReceiverbookReceiver the receiver
Returnosid.commenting.BookNotificationSession a BookNotificationSession
ErrorsNULL_ARGUMENT bookReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsBookNotification() is false
Complianceoptional This method must be implemented if supportsBookNotification() is true.
MethodgetBookHierarchySession
Description

Gets the OsidSession associated with the book hierarchy service.

Returnosid.commenting.BookHierarchySession a BookHierarchySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsBookHierarchy() is false
Complianceoptional This method must be implemented if supportsBookHierarchy() is true.
MethodgetBookHierarchyDesignSession
Description

Gets the OsidSession associated with the book hierarchy design service.

Returnosid.commenting.BookHierarchyDesignSession a BookHierarchyDesignSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsBookHierarchyDesign() is false
Complianceoptional This method must be implemented if supportsBookHierarchyDesign() is true.
MethodgetCommentingBatchManager
Description

Gets a CommentingBatchManager.

Returnosid.commenting.batch.CommentingBatchManager a CommentingBatchManager
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsCommentingBatch() is false
Complianceoptional This method must be implemented if supportsCommentingBatch() is true.