public class CommentAdapter extends DefaultAdapter
Constructor and Description |
---|
CommentAdapter() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createComment(Comment comment) |
javax.ws.rs.core.Response |
deleteComment(String commentId) |
javax.ws.rs.core.Response |
deleteExternalComment(String entityId) |
Comment |
getComment(String commentId) |
PartialList<Comment> |
getComments(Long pageSize,
Long currentPageIndex) |
Comment |
getExternalComment(String entityId) |
javax.ws.rs.core.Response |
updateComment(String commentId,
Comment comment) |
Comment |
updateExternalComment(String entityId,
Comment comment) |
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 static final String NAME
public CommentAdapter()
public javax.ws.rs.core.Response createComment(Comment comment)
public PartialList<Comment> getComments(Long pageSize, Long currentPageIndex)
public Comment getComment(String commentId)
public Comment getExternalComment(String entityId)
public javax.ws.rs.core.Response updateComment(String commentId, Comment comment)
public Comment updateExternalComment(String entityId, Comment comment)
public javax.ws.rs.core.Response deleteComment(String commentId)
public javax.ws.rs.core.Response deleteExternalComment(String entityId)
Copyright © 2019 Nuxeo. All rights reserved.