public class LinqContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_NAME |
protected ExpressionManager |
expressionManager |
protected VariableContainer |
variableContainer |
Constructor and Description |
---|
LinqContext(ExpressionManager expressionManager,
VariableContainer variableContainer) |
Modifier and Type | Method and 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(ContentItem contentItem) |
protected byte[] |
convertContentItemToBytes(String contentItemId) |
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) |
public static final String CONTEXT_NAME
protected ExpressionManager expressionManager
protected VariableContainer variableContainer
public LinqContext(ExpressionManager expressionManager, VariableContainer variableContainer)
public boolean booleanValue(String expressionText)
public LinqIterable foreach(String expressionText)
public byte[] image(String expressionText)
public String asHtml(String expressionText)
value(String)
method like any other component.protected byte[] convertContentItemToBytes(ContentItem contentItem)
protected byte[] convertContentItemToBytes(String contentItemId)
protected Object resolveExpressionOrReturnDefault(String expressionText, Object defaultValue)
protected ContentService getContentService()