Class WikiRenderer.WikiRendererImpl2

java.lang.Object
de.uplanet.lucy.server.auxiliaries.wiki.WikiRenderer.WikiRendererImpl2
All Implemented Interfaces:
de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
Enclosing class:
WikiRenderer

public static class WikiRenderer.WikiRendererImpl2 extends Object implements de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
The wiki rendering engine
  • Constructor Details

    • WikiRendererImpl2

      public WikiRendererImpl2(de.uplanet.jdbc.JdbcConnection p_conn, de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strTableGuid, String p_strHeadlineGuid, String p_strIdGuid, String p_strNewTargetGuid, String p_strMultTargetGuid, String p_strViewTargetGuid, String p_strUserIdGuid)
      Create a WIKI render object.
      Parameters:
      p_conn - The JDBC connection
      p_ctx - The context object.
      p_strTableGuid - The table of the WIKI data group
      p_strHeadlineGuid - The Headline-GUID of the article
      p_strIdGuid - The LID-GUID of the article
      p_strNewTargetGuid - The GUID of the page for new articles
      p_strMultTargetGuid - The GUID of the page for multiple search results
      p_strViewTargetGuid - The GUID of the page for viewing an article
      p_strUserIdGuid - The user field-GUIDof the WIKI data group
  • Method Details

    • getWiki

      public String getWiki(String p_strIn)
      Get the rendered Wiki-output
      Parameters:
      p_strIn - The String to be rendered
      Returns:
      The rendered Wiki-output
    • getWikiLengthLimit

      public String getWikiLengthLimit(String p_strIn, int p_iLength)
      Get the rendered Wiki-output (length limited)
      Parameters:
      p_strIn - The String to be rendered
      p_iLength - The output length (Output length without html code)
      Returns:
      The rendered Wiki-output without
    • appendCreateLink

      public void appendCreateLink(StringBuilder p_sBuf, String p_strTarget, String p_strName, boolean p_bHtmlEncode)
      Specified by:
      appendCreateLink in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
    • appendLink

      public void appendLink(StringBuilder p_sBuf, String p_strTarget, String p_strName, boolean p_bHtmlEncode)
      Specified by:
      appendLink in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
    • appendApplicationLink

      public void appendApplicationLink(StringBuilder p_sBuf, String p_strAppGuid, String p_strTargetGuid, int p_iRecID, String p_strName, boolean p_bOpenInPopup, boolean p_bHtmlEncode)
      Will be called in cause of a application link
      Specified by:
      appendApplicationLink in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
      Parameters:
      p_sBuf - The stringbuffer of the output.
      p_strAppGuid - Guid of the application.
      p_strTargetGuid - Guid of the fup page.
      p_iRecID - Record id
      p_strName - The alias for the link.
      p_bOpenInPopup - True when link should open in a new popup window
    • appendLink

      public void appendLink(StringBuilder p_sBuf, String p_strTarget, String p_strName, String p_strAnchor, boolean p_bHtmlEncode)
      Will be called in cause of a link
      Specified by:
      appendLink in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
      Parameters:
      p_sBuf - The Stringbuffer og the output
      p_strTarget - The target headline
      p_strName - The alias for the Link
      p_strAnchor - The anchor of the Link
    • appendApplicationLink

      public void appendApplicationLink(StringBuilder p_sbuf, String p_strAppGuid, String p_strTargetGuid, int p_iRecId, String p_strName, String p_strAnchor, boolean p_bOpenInPopup, boolean p_bHtmlEncode)
      Will be called in cause of a link
      Specified by:
      appendApplicationLink in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
      Parameters:
      p_sbuf - The Stringbuffer og the output
      p_strAppGuid - guid of the application
      p_strTargetGuid - guid of the fup page
      p_iRecId - recordid
      p_strName - The alias for the Link
      p_strAnchor - The anchor of the Link
      p_bOpenInPopup - True when link should open in a new popup window.
    • renderImage

      public void renderImage(StringBuilder p_sBuf, String p_strSrc, String p_strName)
      Will be called in cause of a link
      Specified by:
      renderImage in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
      Parameters:
      p_sBuf - The Stringbuffer of the output.
      p_strSrc - Source path of image.
      p_strName - The alias for the link.
    • linkExists

      public boolean linkExists(String p_strHeadline)
      Check if link has a valid target
      Specified by:
      linkExists in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
      Parameters:
      p_strHeadline - the headline of the link
      Returns:
      true, if headline has matches
    • hasCreatePermission

      public boolean hasCreatePermission()
      Specified by:
      hasCreatePermission in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
    • hasHistory

      public boolean hasHistory()
    • setCreateLinkColor

      public void setCreateLinkColor(String p_strCreateLinkColor)
    • setLinkColor

      public void setLinkColor(String p_strLinkColor)
    • setMaxHistory

      public void setMaxHistory(int p_iHistory)
    • getTransformer

      public de.uplanet.lucy.server.auxiliaries.wiki.parser.WikiTransformer getTransformer()
      Specified by:
      getTransformer in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine