public final class WatermarkUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
adaptFilename(String filename,
DocumentDatabaseMetaInfo metaInfo)
Changes the extension of the document's filename to .pdf when the document will be
exported with a watermark.
|
static String |
adaptFilename(String filename,
com.saperion.intf.SaPropertyValue[] metaData)
Changes the extension of the document's filename to .pdf when the document will be
exported with a watermark.
|
static String |
getWatermarkFile(String hDoc,
boolean currentRevision,
DocumentService docService)
Gets the watermark file property of a document which is set in the WATERMARKFILE field
in the document's metadata.
|
static boolean |
isEnabled() |
public static boolean isEnabled()
public static String adaptFilename(String filename, DocumentDatabaseMetaInfo metaInfo)
filename
- Original filenamemetaInfo
- database metadata of the document to check if watermark is enabledpublic static String adaptFilename(String filename, com.saperion.intf.SaPropertyValue[] metaData)
filename
- Original filenamemetaData
- metadata of the document to check if watermark is enabledpublic static String getWatermarkFile(String hDoc, boolean currentRevision, DocumentService docService) throws DocumentIdentificationException, SystemException, AuthenticationException, DatabaseException
hDoc
- hdoc of the documentcurrentRevision
- whether to resolve the current revision or notdocService
- document service needed to load metadataDocumentIdentificationException
- missing information in document's IDSystemException
- system error when loading metadataAuthenticationException
- authentication error when loading metadataDatabaseException
- database error when loading metadataCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.