Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • token: a valid DMS token for the user username as can be taken from the Patricia db table PAT_DMS_TOKEN

Example: "01975403-ead4-42ba-8c48-da737beefe3d"

Note: DMS  DMS tokens expire and are regenerated automatically by the DMS at least every 2 weeks for each user session.

Example: "01975403-ead4-42ba-8c48-da737beefe3d"

You must use currently valid token.

  • pathInPatriciaWorkspace: the path to the document that you which to open. This pat can be taken from the PAT_DOC_LOG table with left trimming of the path to remove "n:\\Patricia".

Example: "Documents/2/13483/EP/00/20170727154551-20151222220725-SIGN_ME.doc"

Note: If your filename contains spaces (blanks) you will need to put it in double quotes.

 

An example call is as follows:

Code Block
languagebash
java -jar di_url_generator.jar localhost:8080 Administrator 01975403-ead4-42ba-8c48-da737beefe3d Documents/2/13483/EP/00/20170727154551-20151222220725-SIGN_ME.doc

which will return:

Code Block
languagebash
pinuxeo://localhost:8080/41646d696e6973747261746f723a30313937353430332d656164342d343262612d386334382d646137333762656566653364//6e3a5c5061747269636961446f63756d656e74735c325c31333438335c45505c30305c32303137303732373135343535312d32303135313232323232303732352d5349474e5f4d452e646f63

You can paste this URL in a browser (or send it to the server otherwise) to open your document.

 

The source code for the above java application is as follows:

...