public class CommentService extends DefaultAdapter
Accepts the following methods:
| Constructor and Description |
|---|
CommentService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
approve() |
protected void |
approveComent(CoreSession session,
DocumentModel target,
DocumentModel comment)
Can be overwritten to allow workflow.
|
protected DocumentModel |
createCommentDocument(CoreSession session,
DocumentModel target,
DocumentModel comment)
Can be overwritten to allow creation of localized comment.
|
javax.ws.rs.core.Response |
deleteComment() |
protected void |
deleteComment(DocumentModel target,
DocumentModel comment)
Can be overwritten to allow workflow.
|
javax.ws.rs.core.Response |
doPost(String cText) |
static CommentManager |
getCommentManager() |
static CommentsModerationService |
getCommentsModerationService() |
protected void |
publishComment(CoreSession session,
DocumentModel target,
DocumentModel comment)
Can be overwritten to allow workflow.
|
javax.ws.rs.core.Response |
reject() |
protected void |
rejectComment(CoreSession session,
DocumentModel target,
DocumentModel comment)
Can be overwritten to allow workflow.
|
javax.ws.rs.core.Response |
remove() |
disptachAdapter, getTarget, isAdaptercheckGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRootgetAdapterpublic javax.ws.rs.core.Response doPost(String cText)
public javax.ws.rs.core.Response reject()
public javax.ws.rs.core.Response approve()
public javax.ws.rs.core.Response remove()
public static CommentManager getCommentManager() throws Exception
Exceptionpublic static CommentsModerationService getCommentsModerationService() throws Exception
Exceptionprotected DocumentModel createCommentDocument(CoreSession session, DocumentModel target, DocumentModel comment) throws Exception
session - the core sessiontarget - commented documentcomment - comment itselfExceptionprotected void publishComment(CoreSession session, DocumentModel target, DocumentModel comment) throws Exception
session - the core sessiontarget - commented documentcomment - comment itselfExceptionprotected void deleteComment(DocumentModel target, DocumentModel comment) throws Exception
target - commented documentcomment - comment itselfExceptionprotected void rejectComment(CoreSession session, DocumentModel target, DocumentModel comment) throws Exception
target - commented documentcomment - comment itselfExceptionprotected void approveComent(CoreSession session, DocumentModel target, DocumentModel comment) throws Exception
target - commented documentcomment - comment itselfExceptionCopyright © 2019 Nuxeo SA. All rights reserved.