@Component(value="blContentProcessor") public class ContentProcessor extends AbstractModelVariableModifierProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
BLC_RULE_MAP_PARAM |
protected org.apache.commons.logging.Log |
LOG |
static String |
REQUEST_DTO |
protected StaticAssetService |
staticAssetService |
protected StructuredContentService |
structuredContentService |
| Constructor and Description |
|---|
ContentProcessor()
Sets the name of this processor to be used in Thymeleaf template
|
ContentProcessor(String elementName) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
buildMvelParameters(javax.servlet.http.HttpServletRequest request,
org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
MVEL is used to process the content targeting rules.
|
protected String |
getAttributeValue(org.thymeleaf.dom.Element element,
String valueName,
String defaultValue)
Returns a default name
|
protected List<StructuredContentDTO> |
getContentItems(String contentName,
Integer maxResults,
javax.servlet.http.HttpServletRequest request,
Map<String,Object> mvelParameters,
SandBox currentSandbox,
StructuredContentType structuredContentType,
Locale locale,
org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element) |
int |
getPrecedence() |
boolean |
isSecure(javax.servlet.http.HttpServletRequest request) |
protected void |
modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element) |
addToModel, processElementdoProcess, getMatcherprotected final org.apache.commons.logging.Log LOG
public static final String REQUEST_DTO
public static final String BLC_RULE_MAP_PARAM
protected StructuredContentService structuredContentService
protected StaticAssetService staticAssetService
public ContentProcessor()
public ContentProcessor(String elementName)
public int getPrecedence()
getPrecedence in class org.thymeleaf.processor.AbstractProcessorprotected String getAttributeValue(org.thymeleaf.dom.Element element, String valueName, String defaultValue)
element - valueName - protected void modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
modifyModelAttributes in class AbstractModelVariableModifierProcessorprotected List<StructuredContentDTO> getContentItems(String contentName, Integer maxResults, javax.servlet.http.HttpServletRequest request, Map<String,Object> mvelParameters, SandBox currentSandbox, StructuredContentType structuredContentType, Locale locale, org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
contentName - name of the content to be looked up (can be null)maxResults - maximum results to returnrequest - servlet requestmvelParameters - values that should be considered when filtering the content list by rulescurrentSandbox - current sandbox being usedstructuredContentType - the type of content that should be returnedlocale - current localearguments - Thymeleaf Arguments passed into the tagelement - element context that this Thymeleaf processor is being executed inprotected Map<String,Object> buildMvelParameters(javax.servlet.http.HttpServletRequest request, org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
request - public boolean isSecure(javax.servlet.http.HttpServletRequest request)
Copyright © 2013. All Rights Reserved.