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) |
getChildren
disptachAdapter, getTarget, isAdapter
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
equals, 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 Object doGet()
public Object doPost(String newTextComment) throws PropertyException, ClientException
PropertyException
ClientException
public Object doPostReplyForm(String newTextComment, String commentIdParent) throws PropertyException, ClientException
PropertyException
ClientException
public Object doGetReplyForm(String commentIdParent) throws PropertyException, ClientException
PropertyException
ClientException
public Object doDeleteComment(String commentId) throws PropertyException, ClientException
PropertyException
ClientException
public List<DocumentModel> getComments() throws ClientException
ClientException
public List<DocumentModel> getComments(DocumentModel commentParent) throws ClientException
ClientException
public boolean hasWriteRightOnComment(DocumentModel comment) throws ClientException
ClientException
public boolean hasAddingCommentRight() throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.