Class RestEnterpriseDocumentService

    • Constructor Detail

      • RestEnterpriseDocumentService

        public RestEnterpriseDocumentService()
    • Method Detail

      • create

        @POST
        @Path("/create")
        public com.logicaldoc.webservice.model.WSDocument create​(com.logicaldoc.webservice.model.WSDocument document)
                                                          throws Exception
        Description copied from interface: EnterpriseDocumentService
        Creates a new document using the uploaded chunks. The user can completely customize the document through a value object containing the document's metadata
        Specified by:
        create in interface EnterpriseDocumentService
        Parameters:
        document - Web service value object containing the document's metadata
        Returns:
        The value object containing the document's metadata
        Throws:
        Exception - error in the server or in the database
      • downloadChunk

        @GET
        @Path("/downloadChunk")
        @Produces("application/octet-stream")
        public javax.activation.DataHandler downloadChunk​(@QueryParam("docId")
                                                          long docId,
                                                          @QueryParam("version")
                                                          String version,
                                                          @QueryParam("start")
                                                          long start,
                                                          @QueryParam("length")
                                                          long length)
                                                   throws Exception
        Specified by:
        downloadChunk in interface EnterpriseDocumentService
        Throws:
        Exception
      • checkin

        @Path("/checkin")
        @Consumes("multipart/form-data")
        public void checkin​(Long docId,
                            String comment,
                            String filename,
                            String releaseStr,
                            com.logicaldoc.webservice.model.WSDocument docVO)
                     throws Exception
        Description copied from interface: EnterpriseDocumentService
        Checks in an existing document with the given identifier to create a new version, it uses the uploaded chunks
        Specified by:
        checkin in interface EnterpriseDocumentService
        Parameters:
        docId - The document id
        comment - The check in operation comment
        filename - The document file name
        releaseStr - True if this is a new release(e.g.: 2.0) rather than a subversion(e.g.: 1.1)
        docVO - new metadata for the document
        Throws:
        Exception - error in the server or in the database