org.broadleafcommerce.core.web.processor
Class CategoriesProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementProcessor
org.broadleafcommerce.common.web.dialect.AbstractModelVariableModifierProcessor
org.broadleafcommerce.core.web.processor.CategoriesProcessor
- All Implemented Interfaces:
- Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor
public class CategoriesProcessor
- extends AbstractModelVariableModifierProcessor
A Thymeleaf processor that will add the desired categories to the model. It does this by
searching for the parentCategory name and adding up to maxResults subcategories under
the model attribute specified by resultVar
- Author:
- apazzolini
|
Constructor Summary |
CategoriesProcessor()
Sets the name of this processor to be used in Thymeleaf template |
| Methods inherited from class org.thymeleaf.processor.element.AbstractElementProcessor |
doProcess, getMatcher |
| Methods inherited from class org.thymeleaf.processor.AbstractProcessor |
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CategoriesProcessor
public CategoriesProcessor()
- Sets the name of this processor to be used in Thymeleaf template
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor
modifyModelAttributes
protected void modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
- Specified by:
modifyModelAttributes in class AbstractModelVariableModifierProcessor
Copyright © 2013. All Rights Reserved.