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
ConstructorDescriptionRoleConfiguration
(AuthorizationServerDataInitializerAutoConfiguration.PermissionConfiguration permissionConfiguration, com.broadleafcommerce.common.extension.TypeFactory typeFactory, RoleRepository<JpaUserRole> roleRepository, UserPermissionRepository<JpaUserPermission> userPermissionRepository, boolean shouldCreateMarketplaceRoles, boolean alwaysUpdateRoles) Initializes the seed data for the user roles. -
Method Summary
-
Constructor Details
-
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, @Value("${broadleaf.auth.data.load.always-update-roles:false}") boolean alwaysUpdateRoles) 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
-