Class AuthorizationServerDataInitializerAutoConfiguration.RoleConfiguration
- java.lang.Object
-
- com.broadleafcommerce.auth.data.autoconfigure.AuthorizationServerDataInitializerAutoConfiguration.RoleConfiguration
-
- Enclosing class:
- AuthorizationServerDataInitializerAutoConfiguration
@Configuration @ConditionalOnProperty(value="broadleaf.auth.data.load.default-roles", havingValue="true", matchIfMissing=true) public static class AuthorizationServerDataInitializerAutoConfiguration.RoleConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description RoleConfiguration(AuthorizationServerDataInitializerAutoConfiguration.PermissionConfiguration permissionConfiguration, com.broadleafcommerce.common.extension.TypeFactory typeFactory, RoleRepository<JpaUserRole> roleRepository, UserPermissionRepository<JpaUserPermission> userPermissionRepository, boolean shouldCreateMarketplaceRoles)
Initializes the seed data for the user roles.
-
-
-
Constructor Detail
-
RoleConfiguration
public RoleConfiguration(AuthorizationServerDataInitializerAutoConfiguration.PermissionConfiguration permissionConfiguration, com.broadleafcommerce.common.extension.TypeFactory typeFactory, RoleRepository<JpaUserRole> roleRepository, UserPermissionRepository<JpaUserPermission> userPermissionRepository, @Value("${broadleaf.auth.data.load.default-marketplace-roles:false}") boolean shouldCreateMarketplaceRoles)
Initializes the seed data for the user roles.- Parameters:
permissionConfiguration
- depends on the initialization of the PermissionConfigurationtypeFactory
- the type factoryroleRepository
- the repository for persisting rolesuserPermissionRepository
- the repository for reading permissions
-
-