Class AccessControlAutoConfiguration


  • @EnableConfigurationProperties(AccessControlProperties.class)
    @ConditionalOnBean(org.bremersee.security.access.AclFactory.class)
    @Configuration
    public class AccessControlAutoConfiguration
    extends Object
    The access control auto configuration.
    Author:
    Christian Bremer
    • Constructor Detail

      • AccessControlAutoConfiguration

        public AccessControlAutoConfiguration​(AccessControlProperties properties)
        Instantiates a new access control auto configuration.
        Parameters:
        properties - the properties
    • Method Detail

      • init

        @EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class)
        public void init()
        Init.
      • aclMapper

        @Bean
        public <T extends org.bremersee.security.access.Acl<? extends org.bremersee.security.access.Ace>> org.bremersee.security.access.AclMapper<T> aclMapper​(org.springframework.beans.factory.ObjectProvider<org.bremersee.security.access.AclFactory<T>> aclFactoryProvider)
        Creates acl mapper bean.
        Type Parameters:
        T - the acl entity type
        Parameters:
        aclFactoryProvider - the acl factory provider
        Returns:
        the acl mapper
      • aclModelMapperConfigAdapter

        @ConditionalOnClass(org.modelmapper.ModelMapper.class)
        @Bean(name="aclModelMapperConfigurerAdapter")
        @Order(-1000)
        public <T extends org.bremersee.security.access.Acl<? extends org.bremersee.security.access.Ace>> ModelMapperConfigurerAdapter aclModelMapperConfigAdapter​(org.springframework.beans.factory.ObjectProvider<org.bremersee.security.access.AclMapper<T>> aclMapperProvider)
        Creates a model mapper configurer adapter for the acl entity of the acl factory.
        Type Parameters:
        T - the acl entity type
        Parameters:
        aclMapperProvider - the acl mapper provider
        Returns:
        the model mapper configurer adapter