Package com.broadleafcommerce.auth.data
Class PermissionScopeDataInitializer
- java.lang.Object
-
- com.broadleafcommerce.auth.data.PermissionScopeDataInitializer
-
- All Implemented Interfaces:
DataInitializer
public class PermissionScopeDataInitializer extends Object implements DataInitializer
- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description PermissionScopeDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, PermissionRepository permissionScopeRepository, ScopeRepository scopeRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createCustomerUserPermissionScopesIfMissing()
protected void
createPermissionScopeIfMissing(String id, String scopeId, String permission, boolean permissionRoot)
protected void
createPermissionScopesIfMissing()
void
initialize()
Initialize seed data for the application.protected void
removePermissionScopeIfAvailable(String id, String scopeId, boolean permissionRoot)
-
-
-
Constructor Detail
-
PermissionScopeDataInitializer
public PermissionScopeDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory, PermissionRepository permissionScopeRepository, 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
-
createPermissionScopesIfMissing
protected void createPermissionScopesIfMissing()
-
createCustomerUserPermissionScopesIfMissing
protected void createCustomerUserPermissionScopesIfMissing()
-
removePermissionScopeIfAvailable
protected void removePermissionScopeIfAvailable(String id, String scopeId, boolean permissionRoot)
-
-