Class LinqContext
- java.lang.Object
-
- com.flowable.template.engine.impl.linq.LinqContext
-
public class LinqContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTEXT_NAMEprotected ExpressionManagerexpressionManagerprotected VariableContainervariableContainer
-
Constructor Summary
Constructors Constructor Description LinqContext(ExpressionManager expressionManager, VariableContainer variableContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasHtml(String expressionText)The 'rich text' component stores its value either as markdown or html.booleanbooleanValue(String expressionText)protected StringcleanHtmlForAspose(String html)protected byte[]convertContentItemToBytes(String contentItemId)protected byte[]convertContentItemToBytes(ContentItem contentItem)Iterableforeach(Object object)LinqIterableforeach(String expressionText)protected ContentServicegetContentService()booleanhasValue(Object obj, String key)byte[]image(String expressionText)ObjectmapValue(Object obj, String key)StringmarkdownAsHtml(String expressionText)protected ObjectresolveExpressionOrReturnDefault(String expressionText, Object defaultValue)Objectvalue(String expressionText)ObjectvalueOrDefault(String expressionText, Object defaultValue)
-
-
-
Field Detail
-
CONTEXT_NAME
public static final String CONTEXT_NAME
- See Also:
- Constant Field Values
-
expressionManager
protected ExpressionManager expressionManager
-
variableContainer
protected VariableContainer variableContainer
-
-
Constructor Detail
-
LinqContext
public LinqContext(ExpressionManager expressionManager, VariableContainer variableContainer)
-
-
Method Detail
-
booleanValue
public boolean booleanValue(String expressionText)
-
foreach
public LinqIterable foreach(String expressionText)
-
image
public byte[] image(String expressionText)
-
asHtml
public String asHtml(String expressionText)
The 'rich text' component stores its value either as markdown or html. When stored as markdown, it's possible to transform this to html using the 'markdownToHtml function'. When stored as html, the html won't be 100% perfect for using in Aspose with a Word template. Calling this method will change the html that is incompatible with using it in such a template. Note that it's always possible to get the 'raw html' by simply calling thevalue(String)method like any other component.
-
convertContentItemToBytes
protected byte[] convertContentItemToBytes(ContentItem contentItem)
-
convertContentItemToBytes
protected byte[] convertContentItemToBytes(String contentItemId)
-
resolveExpressionOrReturnDefault
protected Object resolveExpressionOrReturnDefault(String expressionText, Object defaultValue)
-
getContentService
protected ContentService getContentService()
-
-