Class VCRendererFactory
java.lang.Object
de.uplanet.lucy.server.auxiliaries.VCRendererFactory
- All Implemented Interfaces:
de.uplanet.lucy.server.renderer.IDefaultRendererFactory
@VelocityCallable("singleton")
public final class VCRendererFactory
extends Object
implements de.uplanet.lucy.server.renderer.IDefaultRendererFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBooleanRendererWithParameters
(IRenderingContext p_ctx, String p_strDefaultOutputValue, String p_strValueTrue, String p_strValueFalse) createCms2ContentRenderer
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bInsertBR, boolean p_bJsEncode, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) createCurrencyRendererWithParameters
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDecSep, String p_strGroupSep, Integer p_iFracDigits, Boolean p_bLeadingNulls) createDateRendererWithParameters
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDateFormat, String p_strTimeZone) createDateRendererWithParametersForEdit
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDateFormat, String p_strTimeZone) createDateTimeRendererWithParameters
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDateFormat, String p_strTimeFormat, String p_strTimeZone) createDateTimeRendererWithParametersForEdit
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDateFormat, String p_strTimeFormat, String p_strTimeZone) createDefaultEncodingRenderer
(boolean p_bHtmlEncode, boolean p_bJsEncode, boolean p_bFilterScript, String p_strDefaultOutputValue) createDefaultEncodingRenderer
(boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue) createDoubleRendererWithParameters
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDecSep, String p_strGroupSep, Integer p_iFracDigits, Boolean p_bLeadingNulls) createHtmlRemoveRenderer
(boolean p_bInsertBR, boolean p_bFilterHtml, String p_strDefaultOutput) createHtmlRemoveRendererPipe
(boolean p_bInsertBR, int p_iLengthLimit, String p_strMoreMarker) createIntegerRendererWithParameters
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strGroupSep) createMailAddressRenderer
(IRenderingContext p_ctx, String p_strDefaultOutputValue, String p_strSeparator, String p_strLineBreak) Create renderer for email addresses, e.g.createMailAddressRenderer
(IRenderingContext p_ctx, String p_strDefaultOutputValue, String p_strSeparator, String p_strLineBreak, boolean p_bInsertBR, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) Create renderer for email addresses, e.g.createMailToRendererWithParameters
(IRenderingContext p_ctx, String p_strDefaultOutputValue) Create a new markdown renderer.createMarkdownRendererPipeline
(int p_maxTextLength, boolean p_useXssProtection) Create a new markdown renderer and encode Javascript.createPercentageRenderer
(String p_strDefaultOutputValue) createPinboardDateRenderer
(IRenderingContext p_ctx, String p_strSince, String p_strIn, String p_strDay, String p_strDays, String p_strHour, String p_strHours, String p_strMinute, String p_strMinutes, String p_strAt) createPinboardDateRenderer
(IRenderingContext p_ctx, String p_strSince, String p_strIn, String p_strDay, String p_strDays, String p_strHour, String p_strHours, String p_strMinute, String p_strMinutes, String p_strAt, String p_strYesterDay, String p_strAgo) createPinboardDateRenderer
(String p_strSince, String p_strIn, String p_strDay, String p_strDays, String p_strHour, String p_strHours, String p_strMinute, String p_strMinutes) createPinboardDateRenderer
(String p_strSince, String p_strIn, String p_strDay, String p_strDays, String p_strHour, String p_strHours, String p_strMinute, String p_strMinutes, String p_strAt) createRenderer
(IRenderingContext p_ctx, String p_strClass) Create a renderer given the renderer class.createSimpleTextRenderer
(String p_strDefaultOutputValue) createTextAreaHtmlRendererPipe
(boolean p_bInsertBR, boolean p_bCloseOpenTags, boolean p_bFilterActiveContent, int p_iLengthLimit) createTextAreaHtmlRendererPipeWithDefaultOutput
(boolean p_bInsertBR, boolean p_bCloseOpenTags, boolean p_bFilterActiveContent, int p_iLengthLimit, String p_strDefaultOutput) createTextAreaHtmlRendererWithParameters
(boolean p_bInsertBR, boolean p_bJsEncode, boolean p_bCloseOpenTags, boolean p_bActiveContentStripping, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) createTextAreaHtmlRendererWithParameters
(boolean p_bInsertBR, boolean p_bCloseOpenTags, boolean p_bActiveContentStripping, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) createTextAreaRendererPipe
(boolean p_bHtmlEncode, boolean p_bJavaEncode, boolean p_bInsertBR, int p_iLengthLimit) createTextAreaRendererPipeWithDefaultOutput
(boolean p_bHtmlEncode, boolean p_bJavaEncode, boolean p_bInsertBR, int p_iLengthLimit, String p_strDefaultOutput) createTextAreaRendererWithParameters
(boolean p_bHtmlEncode, boolean p_bInsertBR, boolean p_bJsEncode, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) createTextAreaRendererWithParameters
(boolean p_bHtmlEncode, boolean p_bInsertBR, boolean p_bJsEncode, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker, boolean p_bActiveContentStripping, boolean p_bCloseOpenTags) createTimeRendererWithParameters
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strTimeFormat, String p_strTimeZone) createTimeRendererWithParametersForEdit
(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strTimeFormat, String p_strTimeZone) createUriRendererWithParameters
(IRenderingContext p_ctx, String p_strDefaultOutputValue, String p_strSchema) createUrlCodingTextRenderer
(String p_strDefaultOutputValue) getDefaultRenderingContext
(IServerBridgeRequest p_request, ISession p_session, IUser p_user, String p_strLang) Deprecated.getDefaultRenderingContext
(de.uplanet.lucy.server.IProcessingContext p_ctx, IUser p_user, String p_strLang) jsonify
(de.uplanet.lucy.server.renderer.impl.RendererPipe p_pipe) Add aJSONRenderer
to given renderer pipe.jsonify
(de.uplanet.lucy.server.renderer.IPipedRenderer p_renderer)
-
Constructor Details
-
VCRendererFactory
public VCRendererFactory()
-
-
Method Details
-
getDefaultRenderingContext
public IRenderingContext getDefaultRenderingContext(de.uplanet.lucy.server.IProcessingContext p_ctx, IUser p_user, String p_strLang) - Specified by:
getDefaultRenderingContext
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
-
getDefaultRenderingContext
@Deprecated public IRenderingContext getDefaultRenderingContext(IServerBridgeRequest p_request, ISession p_session, IUser p_user, String p_strLang) Deprecated. -
createRenderer
public IRenderer createRenderer(IRenderingContext p_ctx, String p_strClass) throws de.uplanet.lucy.server.renderer.RendererFactoryException Create a renderer given the renderer class.- Parameters:
p_ctx
- The rendering context to used.p_strClass
- The renderer class.- Returns:
- The renderer.
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createPinboardDateRenderer
public IRenderer createPinboardDateRenderer(String p_strSince, String p_strIn, String p_strDay, String p_strDays, String p_strHour, String p_strHours, String p_strMinute, String p_strMinutes) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createPinboardDateRenderer
public IRenderer createPinboardDateRenderer(String p_strSince, String p_strIn, String p_strDay, String p_strDays, String p_strHour, String p_strHours, String p_strMinute, String p_strMinutes, String p_strAt) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createPinboardDateRenderer
public IRenderer createPinboardDateRenderer(IRenderingContext p_ctx, String p_strSince, String p_strIn, String p_strDay, String p_strDays, String p_strHour, String p_strHours, String p_strMinute, String p_strMinutes, String p_strAt) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createPinboardDateRenderer
public IRenderer createPinboardDateRenderer(IRenderingContext p_ctx, String p_strSince, String p_strIn, String p_strDay, String p_strDays, String p_strHour, String p_strHours, String p_strMinute, String p_strMinutes, String p_strAt, String p_strYesterDay, String p_strAgo) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultDurationRenderer
public IRenderer createDefaultDurationRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDateTimeRendererUTC
public IRenderer createDateTimeRendererUTC(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createJavaScriptDateTimeRenderer
public IRenderer createJavaScriptDateTimeRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createMarkdownRendererPipeline
-
createMarkdownRendererPipeline
public IRenderer createMarkdownRendererPipeline(int p_maxTextLength, boolean p_useXssProtection) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createHtmlMailRenderer
public IRenderer createHtmlMailRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDateTimeAdjustStringRenderer
public IRenderer createDateTimeAdjustStringRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createUtcIsoDateTimeRenderer
public IRenderer createUtcIsoDateTimeRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createHtmlMarkupStrippingRenderer
public IRenderer createHtmlMarkupStrippingRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultActiveContentStrippingRenderer
public IRenderer createDefaultActiveContentStrippingRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultJavaScriptLiteralRenderer
public IRenderer createDefaultJavaScriptLiteralRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createColorModifierRenderer
public IRenderer createColorModifierRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultColorRenderer
public IRenderer createDefaultColorRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultHtmlEncodingRenderer
public IRenderer createDefaultHtmlEncodingRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultHtmlAttributeEncodingRenderer
public IRenderer createDefaultHtmlAttributeEncodingRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultXmlEncodingRenderer
public IRenderer createDefaultXmlEncodingRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createNumeralRenderer
public IRenderer createNumeralRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultToolTipRenderer
public IRenderer createDefaultToolTipRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultUriRenderer
public IRenderer createDefaultUriRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultMailToRenderer
public IRenderer createDefaultMailToRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultTelUriRenderer
public IRenderer createDefaultTelUriRenderer() throws de.uplanet.lucy.server.renderer.RendererFactoryException- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createIntegerRendererWithParameters
public IRenderer createIntegerRendererWithParameters(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strGroupSep) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createBooleanRendererWithParameters
public IRenderer createBooleanRendererWithParameters(IRenderingContext p_ctx, String p_strDefaultOutputValue, String p_strValueTrue, String p_strValueFalse) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDateTimeRendererWithParameters
public IRenderer createDateTimeRendererWithParameters(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDateFormat, String p_strTimeFormat, String p_strTimeZone) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDateTimeRendererWithParametersForEdit
public IRenderer createDateTimeRendererWithParametersForEdit(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDateFormat, String p_strTimeFormat, String p_strTimeZone) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDateRendererWithParameters
public IRenderer createDateRendererWithParameters(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDateFormat, String p_strTimeZone) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDateRendererWithParametersForEdit
public IRenderer createDateRendererWithParametersForEdit(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDateFormat, String p_strTimeZone) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createTimeRendererWithParameters
public IRenderer createTimeRendererWithParameters(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strTimeFormat, String p_strTimeZone) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createTimeRendererWithParametersForEdit
public IRenderer createTimeRendererWithParametersForEdit(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strTimeFormat, String p_strTimeZone) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDoubleRendererWithParameters
public IRenderer createDoubleRendererWithParameters(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDecSep, String p_strGroupSep, Integer p_iFracDigits, Boolean p_bLeadingNulls) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createCurrencyRendererWithParameters
public IRenderer createCurrencyRendererWithParameters(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue, String p_strDecSep, String p_strGroupSep, Integer p_iFracDigits, Boolean p_bLeadingNulls) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultEncodingRenderer
public IRenderer createDefaultEncodingRenderer(boolean p_bHtmlEncode, boolean p_bJsEncode, boolean p_bFilterScript, String p_strDefaultOutputValue) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultEncodingRenderer
public IRenderer createDefaultEncodingRenderer(boolean p_bHtmlEncode, boolean p_bJsEncode, String p_strDefaultOutputValue) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createUriRendererWithParameters
public IRenderer createUriRendererWithParameters(IRenderingContext p_ctx, String p_strDefaultOutputValue, String p_strSchema) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createMailToRendererWithParameters
public IRenderer createMailToRendererWithParameters(IRenderingContext p_ctx, String p_strDefaultOutputValue) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createMarkdownRenderer
Create a new markdown renderer.- Returns:
- A new mardown renderer instance.
-
createMarkdownRendererWithJavaScriptEncoder
Create a new markdown renderer and encode Javascript.- Returns:
- A new mardown renderer/javascript renderer pipe instance.
-
createTextAreaRendererPipe
public IRenderer createTextAreaRendererPipe(boolean p_bHtmlEncode, boolean p_bJavaEncode, boolean p_bInsertBR, int p_iLengthLimit) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bHtmlEncode
- true: e.q: <table> is rendered to <table>p_bJavaEncode
- true: e.q: "hallo" is rendered to \"hallo\"p_bInsertBR
- used only when p_bHtmlEncode is true, too. CR,CRLF or LF is transformed to <br>p_iLengthLimit
- maximal count of chars written- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createTextAreaRendererPipeWithDefaultOutput
public IRenderer createTextAreaRendererPipeWithDefaultOutput(boolean p_bHtmlEncode, boolean p_bJavaEncode, boolean p_bInsertBR, int p_iLengthLimit, String p_strDefaultOutput) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bHtmlEncode
- true: e.q: <table> is rendered to <table>p_bJavaEncode
- true: e.q: "hello" is rendered to \"hello\"p_bInsertBR
- CR,CRLF or LF is transformed to <br>p_iLengthLimit
- maximal count of chars writtenp_strDefaultOutput
- OutputData when an Null or Empty Value should renderered- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createHtmlRemoveRenderer
public IRenderer createHtmlRemoveRenderer(boolean p_bInsertBR, boolean p_bFilterHtml, String p_strDefaultOutput) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bInsertBR
- true: replaces CR,CRLF,LFCR to <br>p_bFilterHtml
- true: strip of all html-tags- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createHtmlRemoveRendererPipe
public IRenderer createHtmlRemoveRendererPipe(boolean p_bInsertBR, int p_iLengthLimit, String p_strMoreMarker) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bInsertBR
- true: replaces CR,CRLF,LFCR to <br>p_iLengthLimit
- maximal count of chars written out (HTML tags not count) e.q.:p_iLimit = 5
and input ="<p>1234567890</p>"
will transformed to"<p>12345</p>"
- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createTextAreaHtmlRendererPipe
public IRenderer createTextAreaHtmlRendererPipe(boolean p_bInsertBR, boolean p_bCloseOpenTags, boolean p_bFilterActiveContent, int p_iLengthLimit) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bInsertBR
-true
: replaces CR,CRLF,LFCR to <br>p_bCloseOpenTags
-true
: makes an valid html e.q: Input"<p>Hallo"
will betransformed to"<p>Hallo</p>"
p_bFilterActiveContent
- Iftrue
thenscript
,object
,iframe
,embed
, andapplet
elements are filtered out.p_iLengthLimit
- Maximal count of chars written out (HTML tags not count) e.q.:p_iLimit = 5
and input ="<p>1234567890</p>"
will transformed to"<p>12345</p>"
- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createTextAreaHtmlRendererPipeWithDefaultOutput
public IRenderer createTextAreaHtmlRendererPipeWithDefaultOutput(boolean p_bInsertBR, boolean p_bCloseOpenTags, boolean p_bFilterActiveContent, int p_iLengthLimit, String p_strDefaultOutput) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bInsertBR
-true
: replaces CR,CRLF,LFCR to <br>p_bCloseOpenTags
-true
: makes an valid html e.q: Input"<p>Hallo"
will be transformed to"<p>Hallo</p>"
.p_bFilterActiveContent
- Iftrue
thenscript
,object
,iframe
,embed
, andapplet
elements are filtered out.p_iLengthLimit
- maximal count of chars written out (HTML tags not count) e.q.:p_iLimit = 5
and input ="<p>1234567890</p>"
will transformed to"<p>12345</p>"
p_strDefaultOutput
- Output written, when an empty or null value is put to renderer.- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createTextAreaRendererWithParameters
public IRenderer createTextAreaRendererWithParameters(boolean p_bHtmlEncode, boolean p_bInsertBR, boolean p_bJsEncode, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker, boolean p_bActiveContentStripping, boolean p_bCloseOpenTags) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bHtmlEncode
- true: e.q: <table> is rendered to <table>p_bInsertBR
- true:CR
,CRLF
,LF
,LFCR
will replaced by<br />
p_bJsEncode
- true: e.q: "hallo" is rendered to \"hallo\"p_strDefaultOutputValue
- Output written, when an empty or null value is put to rendererp_bLengthLimit
- true: the output is truncated to the length given by p_iLengthLimitp_iLengthLimit
- whenp_bLengthLimt = true
: maximal count of chars written outp_strMoreMarker
- value written when truncaten e.q.p_iLengthLimit == 5 and p_strMoreMarker == "..." and inputvalue == "1234567890"
output is transformed to"12345..."
- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createTextAreaRendererWithParameters
public IRenderer createTextAreaRendererWithParameters(boolean p_bHtmlEncode, boolean p_bInsertBR, boolean p_bJsEncode, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bHtmlEncode
- true: e.q: <table> is rendered to <table>p_bInsertBR
- true:CR
,CRLF
,LF
,LFCR
will replaced by<br />
p_bJsEncode
- true: e.q: "hallo" is rendered to \"hallo\"p_strDefaultOutputValue
- Output written, when an empty or null value is put to rendererp_bLengthLimit
- true: the output is truncated to the length given by p_iLengthLimitp_iLengthLimit
- whenp_bLengthLimt = true
: maximal count of chars written outp_strMoreMarker
- value written when truncaten e.q.p_iLengthLimit == 5 and p_strMoreMarker == "..." and inputvalue == "1234567890"
output is transformed to"12345..."
- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createTextAreaHtmlRendererWithParameters
public IRenderer createTextAreaHtmlRendererWithParameters(boolean p_bInsertBR, boolean p_bCloseOpenTags, boolean p_bActiveContentStripping, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bInsertBR
- true: replaces CR,CRLF,LFCR to <br>p_bCloseOpenTags
- true: makes an valid html e.q: Input:"<p>Hallo"
will transformed to"<p>Hallo</p>"
p_bActiveContentStripping
- true:<script>
,<object>
,<iframe>
,<embed>
; and<applet>
are filtered outp_strDefaultOutputValue
- Output written, when an empty or null value is put to rendererp_bLengthLimit
-p_iLengthLimit
- maximal count of chars written out, whenp_bLengthLimit = true
(HTML tags not count) e.q.:p_iLimit = 5
and input ="<p>1234567890</p>"
will transformed to"<p>12345</p>"
p_strMoreMarker
- value written when truncated e.q.p_iLengthLimit == 5 and p_strMoreMarker == "..." and inputvalue ==
"<p>1234567890</p>"
will transformed to"<p>12345...</p>"
- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createTextAreaHtmlRendererWithParameters
public IRenderer createTextAreaHtmlRendererWithParameters(boolean p_bInsertBR, boolean p_bJsEncode, boolean p_bCloseOpenTags, boolean p_bActiveContentStripping, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) throws de.uplanet.lucy.server.renderer.RendererException - Parameters:
p_bInsertBR
- true: replaces CR,CRLF,LFCR to <br>p_bJsEncode
- true: true: e.q: "hallo" is rendered to \"hallo\"p_bCloseOpenTags
- true: makes an valid html e.q: Input:"<p>Hallo"
will transformed to"<p>Hallo</p>"
p_bActiveContentStripping
- true:<script>
,<object>
,<iframe>
,<embed>
; and<applet>
are filtered outp_strDefaultOutputValue
- Output written, when an empty or null value is put to rendererp_bLengthLimit
-p_iLengthLimit
- maximal count of chars written out, whenp_bLengthLimit = true
(HTML tags not count) e.q.:p_iLimit = 5
and input ="<p>1234567890</p>"
will transformed to"<p>12345</p>"
p_strMoreMarker
- value written when truncated e.q.p_iLengthLimit == 5 and p_strMoreMarker == "..." and inputvalue =
"<p>1234567890</p>"
will transformed to"<p>12345...</p>"
- Returns:
IRenderer
- Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createSimpleTextRenderer
public IRenderer createSimpleTextRenderer(String p_strDefaultOutputValue) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createUrlCodingTextRenderer
public IRenderer createUrlCodingTextRenderer(String p_strDefaultOutputValue) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createPercentageRenderer
public IRenderer createPercentageRenderer(String p_strDefaultOutputValue) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createCms2ContentRenderer
public IRenderer createCms2ContentRenderer(IRenderingContext p_ctx, boolean p_bHtmlEncode, boolean p_bInsertBR, boolean p_bJsEncode, String p_strDefaultOutputValue, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) throws de.uplanet.lucy.server.renderer.RendererException - Throws:
de.uplanet.lucy.server.renderer.RendererException
-
createMailAddressRenderer
public IRenderer createMailAddressRenderer(IRenderingContext p_ctx, String p_strDefaultOutputValue, String p_strSeparator, String p_strLineBreak, boolean p_bInsertBR, boolean p_bLengthLimit, int p_iLengthLimit, String p_strMoreMarker) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException Create renderer for email addresses, e.g. "A, B" <a.b@mycompany.com> will be rendered to a.b@mycompany.com.- Parameters:
p_ctx
- Rendering contextp_strDefaultOutputValue
- Default output valuep_strSeparator
- Separator between the email addresses (default: ";")p_strLineBreak
- Line break between the email addresses (possible values: "LF", "CR", "CRLF", "BR", "", default: "")p_bInsertBR
- Replace line breaks with
tagp_bLengthLimit
- Length limit for view fieldp_iLengthLimit
- Length limit valuep_strMoreMarker
- More marker if length limit has been reached- Returns:
- The renderer
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createMailAddressRenderer
public IRenderer createMailAddressRenderer(IRenderingContext p_ctx, String p_strDefaultOutputValue, String p_strSeparator, String p_strLineBreak) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException Create renderer for email addresses, e.g. "A, B" <a.b@mycompany.com> will be rendered to a.b@mycompany.com.- Parameters:
p_ctx
- Rendering contextp_strDefaultOutputValue
- Default output valuep_strSeparator
- Separator between the email addresses (default: ";")p_strLineBreak
- Line break between the email addresses (possible values: "LF", "CR", "CRLF", "BR", "", default: "")- Returns:
- The renderer
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createJSONRenderer
-
jsonify
Add aJSONRenderer
to given renderer pipe.- Parameters:
p_pipe
- The renderer pipe.- Returns:
- The modified
p_pipe
.
-
jsonify
-
jsonify
-
createDefaultBooleanRenderer
public IRenderer createDefaultBooleanRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Specified by:
createDefaultBooleanRenderer
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultDateTimeRenderer
public IRenderer createDefaultDateTimeRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException - Specified by:
createDefaultDateTimeRenderer
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
-
createDefaultDateRenderer
public IRenderer createDefaultDateRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Specified by:
createDefaultDateRenderer
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultTimeRenderer
public IRenderer createDefaultTimeRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Specified by:
createDefaultTimeRenderer
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultDoubleRenderer
public IRenderer createDefaultDoubleRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Specified by:
createDefaultDoubleRenderer
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultCurrencyRenderer
public IRenderer createDefaultCurrencyRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Specified by:
createDefaultCurrencyRenderer
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultTextRenderer
public IRenderer createDefaultTextRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Specified by:
createDefaultTextRenderer
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
createDefaultIntegerRenderer
public IRenderer createDefaultIntegerRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException - Specified by:
createDefaultIntegerRenderer
in interfacede.uplanet.lucy.server.renderer.IDefaultRendererFactory
- Throws:
de.uplanet.lucy.server.renderer.RendererFactoryException
de.uplanet.lucy.server.renderer.RendererException
-
getDefaultRenderingContext(IProcessingContext, IUser, String)
instead.