Package com.saperion.ngc.util
Class ZKWeblinkUtil
java.lang.Object
com.saperion.util.WeblinkUtil
com.saperion.ngc.util.ZKWeblinkUtil
public class ZKWeblinkUtil
extends com.saperion.util.WeblinkUtil
The Class ZKWeblinkUtil.
-
Field Summary
Fields inherited from class com.saperion.util.WeblinkUtil
ALL_ELEMENT, REQ_PARAM_ARCHIVE, REQ_PARAM_CURRENTREVISION, REQ_PARAM_ELEMENT, REQ_PARAM_EXTERN, REQ_PARAM_FIELD, REQ_PARAM_FILENAME, REQ_PARAM_ID, REQ_PARAM_LINK, REQ_PARAM_MANDANT, REQ_PARAM_RELEASED, REQ_PARAM_SECURE, REQ_PARAM_TIMEOUT, REQ_PARAM_ZIP_LINK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createClipboardJS
(String url, String message) Creates the clipboard js.static String
createMessageBoxJS
(String url, String message) Creates the message box js.static String
createURL
(String baseURL, ResultProperties document, boolean published) Creates the url.static String
createURL
(String baseURL, ResultProperties document, boolean published, boolean currentRevision, String mandant, boolean extern, Long timeout) Creates the url.Methods inherited from class com.saperion.util.WeblinkUtil
bookmark, hash, secureBookmark, secureURL, secureWeblink, secureWeblink, url, validate, weblink
-
Constructor Details
-
ZKWeblinkUtil
public ZKWeblinkUtil()
-
-
Method Details
-
createURL
public static String createURL(String baseURL, ResultProperties document, boolean published) throws com.saperion.util.LinkCreationException Creates the url.- Parameters:
baseURL
- the base urldocument
- the documentpublished
- the published- Returns:
- the string
- Throws:
com.saperion.util.LinkCreationException
- the link creation exception
-
createURL
public static String createURL(String baseURL, ResultProperties document, boolean published, boolean currentRevision, String mandant, boolean extern, Long timeout) throws com.saperion.util.LinkCreationException Creates the url.- Parameters:
baseURL
- the base urldocument
- the documentpublished
- the publishedcurrentRevision
- the current revisionmandant
- the mandantextern
- the externtimeout
- the expiration timeout in milliseconds, null to irgnore- Returns:
- the URL as string
- Throws:
com.saperion.util.LinkCreationException
- the link creation exception
-
createMessageBoxJS
public static String createMessageBoxJS(String url, String message) throws com.saperion.util.LinkCreationException Creates the message box js.- Parameters:
url
- the urlmessage
- the message- Returns:
- the string
- Throws:
com.saperion.util.LinkCreationException
- the link creation exception
-
createClipboardJS
public static String createClipboardJS(String url, String message) throws com.saperion.util.LinkCreationException Creates the clipboard js.- Parameters:
url
- the urlmessage
- the message- Returns:
- the string
- Throws:
com.saperion.util.LinkCreationException
- the link creation exception
-