@Component(value="blContentProcessor") @ConditionalOnTemplating public class ContentProcessor extends Object implements ContentExpression
| Modifier and Type | Field and Description |
|---|---|
protected ContentDeepLinkServiceImpl |
contentDeepLinkService |
protected ContentProcessorExtensionManager |
extensionManager |
protected org.apache.commons.logging.Log |
LOG |
protected StaticAssetService |
staticAssetService |
protected StructuredContentService |
structuredContentService |
BLC_RULE_MAP_PARAM, REQUEST_DTO| 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
protected StructuredContentService structuredContentService
protected StaticAssetService staticAssetService
protected ContentProcessorExtensionManager extensionManager
protected ContentDeepLinkServiceImpl contentDeepLinkService
public String getName()
getName in interface ContentExpressionpublic int getPrecedence()
getPrecedence in interface ContentExpressionprotected 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)
populateModelVariables in interface ContentExpressionprotected 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)
isSecure in interface ContentExpressionCopyright © 2023. All rights reserved.