@Component(value="blContentProcessor")
@ConditionalOnTemplating
public class ContentProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
| 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() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
buildMvelParameters(javax.servlet.http.HttpServletRequest request,
Map<String,String> tagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
MVEL is used to process the content targeting rules.
|
protected String |
getAttributeValue(Map<String,String> tagAttributes,
String valueName,
String defaultValue)
Returns a default name
|
protected List<org.broadleafcommerce.common.structure.dto.StructuredContentDTO> |
getContentItems(String contentName,
Integer maxResults,
javax.servlet.http.HttpServletRequest request,
Map<String,Object> mvelParameters,
org.broadleafcommerce.common.sandbox.domain.SandBox currentSandbox,
StructuredContentType structuredContentType,
org.broadleafcommerce.common.locale.domain.Locale locale,
String tagName,
Map<String,String> tagAttributes,
Map<String,Object> newModelVars,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
String |
getName() |
int |
getPrecedence() |
boolean |
isSecure(javax.servlet.http.HttpServletRequest request) |
Map<String,Object> |
populateModelVariables(String tagName,
Map<String,String> tagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
protected 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 String getName()
public int getPrecedence()
getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessorgetPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessorprotected String getAttributeValue(Map<String,String> tagAttributes, String valueName, String defaultValue)
element - valueName - public Map<String,Object> populateModelVariables(String tagName, Map<String,String> tagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
protected List<org.broadleafcommerce.common.structure.dto.StructuredContentDTO> getContentItems(String contentName, Integer maxResults, javax.servlet.http.HttpServletRequest request, Map<String,Object> mvelParameters, org.broadleafcommerce.common.sandbox.domain.SandBox currentSandbox, StructuredContentType structuredContentType, org.broadleafcommerce.common.locale.domain.Locale locale, String tagName, Map<String,String> tagAttributes, Map<String,Object> newModelVars, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
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, Map<String,String> tagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
request - public boolean isSecure(javax.servlet.http.HttpServletRequest request)
Copyright © 2024. All rights reserved.