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.WeblinkUtilThe 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 Constructor Description ZKWeblinkUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcreateClipboardJS(java.lang.String url, java.lang.String message)Creates the clipboard js.static java.lang.StringcreateMessageBoxJS(java.lang.String url, java.lang.String message)Creates the message box js.static java.lang.StringcreateURL(java.lang.String baseURL, ResultProperties document, boolean published)Creates the url.static java.lang.StringcreateURL(java.lang.String baseURL, ResultProperties document, boolean published, boolean currentRevision, java.lang.String mandant, boolean extern, java.lang.Long timeout)Creates the url.
-
-
-
Method Detail
-
createURL
public static java.lang.String createURL(java.lang.String baseURL, ResultProperties document, boolean published) throws com.saperion.util.LinkCreationExceptionCreates 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 java.lang.String createURL(java.lang.String baseURL, ResultProperties document, boolean published, boolean currentRevision, java.lang.String mandant, boolean extern, java.lang.Long timeout) throws com.saperion.util.LinkCreationExceptionCreates 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 java.lang.String createMessageBoxJS(java.lang.String url, java.lang.String message) throws com.saperion.util.LinkCreationExceptionCreates 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 java.lang.String createClipboardJS(java.lang.String url, java.lang.String message) throws com.saperion.util.LinkCreationExceptionCreates the clipboard js.- Parameters:
url- the urlmessage- the message- Returns:
- the string
- Throws:
com.saperion.util.LinkCreationException- the link creation exception
-
-