de.uplanet.lucy.server.auxiliaries.wiki
Class WikiRenderer.WikiRendererImpl2

java.lang.Object
  extended by 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 java.lang.Object
implements de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine

The wiki rendering engine


Constructor Summary
WikiRenderer.WikiRendererImpl2(de.uplanet.jdbc.JdbcConnection p_conn, de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strTableGuid, java.lang.String p_strHeadlineGuid, java.lang.String p_strIdGuid, java.lang.String p_strNewTargetGuid, java.lang.String p_strMultTargetGuid, java.lang.String p_strViewTargetGuid, java.lang.String p_strUserIdGuid)
          Create a Wiki Render Object.
 
Method Summary
 void appendApplicationLink(java.lang.StringBuilder p_sBuf, java.lang.String p_strAppGuid, java.lang.String p_strTargetGuid, int p_iRecID, java.lang.String p_strName, boolean p_bOpenInPopup)
          Will be called in cause of a application link
 void appendApplicationLink(java.lang.StringBuilder p_sbuf, java.lang.String p_strAppGuid, java.lang.String p_strTargetGuid, int p_iRecId, java.lang.String p_strName, java.lang.String p_strAnchor, boolean p_bOpenInPopup)
          Will be called in cause of a link
 void appendCreateLink(java.lang.StringBuilder p_sBuf, java.lang.String p_strTarget, java.lang.String p_strName)
          Will be called in cause of new link
 void appendLink(java.lang.StringBuilder p_sBuf, java.lang.String p_strTarget, java.lang.String p_strName)
          Will be called in cause of a link
 void appendLink(java.lang.StringBuilder p_sBuf, java.lang.String p_strTarget, java.lang.String p_strName, java.lang.String p_strAnchor)
          Will be called in cause of a link
 WikiTransformer getTransfomer()
           
 java.lang.String getWiki(java.lang.String p_strIn)
          Get the rendered Wiki-output
 java.lang.String getWikiLengthLimit(java.lang.String p_strIn, int p_iLength)
          Get the rendered Wiki-output (length limited)
 boolean hasCreatePermission()
          true when the user has the permission to create an new wiki entry
 boolean linkExists(java.lang.String p_strHeadline)
          Check if link has a valid target
 void renderImage(java.lang.StringBuilder p_sBuf, java.lang.String p_strSrc, java.lang.String p_strName)
          Will be called in cause of a link
 void setCreateLinkColor(java.lang.String p_strCreateLinkColor)
           
 void setLinkColor(java.lang.String p_strLinkColor)
           
 void setMaxHistory(int p_iHistory)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiRenderer.WikiRendererImpl2

public WikiRenderer.WikiRendererImpl2(de.uplanet.jdbc.JdbcConnection p_conn,
                                      de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                      java.lang.String p_strTableGuid,
                                      java.lang.String p_strHeadlineGuid,
                                      java.lang.String p_strIdGuid,
                                      java.lang.String p_strNewTargetGuid,
                                      java.lang.String p_strMultTargetGuid,
                                      java.lang.String p_strViewTargetGuid,
                                      java.lang.String p_strUserIdGuid)
                               throws java.lang.Exception
Create a Wiki Render Object.

Parameters:
p_conn - The JDBC Connection
p_ctx - The context object.
p_strTableGuid - The table of the wiki datagroup
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 Userfield-guid of the wiki datagroup
Throws:
java.lang.Exception
Method Detail

getWiki

public java.lang.String getWiki(java.lang.String p_strIn)
Get the rendered Wiki-output

Parameters:
p_strIn - The String to be rendered
Returns:
The rendered Wiki-output

getWikiLengthLimit

public java.lang.String getWikiLengthLimit(java.lang.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(java.lang.StringBuilder p_sBuf,
                             java.lang.String p_strTarget,
                             java.lang.String p_strName)
Will be called in cause of new link

Specified by:
appendCreateLink in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
Parameters:
p_sBuf - The Stringbuilder og the output
p_strTarget - The target headline
p_strName - The alias for the Link

appendLink

public void appendLink(java.lang.StringBuilder p_sBuf,
                       java.lang.String p_strTarget,
                       java.lang.String p_strName)
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 of the output
p_strTarget - The target headline
p_strName - The alias for the Link

appendApplicationLink

public void appendApplicationLink(java.lang.StringBuilder p_sBuf,
                                  java.lang.String p_strAppGuid,
                                  java.lang.String p_strTargetGuid,
                                  int p_iRecID,
                                  java.lang.String p_strName,
                                  boolean p_bOpenInPopup)
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(java.lang.StringBuilder p_sBuf,
                       java.lang.String p_strTarget,
                       java.lang.String p_strName,
                       java.lang.String p_strAnchor)
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(java.lang.StringBuilder p_sbuf,
                                  java.lang.String p_strAppGuid,
                                  java.lang.String p_strTargetGuid,
                                  int p_iRecId,
                                  java.lang.String p_strName,
                                  java.lang.String p_strAnchor,
                                  boolean p_bOpenInPopup)
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(java.lang.StringBuilder p_sBuf,
                        java.lang.String p_strSrc,
                        java.lang.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(java.lang.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()
Description copied from interface: de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
true when the user has the permission to create an new wiki entry

Specified by:
hasCreatePermission in interface de.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
Returns:
True when the user has the permission to create an new wiki entry.

setCreateLinkColor

public void setCreateLinkColor(java.lang.String p_strCreateLinkColor)

setLinkColor

public void setLinkColor(java.lang.String p_strLinkColor)

setMaxHistory

public void setMaxHistory(int p_iHistory)

getTransfomer

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


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.