org.xwiki.rest.internal.resources.comments
Class CommentsResourceImpl

java.lang.Object
  extended by org.xwiki.rest.XWikiResource
      extended by org.xwiki.rest.internal.resources.comments.CommentsResourceImpl
All Implemented Interfaces:
Initializable, CommentsResource, XWikiRestComponent

@Component(value="org.xwiki.rest.internal.resources.comments.CommentsResourceImpl")
public class CommentsResourceImpl
extends XWikiResource
implements CommentsResource


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xwiki.rest.XWikiResource
XWikiResource.DocumentInfo
 
Field Summary
 
Fields inherited from class org.xwiki.rest.XWikiResource
componentManager, logger, objectFactory, queryManager, uriInfo
 
Constructor Summary
CommentsResourceImpl()
           
 
Method Summary
 Comments getComments(String wikiName, String spaceName, String pageName, Integer start, Integer number, Boolean withPrettyNames)
           
 Response postComment(String wikiName, String spaceName, String pageName, Comment comment)
           
 
Methods inherited from class org.xwiki.rest.XWikiResource
getDocumentInfo, getUriTemplate, getXWikiContext, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentsResourceImpl

public CommentsResourceImpl()
Method Detail

getComments

public Comments getComments(String wikiName,
                            String spaceName,
                            String pageName,
                            Integer start,
                            Integer number,
                            Boolean withPrettyNames)
                     throws XWikiRestException
Specified by:
getComments in interface CommentsResource
Throws:
XWikiRestException

postComment

public Response postComment(String wikiName,
                            String spaceName,
                            String pageName,
                            Comment comment)
                     throws XWikiRestException
Specified by:
postComment in interface CommentsResource
Throws:
XWikiRestException