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, getMobileDocument
disptachAdapter, getTarget, isAdapter
checkGuard, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkGuard, 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, setRoot
getAdapter
public CommentAdapter()
public Object doPost(String newTextComment) throws PropertyException
PropertyException
public Object doPostReplyForm(String newTextComment, String commentIdParent) throws PropertyException
PropertyException
public Object doGetReplyForm(String commentIdParent) throws PropertyException
PropertyException
public Object doDeleteComment(String commentId) throws PropertyException
PropertyException
public 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.