Package org.bremersee.security.access
Class AccessControlAutoConfiguration
- java.lang.Object
-
- org.bremersee.security.access.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 Summary
Constructors Constructor Description AccessControlAutoConfiguration(AccessControlProperties properties)
Instantiates a new access control auto configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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.<T extends org.bremersee.security.access.Acl<? extends org.bremersee.security.access.Ace>>
ModelMapperConfigurerAdapteraclModelMapperConfigAdapter(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.void
init()
Init.
-
-
-
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
-
-