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