...
There is an option to post a URL to the DMS server which will invoke DocIntegrate to download the document and open it using the default document handler for that type. Once saved/closed, the document will be uploaded back to the DMS server with a new version for the document being created (this is the standard CaseBrowser behaviour).
Note: The behaviour of DocIntegrate is influenced by the <editableFileTypes> key in the settings.xml file in /Workspace/Settings/ of your repository.
...
Downloading an existing document from the DMS
To download a document from the DMS, you can use the following endpoint:
Code Block |
---|
http://<nuxeoserverip>:<nuxeoport>/casebrowser/download/<documentUID>/true |
To get the documentUID from the document's path, you can curl the DMS:
Code Block |
---|
curl -X POST \
http://<nuxeoserverip>:<nuxeoport>/nuxeo/api/v1/automation/Document.Fetch \
-H 'authorization: Basic <userAndPassEncoded>' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: 76b528b4-86b9-8a39-74a9-82f1e583eede' \
-d '{"params":{"value":"/default-domain/workspaces/Patricia/<documentPath>/<documentName>"},"context":{}}' |
Deleting a document from the DMS
...
The endpoint to mark an existing document as "deleted" is:
Code Block | language | xml
---|
http://<nuxeoserverip>:<nuxeoport>/nuxeo/api/v1/automation/Document.SetLifeCycle |
This must be called as http-POST with body information as follows:
Code Block | language | xml
---|
{"params":{"value":"delete"},"input":"/default-domain/workspaces/Patricia/<pathToDocument>","context":{}} |
In the above , <nuxeoserverip>, <nuxeoport>, and <pathToDocument> <pathToDocument> must be replaced by the appropriate valuespath you can compute from the Pat_Doc_Log table in Patricia.