Class 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 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 PermissionConfiguration
        typeFactory - the type factory
        roleRepository - the repository for persisting roles
        userPermissionRepository - the repository for reading permissions