Package com.broadleafcommerce.auth.data
Class SecurityScopeDataInitializer
- java.lang.Object
-
- com.broadleafcommerce.auth.data.SecurityScopeDataInitializer
-
- All Implemented Interfaces:
DataInitializer
public class SecurityScopeDataInitializer extends Object implements DataInitializer
- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description SecurityScopeDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, ScopeRepository scopeRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createClosedSecurityScopesIfMissing()
protected void
createCustomerUserSecurityScopeIfMissing()
protected void
createOpenSecurityScopesIfMissing()
protected void
createSecurityScopeIfMissing(String id, String name, boolean isOpen)
void
initialize()
Initialize seed data for the application.
-
-
-
Constructor Detail
-
SecurityScopeDataInitializer
public SecurityScopeDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, ScopeRepository scopeRepository)
-
-
Method Detail
-
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()
-
-