Interface CommentingProxyManager
- All Superinterfaces:
AutoCloseable, Closeable, CommentingProfile, OsidProfile, OsidProxyManager, OsidProxyManager, Sourceable
The commenting manager provides access to commenting sessions and
provides interoperability tests for various aspects of this service.
Methods in this manager accept a Proxy for passing information
from a server environment. 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.
-
Method Summary
Modifier and TypeMethodDescriptiongetBookAdminSession(Proxy proxy) Gets theOsidSessionassociated with the book administrative service.Gets theOsidSessionassociated with the book hierarchy design service.getBookHierarchySession(Proxy proxy) Gets theOsidSessionassociated with the book hierarchy service.getBookLookupSession(Proxy proxy) Gets theOsidSessionassociated with the book lookup service.getBookNotificationSession(BookReceiver bookReceiver, Proxy proxy) Gets theOsidSessionassociated with the book notification service.getBookQuerySession(Proxy proxy) Gets theOsidSessionassociated with the book query service.getBookSearchSession(Proxy proxy) Gets theOsidSessionassociated with the book search service.getCommentAdminSession(Proxy proxy) Gets theOsidSessionassociated with the comment administration service.getCommentAdminSessionForBook(Id bookId, Proxy proxy) Gets theOsidSessionassociated with the comment administration service for the given book.Gets the session for assigning comment to book mappings.getCommentBookSession(Proxy proxy) Gets the session for retrieving comment to book mappings.Gets aCommentingBatchProxyManager.getCommentLookupSession(Proxy proxy) Gets theOsidSessionassociated with the comment lookup service.getCommentLookupSessionForBook(Id bookId, Proxy proxy) Gets theOsidSessionassociated with the comment lookup service for the given book.getCommentNotificationSession(CommentReceiver commentReceiver, Proxy proxy) Gets theOsidSessionassociated with the comment notification service.getCommentNotificationSessionForBook(CommentReceiver commentReceiver, Id bookId, Proxy proxy) Gets theOsidSessionassociated with the comment notification service for the given book.getCommentQuerySession(Proxy proxy) Gets theOsidSessionassociated with the comment query service.getCommentQuerySessionForBook(Id bookId, Proxy proxy) Gets theOsidSessionassociated with the comment query service for the given book.getCommentSearchSession(Proxy proxy) Gets theOsidSessionassociated with the comment search service.getCommentSearchSessionForBook(Id bookId, Proxy proxy) Gets theOsidSessionassociated with the comment search service for the given book.getCommentSmartBookSession(Id bookId, Proxy proxy) Gets the session for managing dynamic comment books for the given book.getRatingLookupSession(Proxy proxy) Gets theOsidSessionassociated with the rating lookup service.getRatingLookupSessionForBook(Id bookId, Proxy proxy) Gets theOsidSessionassociated with the rating lookup service for the given book.Methods inherited from interface CommentingProfile
getBookRecordTypes, getBookSearchRecordTypes, getCommentRecordTypes, getCommentSearchRecordTypes, supportsBookAdmin, supportsBookHierarchy, supportsBookHierarchyDesign, supportsBookLookup, supportsBookNotification, supportsBookQuery, supportsBookRecordType, supportsBookSearch, supportsBookSearchRecordType, supportsCommentAdmin, supportsCommentBook, supportsCommentBookAssignment, supportsCommentingBatch, supportsCommentLookup, supportsCommentNotification, supportsCommentQuery, supportsCommentRecordType, supportsCommentSearch, supportsCommentSearchRecordType, supportsCommentSmartBook, supportsRatingLookup, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supportedBookrecord types.Gets the supported book search record types.Gets the supportedCommentrecord types.Gets the supported comment search record types.booleanTests for the availability of a book administrative service for creating and deleting books.booleanTests for the availability of a book hierarchy traversal service.booleanTests for the availability of a book hierarchy design service.booleanTests for the availability of a book lookup service.booleanTests for the availability of a book notification service.booleanTests if querying books is available.booleansupportsBookRecordType(Type bookRecordType) Tests if the givenBookrecord type is supported.booleanTests if searching for books is available.booleansupportsBookSearchRecordType(Type bookSearchRecordType) Tests if the given book search record type is supported.booleanTests if managing comments is available.booleanTests if a comment to book lookup session is available.booleanTests if a comment to book assignment session is available.booleanTests for the availability of a commenting batch service.booleanTests for the availability of a comment lookup service.booleanTests if comment notification is available.booleanTests if querying comments is available.booleansupportsCommentRecordType(Type commentRecordType) Tests if the givenCommentrecord type is supported.booleanTests if searching for comments is available.booleansupportsCommentSearchRecordType(Type commentSearchRecordType) Tests if the given comment search record type is supported.booleanTests if a comment smart booking session is available.booleanTests for the availability of a rating lookup service.booleanTests if any book federation is exposed.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface OsidProxyManager
closeMethods inherited from interface OsidProxyManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId, Proxy proxy) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime, Proxy proxy) Rolls back this service to a point in time.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getCommentLookupSession
Gets theOsidSessionassociated with the comment lookup service.- Parameters:
proxy- a proxy- Returns:
- a
CommentLookupSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentLookup()} is {@code true} .
-
getCommentLookupSessionForBook
CommentLookupSession getCommentLookupSessionForBook(Id bookId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the comment lookup service for the given book.- Parameters:
bookId- theIdof theBookproxy- a proxy- Returns:
- a
CommentLookupSession - Throws:
NotFoundException- noBookfound by the givenIdNullArgumentException-bookIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentLookup()} and {@code supportsVisibleFederation()} are {@code true}
-
getRatingLookupSession
Gets theOsidSessionassociated with the rating lookup service.- Parameters:
proxy- a proxy- Returns:
- a
RatingLookupSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRatingLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRatingLookup()} is {@code true} .
-
getRatingLookupSessionForBook
RatingLookupSession getRatingLookupSessionForBook(Id bookId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rating lookup service for the given book.- Parameters:
bookId- theIdof theBookproxy- a proxy- Returns:
- a
RatingLookupSession - Throws:
NotFoundException- noBookfound by the givenIdNullArgumentException-bookIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRatingLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRatingLookup()} and {@code supportsVisibleFederation()} are {@code true}
-
getCommentQuerySession
Gets theOsidSessionassociated with the comment query service.- Parameters:
proxy- a proxy- Returns:
- a
CommentQuerySession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentQuery()} is {@code true} .
-
getCommentQuerySessionForBook
CommentQuerySession getCommentQuerySessionForBook(Id bookId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the comment query service for the given book.- Parameters:
bookId- theIdof theBookproxy- a proxy- Returns:
- a
CommentQuerySession - Throws:
NotFoundException- noCommentfound by the givenIdNullArgumentException-bookIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentQuery()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentQuery()} and {@code supportsVisibleFederation()} are {@code true}
-
getCommentSearchSession
Gets theOsidSessionassociated with the comment search service.- Parameters:
proxy- a proxy- Returns:
- a
CommentSearchSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentSearch()} is {@code true} .
-
getCommentSearchSessionForBook
CommentSearchSession getCommentSearchSessionForBook(Id bookId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the comment search service for the given book.- Parameters:
bookId- theIdof theBookproxy- a proxy- Returns:
- a
CommentSearchSession - Throws:
NotFoundException- noCommentfound by the givenIdNullArgumentException-bookIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentSearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentSearch()} and {@code supportsVisibleFederation()} are {@code true}
-
getCommentAdminSession
Gets theOsidSessionassociated with the comment administration service.- Parameters:
proxy- a proxy- Returns:
- a
CommentAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentAdmin()} is {@code true} .
-
getCommentAdminSessionForBook
CommentAdminSession getCommentAdminSessionForBook(Id bookId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the comment administration service for the given book.- Parameters:
bookId- theIdof theBookproxy- a proxy- Returns:
- a
CommentAdminSession - Throws:
NotFoundException- noCommentfound by the givenIdNullArgumentException-bookIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentAdmin()} and {@code supportsVisibleFederation()} are {@code true}
-
getCommentNotificationSession
CommentNotificationSession getCommentNotificationSession(CommentReceiver commentReceiver, Proxy proxy) throws OperationFailedException Gets theOsidSessionassociated with the comment notification service.- Parameters:
commentReceiver- the receiverproxy- a proxy- Returns:
- a
CommentNotificationSession - Throws:
NullArgumentException-commentReceiverorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentNotification()} is {@code true} .
-
getCommentNotificationSessionForBook
CommentNotificationSession getCommentNotificationSessionForBook(CommentReceiver commentReceiver, Id bookId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the comment notification service for the given book.- Parameters:
commentReceiver- the receiverbookId- theIdof theBookproxy- a proxy- Returns:
- a
CommentNotificationSession - Throws:
NotFoundException- noCommentfound by the givenIdNullArgumentException-commentReceiver, bookIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentNotification()} and {@code supportsVisibleFederation()} are {@code true}
-
getCommentBookSession
Gets the session for retrieving comment to book mappings.- Parameters:
proxy- a proxy- Returns:
- a
CommentBookSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentBook()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentBook()} is {@code true} .
-
getCommentBookAssignmentSession
CommentBookAssignmentSession getCommentBookAssignmentSession(Proxy proxy) throws OperationFailedException Gets the session for assigning comment to book mappings.- Parameters:
proxy- a proxy- Returns:
- a
CommentBookAssignmentSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentBookAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentBookAssignment()} is {@code true} .
-
getCommentSmartBookSession
CommentSmartBookSession getCommentSmartBookSession(Id bookId, Proxy proxy) throws NotFoundException, OperationFailedException Gets the session for managing dynamic comment books for the given book.- Parameters:
bookId- theIdof a bookproxy- a proxy- Returns:
bookIdnot found- Throws:
NotFoundException-bookIdorproxyisnullNullArgumentException-bookIdorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCommentSmartBook()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentSmartBook()} is {@code true} .
-
getBookLookupSession
Gets theOsidSessionassociated with the book lookup service.- Parameters:
proxy- a proxy- Returns:
- a
BookLookupSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBookLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBookLookup()} is {@code true} .
-
getBookQuerySession
Gets theOsidSessionassociated with the book query service.- Parameters:
proxy- a proxy- Returns:
- a
BookQuerySession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBookQueryh()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBookQuery()} is {@code true} .
-
getBookSearchSession
Gets theOsidSessionassociated with the book search service.- Parameters:
proxy- a proxy- Returns:
- a
BookSearchSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBookSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBookSearch()} is {@code true} .
-
getBookAdminSession
Gets theOsidSessionassociated with the book administrative service.- Parameters:
proxy- a proxy- Returns:
- a
BookAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBookAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBookAdmin()} is {@code true} .
-
getBookNotificationSession
BookNotificationSession getBookNotificationSession(BookReceiver bookReceiver, Proxy proxy) throws OperationFailedException Gets theOsidSessionassociated with the book notification service.- Parameters:
bookReceiver- the receiverproxy- a proxy- Returns:
- a
BookNotificationSession - Throws:
NullArgumentException-bookReceiverorproxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBookNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBookNotification()} is {@code true} .
-
getBookHierarchySession
Gets theOsidSessionassociated with the book hierarchy service.- Parameters:
proxy- a proxy- Returns:
- a
BookHierarchySession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBookHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBookHierarchy()} is {@code true} .
-
getBookHierarchyDesignSession
BookHierarchyDesignSession getBookHierarchyDesignSession(Proxy proxy) throws OperationFailedException Gets theOsidSessionassociated with the book hierarchy design service.- Parameters:
proxy- a proxy- Returns:
- a
BookHierarchyDesignSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsBookHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBookHierarchyDesign()} is {@code true} .
-
getCommentingBatchProxyManager
Gets aCommentingBatchProxyManager.- Returns:
- a
CommentingBatchProxyManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCommentingBatch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentingBatch()} is {@code true} .
-