org.broadleafcommerce.openadmin.web.processor
Class AdminModuleProcessor

java.lang.Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.element.AbstractElementProcessor
          extended by org.broadleafcommerce.common.web.dialect.AbstractModelVariableModifierProcessor
              extended by 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
 
Method Summary
protected  AdminUser getPersistentAdminUser()
           
 int getPrecedence()
           
protected  void initServices(org.thymeleaf.Arguments arguments)
           
protected  void modifyModelAttributes(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
           
 
Methods inherited from class org.broadleafcommerce.common.web.dialect.AbstractModelVariableModifierProcessor
addToModel, processElement
 
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
 

Constructor Detail

AdminModuleProcessor

public AdminModuleProcessor()
Sets the name of this processor to be used in Thymeleaf template

Method Detail

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.