public class CommentAdapter extends DefaultMobileAdapter
ONLY_VISIBLE_CHILDREN| Constructor and Description |
|---|
CommentAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
doDeleteComment(String commentId) |
Object |
doGet() |
Object |
doGetReplyForm(String commentIdParent) |
Object |
doPost(String newTextComment) |
Object |
doPostReplyForm(String newTextComment,
String commentIdParent) |
List<DocumentModel> |
getComments() |
List<DocumentModel> |
getComments(DocumentModel commentParent) |
boolean |
hasAddingCommentRight() |
boolean |
hasWriteRightOnComment(DocumentModel comment) |
protected DocumentModel |
initializeEmptyComment() |
getChildren, getDocumentModel, getMobileDocumentdisptachAdapter, 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 CommentAdapter()
public Object doPost(String newTextComment) throws PropertyException
PropertyExceptionpublic Object doPostReplyForm(String newTextComment, String commentIdParent) throws PropertyException
PropertyExceptionpublic Object doGetReplyForm(String commentIdParent) throws PropertyException
PropertyExceptionpublic Object doDeleteComment(String commentId) throws PropertyException
PropertyExceptionpublic List<DocumentModel> getComments()
public List<DocumentModel> getComments(DocumentModel commentParent)
public boolean hasWriteRightOnComment(DocumentModel comment)
public boolean hasAddingCommentRight()
protected DocumentModel initializeEmptyComment()
Copyright © 2015 Nuxeo SA. All rights reserved.