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 Summary
ConstructorDescriptionWikiRendererImpl2
(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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 linkvoid
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 linkvoid
appendCreateLink
(StringBuilder p_sBuf, String p_strTarget, String p_strName, boolean p_bHtmlEncode) void
appendLink
(StringBuilder p_sBuf, String p_strTarget, String p_strName, boolean p_bHtmlEncode) void
appendLink
(StringBuilder p_sBuf, String p_strTarget, String p_strName, String p_strAnchor, boolean p_bHtmlEncode) Will be called in cause of a linkde.uplanet.lucy.server.auxiliaries.wiki.parser.WikiTransformer
Get the rendered Wiki-outputgetWikiLengthLimit
(String p_strIn, int p_iLength) Get the rendered Wiki-output (length limited)boolean
boolean
boolean
linkExists
(String p_strHeadline) Check if link has a valid targetvoid
renderImage
(StringBuilder p_sBuf, String p_strSrc, String p_strName) Will be called in cause of a linkvoid
setCreateLinkColor
(String p_strCreateLinkColor) void
setLinkColor
(String p_strLinkColor) void
setMaxHistory
(int p_iHistory)
-
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 connectionp_ctx
- The context object.p_strTableGuid
- The table of the WIKI data groupp_strHeadlineGuid
- The Headline-GUID of the articlep_strIdGuid
- The LID-GUID of the articlep_strNewTargetGuid
- The GUID of the page for new articlesp_strMultTargetGuid
- The GUID of the page for multiple search resultsp_strViewTargetGuid
- The GUID of the page for viewing an articlep_strUserIdGuid
- The user field-GUIDof the WIKI data group
-
-
Method Details
-
getWiki
Get the rendered Wiki-output- Parameters:
p_strIn
- The String to be rendered- Returns:
- The rendered Wiki-output
-
getWikiLengthLimit
Get the rendered Wiki-output (length limited)- Parameters:
p_strIn
- The String to be renderedp_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 interfacede.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 interfacede.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 interfacede.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 idp_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 interfacede.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
- Parameters:
p_sBuf
- The Stringbuffer og the outputp_strTarget
- The target headlinep_strName
- The alias for the Linkp_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 interfacede.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
- Parameters:
p_sbuf
- The Stringbuffer og the outputp_strAppGuid
- guid of the applicationp_strTargetGuid
- guid of the fup pagep_iRecId
- recordidp_strName
- The alias for the Linkp_strAnchor
- The anchor of the Linkp_bOpenInPopup
- True when link should open in a new popup window.
-
renderImage
Will be called in cause of a link- Specified by:
renderImage
in interfacede.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
Check if link has a valid target- Specified by:
linkExists
in interfacede.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 interfacede.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
-
hasHistory
public boolean hasHistory() -
setCreateLinkColor
-
setLinkColor
-
setMaxHistory
public void setMaxHistory(int p_iHistory) -
getTransformer
public de.uplanet.lucy.server.auxiliaries.wiki.parser.WikiTransformer getTransformer()- Specified by:
getTransformer
in interfacede.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
-