com.atlassian.confluence.ui.rest.content
Class ContentResource

java.lang.Object
  extended by com.atlassian.confluence.ui.rest.content.ContentResource

public class ContentResource
extends Object


Constructor Summary
ContentResource(ContentService contentService)
           
 
Method Summary
 javax.ws.rs.core.Response addLabels(Long contentId, List<Label> labels)
           
 javax.ws.rs.core.Response deleteLabel(Long contentId, Long labelId)
           
 javax.ws.rs.core.Response getBody(Long contentId, String representation)
           
 javax.ws.rs.core.Response getContent(Long contentId, String expand)
           
 javax.ws.rs.core.Response getLabels(Long contentId, List<String> prefixes)
           
 javax.ws.rs.core.Response getNextContent(Long contentId, String expand)
           
 javax.ws.rs.core.Response getPreviousContent(Long contentId, String expand)
           
 javax.ws.rs.core.Response getSubContent(Long contentId, String subContentType, boolean threaded, int start, int max, String expand)
           
 javax.ws.rs.core.Response updateBody(Long contentId, String representation, ContentBody body)
           
 javax.ws.rs.core.Response validateLabels(List<Label> labels)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentResource

public ContentResource(ContentService contentService)
Method Detail

getContent

public javax.ws.rs.core.Response getContent(Long contentId,
                                            String expand)

getPreviousContent

public javax.ws.rs.core.Response getPreviousContent(Long contentId,
                                                    String expand)

getNextContent

public javax.ws.rs.core.Response getNextContent(Long contentId,
                                                String expand)

getSubContent

public javax.ws.rs.core.Response getSubContent(Long contentId,
                                               String subContentType,
                                               boolean threaded,
                                               int start,
                                               int max,
                                               String expand)

getBody

public javax.ws.rs.core.Response getBody(Long contentId,
                                         String representation)

updateBody

public javax.ws.rs.core.Response updateBody(Long contentId,
                                            String representation,
                                            ContentBody body)

getLabels

public javax.ws.rs.core.Response getLabels(Long contentId,
                                           List<String> prefixes)

addLabels

public javax.ws.rs.core.Response addLabels(Long contentId,
                                           List<Label> labels)

deleteLabel

public javax.ws.rs.core.Response deleteLabel(Long contentId,
                                             Long labelId)

validateLabels

public javax.ws.rs.core.Response validateLabels(List<Label> labels)


Copyright © 2003–2015 Atlassian. All rights reserved.