Package com.saperion.ngc.sapviewer
Class SAPViewerMailUrl
java.lang.Object
com.saperion.ngc.sapviewer.SAPViewerMailUrl
Class used to generate URLs needed to send documents by mail.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAppletMailingURL(jakarta.servlet.http.HttpServletRequest request, DocumentId docId, List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> elements, String text, String subject) Creates a mailing URL.static StringgetAppletUrlMailingURL(jakarta.servlet.http.HttpServletRequest request, DocumentId docId, String mailText, String subject) Creates a url mailing URL.static StringgetMailToLink(jakarta.servlet.http.HttpServletRequest request, DocumentId docId) Creates SapWebViewer Mailto link.
-
Method Details
-
getAppletMailingURL
public static String getAppletMailingURL(jakarta.servlet.http.HttpServletRequest request, DocumentId docId, List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> elements, String text, String subject) throws UnsupportedEncodingException Creates a mailing URL.- Parameters:
request- the current requestdocId- the ID of the document to mailelements- the structure of the documenttext- the Mail textsubject- the subject of the mail- Returns:
- Mailing URL
- Throws:
UnsupportedEncodingException- encoding error when creating URL
-
getAppletUrlMailingURL
public static String getAppletUrlMailingURL(jakarta.servlet.http.HttpServletRequest request, DocumentId docId, String mailText, String subject) throws UnsupportedEncodingException Creates a url mailing URL.- Parameters:
request- the current requestdocId- the ID of the document to mailmailText- Mail text (default: Mail URL to send: )subject- the subject of the mail- Returns:
- Mailing URL
- Throws:
UnsupportedEncodingException
-
getMailToLink
public static String getMailToLink(jakarta.servlet.http.HttpServletRequest request, DocumentId docId) throws UnsupportedEncodingException Creates SapWebViewer Mailto link.- Parameters:
request- the current requestdocId- the ID of the document to mail- Returns:
- SapWebViewer WebView Url for mailto link
- Throws:
UnsupportedEncodingException
-