public final class MailUrl extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
constructDocumentMailUrl(String revisionId,
boolean currentRevision,
int element,
String filename,
boolean download,
javax.servlet.http.HttpServletRequest request)
Constructs the url to retrieve the document with the specified document id.
|
static String |
constructFileMailUrl(String folderid,
String ddc,
javax.servlet.http.HttpServletRequest request)
Constructs the url to retrieve the file with the specified file id.
|
static String |
constructLinkMailUrl(String appName,
String revisionId,
String ddcName,
String tenant,
javax.servlet.http.HttpServletRequest request,
int timeout)
Constructs the url to retrieve the document with the specified document id.
|
static String |
constructListMailUrl(String revisionIds,
String filename,
javax.servlet.http.HttpServletRequest request)
Constructs the url to retrieve the document with the specified document id.
|
static String |
constructPdfMailUrl(String objectId,
String revisionId,
boolean currentRevision,
String ddcName,
String filename,
boolean download,
javax.servlet.http.HttpServletRequest request)
Constructs the url to retrieve the document with the specified document id rendered as PDF.
|
public static String constructDocumentMailUrl(String revisionId, boolean currentRevision, int element, String filename, boolean download, javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
revisionId - the id of the document to retrievecurrentRevision - currentRevisionelement - document elementfilename - filename of the elementdownload - set to true to force the browser to open a download boxrequest - requestUnsupportedEncodingException - unsupported encodingpublic static String constructPdfMailUrl(String objectId, String revisionId, boolean currentRevision, String ddcName, String filename, boolean download, javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
objectId - id of the document to retrieverevisionId - id of the revision to retrievecurrentRevision - currentRevisionddcName - name of the ddcfilename - filenamedownload - set to true to force the browser to open a download boxrequest - requestUnsupportedEncodingException - unsupported encodingpublic static String constructListMailUrl(String revisionIds, String filename, javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
revisionIds - the id's of the document to retrieve (semicolon separated)filename - filename of the elementrequest - requestUnsupportedEncodingException - unsupported encodingpublic static String constructFileMailUrl(String folderid, String ddc, javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
folderid - the id's of the file to retrieveddc - ddc of the folderrequest - requestUnsupportedEncodingException - unsupported encodingpublic static String constructLinkMailUrl(String appName, String revisionId, String ddcName, String tenant, javax.servlet.http.HttpServletRequest request, int timeout) throws UnsupportedEncodingException
appName - Application namerevisionId - the id of the document to retrieveddcName - DDC name of the elementtenant - Tenantrequest - requesttimeout - URL Timeout in daysUnsupportedEncodingException - unsupported encodingCopyright © 2016 SAPERION AG. All rights reserved.