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
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendApplicationLink(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 linkvoidappendApplicationLink(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 linkvoidappendCreateLink(StringBuilder p_sBuf, String p_strTarget, String p_strName, boolean p_bHtmlEncode)voidappendLink(StringBuilder p_sBuf, String p_strTarget, String p_strName, boolean p_bHtmlEncode)voidappendLink(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.WikiTransformergetTransformer()StringgetWiki(String p_strIn)Get the rendered Wiki-outputStringgetWikiLengthLimit(String p_strIn, int p_iLength)Get the rendered Wiki-output (length limited)booleanhasCreatePermission()booleanhasHistory()booleanlinkExists(String p_strHeadline)Check if link has a valid targetvoidrenderImage(StringBuilder p_sBuf, String p_strSrc, String p_strName)Will be called in cause of a linkvoidsetCreateLinkColor(String p_strCreateLinkColor)voidsetLinkColor(String p_strLinkColor)voidsetMaxHistory(int p_iHistory)
-
-
-
Constructor Detail
-
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 Detail
-
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 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:
appendCreateLinkin 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:
appendLinkin 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:
appendApplicationLinkin 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:
appendLinkin 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:
appendApplicationLinkin 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
public void renderImage(StringBuilder p_sBuf, String p_strSrc, String p_strName)
Will be called in cause of a link- Specified by:
renderImagein 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
public boolean linkExists(String p_strHeadline)
Check if link has a valid target- Specified by:
linkExistsin 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:
hasCreatePermissionin interfacede.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:
getTransformerin interfacede.uplanet.lucy.server.auxiliaries.wiki.IWikiEngine
-
-