Interface BroadleafVariableModifierProcessor
- All Superinterfaces:
BroadleafProcessor
- All Known Implementing Classes:
AbstractBroadleafVariableModifierProcessor
Deprecated.
Tag processor that modifies the the global variable model if
useGlobalScope() is false and local if it's true- Author:
- Jay Aisenbrey (cja769)
-
Field Summary
Fields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.populateModelVariables(String tagName, Map<String, String> tagAttributes, BroadleafTemplateContext context) Deprecated.booleanDeprecated.Methods inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
getName, getPrecedence, getPrefix
-
Method Details
-
useGlobalScope
boolean useGlobalScope()Deprecated.- Returns:
- true if the newModelVars should be added to the global scope (not recommended) or false if they should be added to local scope for this tag
-
getCollectionModelVariableNamesToAddTo
Deprecated.- Returns:
- The list of variables on the model that, if they exist, should have additional values added to the existing list instead of replacing their values
-
populateModelVariables
Map<String,Object> populateModelVariables(String tagName, Map<String, String> tagAttributes, BroadleafTemplateContext context) Deprecated.- Parameters:
tagName- The name of the tag the event was triggered ontagAttributes- A map of String to String of all of the attributes on the tagcontext- TheBroadleafTemplateContextthat should be used to perform operations on the tag with- Returns:
- the new mode variables that should be added from the tag. The variables are added to local or global scope based on the result of
useGlobalScope()
-
org.broadleafcommerce.common.web.expression.BraodleafVariableExpressionin combination withth:withif using Thymeleaf