Class DocumentResource


  • @Path("server/documents")
    public class DocumentResource
    extends Object
    • Field Detail

      • logger

        public static final org.slf4j.Logger logger
    • Constructor Detail

      • DocumentResource

        public DocumentResource()
      • DocumentResource

        public DocumentResource​(org.kie.server.services.jbpm.DocumentServiceBase documentServiceBase,
                                org.kie.server.services.api.KieServerRegistry context)
    • 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)