Class LegacyContentResource
java.lang.Object
com.atlassian.confluence.ui.rest.content.LegacyContentResource
@Deprecated
@Path("/content")
@Consumes("application/json")
@Produces("application/json")
public class LegacyContentResource
extends Object
Deprecated.
since 5.10. Use the official REST API that lives in confluence-rest-resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
Deprecated.javax.ws.rs.core.Response
deleteLabel
(Long contentId, Long labelId) Deprecated.javax.ws.rs.core.Response
Deprecated.javax.ws.rs.core.Response
getContent
(Long contentId, String expand) Deprecated.javax.ws.rs.core.Response
Deprecated.javax.ws.rs.core.Response
getNextContent
(Long contentId, String expand) Deprecated.javax.ws.rs.core.Response
getPreviousContent
(Long contentId, String expand) Deprecated.javax.ws.rs.core.Response
getSubContent
(Long contentId, String subContentType, boolean threaded, int start, int max, String expand) Deprecated.javax.ws.rs.core.Response
updateBody
(Long contentId, String representation, ContentBody body) Deprecated.javax.ws.rs.core.Response
validateLabels
(List<Label> labels) Deprecated.
-
Constructor Details
-
LegacyContentResource
Deprecated.
-
-
Method Details
-
getContent
@GET @Path("/{id}") public javax.ws.rs.core.Response getContent(@PathParam("id") Long contentId, @QueryParam("expand") @DefaultValue("") String expand) Deprecated. -
getPreviousContent
@GET @Path("/{id}/versions/previous") public javax.ws.rs.core.Response getPreviousContent(@PathParam("id") Long contentId, @QueryParam("expand") @DefaultValue("") String expand) Deprecated. -
getNextContent
@GET @Path("/{id}/versions/next") public javax.ws.rs.core.Response getNextContent(@PathParam("id") Long contentId, @QueryParam("expand") @DefaultValue("") String expand) Deprecated. -
getSubContent
@GET @Path("/{id}/subcontent/{type}") public javax.ws.rs.core.Response getSubContent(@PathParam("id") Long contentId, @PathParam("type") String subContentType, @QueryParam("thread") @DefaultValue("false") boolean threaded, @QueryParam("start") @DefaultValue("0") int start, @QueryParam("max") @DefaultValue("50") int max, @QueryParam("expand") @DefaultValue("") String expand) Deprecated. -
getBody
@GET @Path("/{id}/body/{representation}") public javax.ws.rs.core.Response getBody(@PathParam("id") Long contentId, @PathParam("representation") String representation) Deprecated. -
updateBody
@PUT @Path("/{id}/body/{representation}") public javax.ws.rs.core.Response updateBody(@PathParam("id") Long contentId, @PathParam("representation") String representation, ContentBody body) Deprecated. -
getLabels
@GET @Path("/{id}/labels") public javax.ws.rs.core.Response getLabels(@PathParam("id") Long contentId, @QueryParam("prefix") List<String> prefixes) Deprecated. -
addLabels
@POST @Path("/{id}/labels") public javax.ws.rs.core.Response addLabels(@PathParam("id") Long contentId, List<Label> labels) Deprecated. -
deleteLabel
@DELETE @Path("/{id}/label/{labelId}") public javax.ws.rs.core.Response deleteLabel(@PathParam("id") Long contentId, @PathParam("labelId") Long labelId) Deprecated. -
validateLabels
Deprecated.
-