Class AdminModuleProcessor

java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
org.broadleafcommerce.openadmin.processor.AdminModuleProcessor
All Implemented Interfaces:
org.broadleafcommerce.presentation.dialect.BroadleafProcessor, org.broadleafcommerce.presentation.dialect.BroadleafVariableModifierProcessor

@Component("blAdminModuleProcessor") @ConditionalOnTemplating public class AdminModuleProcessor extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
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
  • Field Details

  • Constructor Details

    • AdminModuleProcessor

      public AdminModuleProcessor()
  • Method Details

    • getName

      public String getName()
    • getPrefix

      public String getPrefix()
      Specified by:
      getPrefix in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
      Overrides:
      getPrefix in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
    • getPrecedence

      public int getPrecedence()
      Specified by:
      getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
      Overrides:
      getPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
    • populateModelVariables

      public Map<String,Object> populateModelVariables(String tagName, Map<String,String> tagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
    • getPersistentAdminUser

      protected AdminUser getPersistentAdminUser()