public final class MailUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
createDocumentLink(ResultProperties item,
int element,
String filename,
String baseUrl)
Creates a weblink to given file of the given document.
|
static String |
createDocumentZipLink(ResultProperties item,
String filename,
String baseUrl)
Creates a weblink to all files of the given document as ZIP.
|
static List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> |
getElementInfos(DocumentId documentId)
Gets a list of information for the elements of the given document.
|
public static String createDocumentZipLink(ResultProperties item, String filename, String baseUrl) throws com.saperion.util.LinkCreationException
item - document for which the weblink should be createdfilename - name of the resulting ZIP filebaseUrl - URL to the REST webservicescom.saperion.util.LinkCreationException - if creation of link failespublic static String createDocumentLink(ResultProperties item, int element, String filename, String baseUrl) throws com.saperion.util.LinkCreationException
item - document for which the weblink should be createdelement - number of the file for which the weblink should be createdfilename - name of the file for which the weblink should be createdbaseUrl - URL to the REST webservicescom.saperion.util.LinkCreationException - if creation of link failespublic static List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> getElementInfos(DocumentId documentId) throws AuthenticationException, SystemException
documentId - document for which the element information is neededAuthenticationException - if authentication is needed but not providedSystemException - if an exception occures during calculation of element informationCopyright © 2016 SAPERION AG. All rights reserved.