Class AccessControlAutoConfiguration

    • 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 Acl<? extends Ace>> AclMapper<T> aclMapper​(org.springframework.beans.factory.ObjectProvider<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 Acl<? extends Ace>> ModelMapperConfigurerAdapter aclModelMapperConfigAdapter​(org.springframework.beans.factory.ObjectProvider<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