public class ContentProcessor extends AbstractModelVariableModifierProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
BLC_RULE_MAP_PARAM |
protected ContentDeepLinkServiceImpl |
contentDeepLinkService |
protected ContentProcessorExtensionManager |
extensionManager |
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) |
addCollectionToExistingSet, addItemToExistingSet, 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
protected ContentProcessorExtensionManager extensionManager
protected ContentDeepLinkServiceImpl contentDeepLinkService
public ContentProcessor()
public ContentProcessor(String elementName)
public int getPrecedence()
getPrecedence in class AbstractModelVariableModifierProcessorprotected 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 rulesstructuredContentType - 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 © 2015. All Rights Reserved.