Interface EnterpriseDocumentService
-
- All Known Implementing Classes:
RestEnterpriseDocumentService
@Consumes("application/json") @Produces("application/json") public interface EnterpriseDocumentServiceEnterprise Document Web Service definition interface- Since:
- 8.7.4
- Author:
- Alessandro Gasparini - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckin(Long docId, String comment, String filename, String release, com.logicaldoc.webservice.model.WSDocument docVO)Checks in an existing document with the given identifier to create a new version, it uses the uploaded chunkscom.logicaldoc.webservice.model.WSDocumentcreate(com.logicaldoc.webservice.model.WSDocument document)Creates a new document using the uploaded chunks.voiddeleteChunks()Deletes all the chunks in the current upload sessionjavax.activation.DataHandlerdownloadChunk(long docId, String version, long start, long length)voiduploadChunk(byte[] messageBody)voiduploadChunkSB(InputStream is)
-
-
-
Method Detail
-
uploadChunk
@POST @Path("/uploadChunk") @Consumes("application/octet-stream") void uploadChunk(byte[] messageBody) throws Exception- Throws:
Exception
-
uploadChunkSB
@POST @Path("/uploadChunkSB") @Consumes("application/octet-stream") void uploadChunkSB(InputStream is) throws Exception- Throws:
Exception
-
deleteChunks
@DELETE @Path("/deleteChunks") void deleteChunks() throws ExceptionDeletes all the chunks in the current upload session- Throws:
Exception- a generic error
-
create
@POST @Path("/create") com.logicaldoc.webservice.model.WSDocument create(com.logicaldoc.webservice.model.WSDocument document) throws ExceptionCreates a new document using the uploaded chunks. The user can completely customize the document through a value object containing the document's metadata- 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") javax.activation.DataHandler downloadChunk(@QueryParam("docId") long docId, @QueryParam("version") String version, @QueryParam("start") long start, @QueryParam("length") long length) throws Exception- Throws:
Exception
-
checkin
@POST @Path("/checkin") @Consumes("multipart/form-data") void checkin(Long docId, String comment, String filename, String release, com.logicaldoc.webservice.model.WSDocument docVO) throws ExceptionChecks in an existing document with the given identifier to create a new version, it uses the uploaded chunks- Parameters:
sid- Session identifierdocId- The document idcomment- The check in operation commentfilename- The document file namerelease- 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
-
-