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 String
CONTEXT_NAME
protected ExpressionManager
expressionManager
protected VariableContainer
variableContainer
-
Constructor Summary
Constructors Constructor Description LinqContext(ExpressionManager expressionManager, VariableContainer variableContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asHtml(String expressionText)
The 'rich text' component stores its value either as markdown or html.boolean
booleanValue(String expressionText)
protected String
cleanHtmlForAspose(String html)
protected byte[]
convertContentItemToBytes(String contentItemId)
protected byte[]
convertContentItemToBytes(ContentItem contentItem)
Iterable
foreach(Object object)
LinqIterable
foreach(String expressionText)
protected ContentService
getContentService()
boolean
hasValue(Object obj, String key)
byte[]
image(String expressionText)
Object
mapValue(Object obj, String key)
String
markdownAsHtml(String expressionText)
protected Object
resolveExpressionOrReturnDefault(String expressionText, Object defaultValue)
Object
value(String expressionText)
Object
valueOrDefault(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()
-
-