Class 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 
      Constructor Description
      ZKWeblinkUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String createClipboardJS​(java.lang.String url, java.lang.String message)
      Creates the clipboard js.
      static java.lang.String createMessageBoxJS​(java.lang.String url, java.lang.String message)
      Creates the message box js.
      static java.lang.String createURL​(java.lang.String baseURL, ResultProperties document, boolean published)
      Creates the url.
      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)
      Creates the url.
      • Methods inherited from class com.saperion.util.WeblinkUtil

        bookmark, hash, secureBookmark, secureURL, secureWeblink, secureWeblink, url, validate, weblink
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZKWeblinkUtil

        public ZKWeblinkUtil()
    • Method Detail

      • createURL

        public static java.lang.String createURL​(java.lang.String baseURL,
                                                 ResultProperties document,
                                                 boolean published)
                                          throws com.saperion.util.LinkCreationException
        Creates the url.
        Parameters:
        baseURL - the base url
        document - the document
        published - 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.LinkCreationException
        Creates the url.
        Parameters:
        baseURL - the base url
        document - the document
        published - the published
        currentRevision - the current revision
        mandant - the mandant
        extern - the extern
        timeout - 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.LinkCreationException
        Creates the message box js.
        Parameters:
        url - the url
        message - 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.LinkCreationException
        Creates the clipboard js.
        Parameters:
        url - the url
        message - the message
        Returns:
        the string
        Throws:
        com.saperion.util.LinkCreationException - the link creation exception