Package com.broadleafcommerce.auth.data
Class SecurityScopeDataInitializer
java.lang.Object
com.broadleafcommerce.auth.data.SecurityScopeDataInitializer
- All Implemented Interfaces:
DataInitializer
- Author:
- Nick Crum (ncrum)
-
Constructor Summary
ConstructorDescriptionSecurityScopeDataInitializer
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, ScopeRepository scopeRepository) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
createSecurityScopeIfMissing
(String id, String name, boolean isOpen) void
Initialize seed data for the application.
-
Constructor Details
-
SecurityScopeDataInitializer
public SecurityScopeDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, ScopeRepository scopeRepository)
-
-
Method Details
-
initialize
@Transactional public void initialize()Description copied from interface:DataInitializer
Initialize seed data for the application.- Specified by:
initialize
in interfaceDataInitializer
-
createOpenSecurityScopesIfMissing
protected void createOpenSecurityScopesIfMissing() -
createClosedSecurityScopesIfMissing
protected void createClosedSecurityScopesIfMissing() -
createCustomerUserSecurityScopeIfMissing
protected void createCustomerUserSecurityScopeIfMissing() -
createSecurityScopeIfMissing
-