Package com.saperion.ngc.servlet
Class MailUrl
java.lang.Object
com.saperion.ngc.servlet.MailUrl
- Author:
- rbo
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringconstructDocumentMailUrl(String revisionId, boolean currentRevision, int element, String filename, boolean download, jakarta.servlet.http.HttpServletRequest request) Constructs the url to retrieve the document with the specified document id.static StringconstructFileMailUrl(String folderid, String ddc, jakarta.servlet.http.HttpServletRequest request) Constructs the url to retrieve the file with the specified file id.static StringconstructLinkMailUrl(String appName, String revisionId, String ddcName, String tenant, jakarta.servlet.http.HttpServletRequest request, int timeout) Constructs the url to retrieve the document with the specified document id.static StringconstructListMailUrl(String revisionIds, String filename, jakarta.servlet.http.HttpServletRequest request) Constructs the url to retrieve the document with the specified document id.static StringconstructPdfMailUrl(String objectId, String revisionId, boolean currentRevision, String ddcName, String filename, boolean download, jakarta.servlet.http.HttpServletRequest request) Constructs the url to retrieve the document with the specified document id rendered as PDF.
- 
Field Details- 
WEBLINK_URL- See Also:
 
 
- 
- 
Method Details- 
constructDocumentMailUrlpublic static String constructDocumentMailUrl(String revisionId, boolean currentRevision, int element, String filename, boolean download, jakarta.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException Constructs the url to retrieve the document with the specified document id.- Parameters:
- revisionId- the id of the document to retrieve
- currentRevision- currentRevision
- element- document element
- filename- filename of the element
- download- set to true to force the browser to open a download box
- request- request
- Returns:
- url as string
- Throws:
- UnsupportedEncodingException- unsupported encoding
 
- 
constructPdfMailUrlpublic static String constructPdfMailUrl(String objectId, String revisionId, boolean currentRevision, String ddcName, String filename, boolean download, jakarta.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException Constructs the url to retrieve the document with the specified document id rendered as PDF.- Parameters:
- objectId- id of the document to retrieve
- revisionId- id of the revision to retrieve
- currentRevision- currentRevision
- ddcName- name of the ddc
- filename- filename
- download- set to true to force the browser to open a download box
- request- request
- Returns:
- url as string
- Throws:
- UnsupportedEncodingException- unsupported encoding
 
- 
constructListMailUrlpublic static String constructListMailUrl(String revisionIds, String filename, jakarta.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException Constructs the url to retrieve the document with the specified document id.- Parameters:
- revisionIds- the id's of the document to retrieve (semicolon separated)
- filename- filename of the element
- request- request
- Returns:
- url as string
- Throws:
- UnsupportedEncodingException- unsupported encoding
 
- 
constructFileMailUrlpublic static String constructFileMailUrl(String folderid, String ddc, jakarta.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException Constructs the url to retrieve the file with the specified file id.- Parameters:
- folderid- the id's of the file to retrieve
- ddc- ddc of the folder
- request- request
- Returns:
- url as string
- Throws:
- UnsupportedEncodingException- unsupported encoding
 
- 
constructLinkMailUrlpublic static String constructLinkMailUrl(String appName, String revisionId, String ddcName, String tenant, jakarta.servlet.http.HttpServletRequest request, int timeout) throws UnsupportedEncodingException Constructs the url to retrieve the document with the specified document id.- Parameters:
- appName- Application name
- revisionId- the id of the document to retrieve
- ddcName- DDC name of the element
- tenant- Tenant
- request- request
- timeout- URL Timeout in days
- Returns:
- url as string
- Throws:
- UnsupportedEncodingException- unsupported encoding
 
 
-