org.broadleafcommerce.openadmin.web.processor
Class AdminModuleProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementProcessor
org.broadleafcommerce.common.web.dialect.AbstractModelVariableModifierProcessor
org.broadleafcommerce.openadmin.web.processor.AdminModuleProcessor
- All Implemented Interfaces:
- Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor
@Component(value="blAdminModuleProcessor")
public class AdminModuleProcessor
- extends AbstractModelVariableModifierProcessor
A Thymeleaf processor that will add the appropriate AdminModules to the model. It does this by
iterating through the permissions specified in the SecurityContexts AdminUser object and adding the
appropriate section to the model attribute specified by resultVar
This is useful in constructing the left navigation menu for the admin console.
- Author:
- elbertbautista
|
Constructor Summary |
AdminModuleProcessor()
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 |
AdminModuleProcessor
public AdminModuleProcessor()
- 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
initServices
protected void initServices(org.thymeleaf.Arguments arguments)
getPersistentAdminUser
protected AdminUser getPersistentAdminUser()
Copyright © 2013. All Rights Reserved.