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 Summary
FieldsFields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
getCollectionModelVariableNamesToAddTo, useGlobalScope
-
Field Details
-
securityService
-
Constructor Details
-
AdminModuleProcessor
public AdminModuleProcessor()
-
-
Method Details
-
getName
-
getPrefix
- Specified by:
getPrefixin interfaceorg.broadleafcommerce.presentation.dialect.BroadleafProcessor- Overrides:
getPrefixin classorg.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceorg.broadleafcommerce.presentation.dialect.BroadleafProcessor- Overrides:
getPrecedencein classorg.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
-
populateModelVariables
-
getPersistentAdminUser
-