You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

The DMS provides options to access, i.e. read/write/create documents in your DMS directly. Most operations work through the API that the Nuxeo backend provides.

Please note that the below information is given as is with no liability taken by PI or Patrix. Do not proceed to use the below information against your repository unless you are well aware of what you do. 

Accessing an existing document to open for editing/saving back to system

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.

Please check the information given here to access a document for editing.

Downloading an existing document from the DMS

 

Deleting a document from the DMS

Please note that the term "deleting" in this context is misleading as the DMS does not delete any documents (unless the administrator follows a specific set of steps). All documents are kept in the DMS, however, when the user deletes a document, the document is merely marked deleted and thus removed from view and put in the trash. To terminally delete the document, the trash must be emptied.

The endpoint to mark an existing document as "deleted" is:

http://<nuxeoserverip>:<nuxeoport>/nuxeo/api/v1/automation/Document.SetLifeCycle

This must be called as http-POST with body information as follows:

{"params":{"value":"delete"},"input":"/default-domain/workspaces/Patricia/<pathToDocument>","context":{}}

In the above, <nuxeoserverip>, <nuxeoport>, and <pathToDocument> must be replaced by the appropriate values.

  • No labels