Package org.kie.server.remote.rest.jbpm
Class DocumentResource
- java.lang.Object
-
- org.kie.server.remote.rest.jbpm.DocumentResource
-
@Path("server/documents") public class DocumentResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description DocumentResource()DocumentResource(org.kie.server.services.jbpm.DocumentServiceBase documentServiceBase, org.kie.server.services.api.KieServerRegistry context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateDocument(javax.ws.rs.core.HttpHeaders headers, String payload)javax.ws.rs.core.ResponsedeleteDocument(javax.ws.rs.core.HttpHeaders headers, String documentId)javax.ws.rs.core.ResponsegetDocument(javax.ws.rs.core.HttpHeaders headers, String documentId)javax.ws.rs.core.ResponsegetDocumentContent(javax.ws.rs.core.HttpHeaders headers, String documentId)javax.ws.rs.core.ResponselistDocuments(javax.ws.rs.core.HttpHeaders headers, Integer page, Integer pageSize)javax.ws.rs.core.ResponseupdateDocument(javax.ws.rs.core.HttpHeaders headers, String documentId, String payload)
-
-
-
Method Detail
-
getDocumentContent
@GET @Path("{documentId}/content") @Produces("application/octet-stream") public javax.ws.rs.core.Response getDocumentContent(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("documentId") String documentId)
-
getDocument
@GET @Path("{documentId}") @Produces({"application/json","application/xml"}) public javax.ws.rs.core.Response getDocument(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("documentId") String documentId)
-
listDocuments
@GET @Produces({"application/json","application/xml"}) public javax.ws.rs.core.Response listDocuments(@Context javax.ws.rs.core.HttpHeaders headers, @QueryParam("page") @DefaultValue("0") Integer page, @QueryParam("pageSize") @DefaultValue("10") Integer pageSize)
-
createDocument
@POST @Produces({"application/json","application/xml"}) @Consumes({"application/json","application/xml"}) public javax.ws.rs.core.Response createDocument(@Context javax.ws.rs.core.HttpHeaders headers, String payload)
-
updateDocument
@PUT @Path("{documentId}") @Produces({"application/json","application/xml"}) @Consumes({"application/json","application/xml"}) public javax.ws.rs.core.Response updateDocument(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("documentId") String documentId, String payload)
-
deleteDocument
@DELETE @Path("{documentId}") @Produces({"application/json","application/xml"}) public javax.ws.rs.core.Response deleteDocument(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("documentId") String documentId)
-
-