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 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 interface de.uplanet.lucy.server.renderer.IDefaultRendererFactory
    • getDefaultRenderingContext

      @Deprecated public IRenderingContext getDefaultRenderingContext(IServerBridgeRequest p_request, ISession p_session, IUser p_user, String p_strLang)
    • 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

      public IRenderer 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
    • 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
    • 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
    • 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

      public IRenderer createMarkdownRenderer()
      Create a new markdown renderer.
      Returns:
      A new mardown renderer instance.
    • createMarkdownRendererWithJavaScriptEncoder

      public IRenderer 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 &lt;table&gt;
      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 &lt;table&gt;
      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 written
      p_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 - If true then script, object, iframe, embed, and applet 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 - If true then script, object, iframe, embed, and applet 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 &lt;table&gt;
      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 renderer
      p_bLengthLimit - true: the output is truncated to the length given by p_iLengthLimit
      p_iLengthLimit - when p_bLengthLimt = true: maximal count of chars written out
      p_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 &lt;table&gt;
      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 renderer
      p_bLengthLimit - true: the output is truncated to the length given by p_iLengthLimit
      p_iLengthLimit - when p_bLengthLimt = true: maximal count of chars written out
      p_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 out
      p_strDefaultOutputValue - Output written, when an empty or null value is put to renderer
      p_bLengthLimit -
      p_iLengthLimit - maximal count of chars written out, when p_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 out
      p_strDefaultOutputValue - Output written, when an empty or null value is put to renderer
      p_bLengthLimit -
      p_iLengthLimit - maximal count of chars written out, when p_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 context
      p_strDefaultOutputValue - Default output value
      p_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
      tag
      p_bLengthLimit - Length limit for view field
      p_iLengthLimit - Length limit value
      p_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 context
      p_strDefaultOutputValue - Default output value
      p_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

      public IRenderer createJSONRenderer()
    • jsonify

      public IRenderer jsonify(de.uplanet.lucy.server.renderer.impl.RendererPipe p_pipe)
      Add a JSONRenderer to given renderer pipe.
      Parameters:
      p_pipe - The renderer pipe.
      Returns:
      The modified p_pipe.
    • jsonify

      public IRenderer jsonify(de.uplanet.lucy.server.renderer.IPipedRenderer p_renderer)
    • jsonify

      public IRenderer jsonify(IRenderer p_renderer)
    • createDefaultBooleanRenderer

      public IRenderer createDefaultBooleanRenderer(IRenderingContext p_ctx) throws de.uplanet.lucy.server.renderer.RendererFactoryException, de.uplanet.lucy.server.renderer.RendererException
      Specified by:
      createDefaultBooleanRenderer in interface de.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 interface de.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 interface de.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 interface de.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 interface de.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 interface de.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 interface de.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 interface de.uplanet.lucy.server.renderer.IDefaultRendererFactory
      Throws:
      de.uplanet.lucy.server.renderer.RendererFactoryException
      de.uplanet.lucy.server.renderer.RendererException