Package org.bremersee.security.access
Class AccessControlAutoConfiguration
- java.lang.Object
-
- org.bremersee.security.access.AccessControlAutoConfiguration
-
@EnableConfigurationProperties(AccessControlProperties.class) @ConditionalOnBean(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 Acl<? extends Ace>>
AclMapper<T>aclMapper(org.springframework.beans.factory.ObjectProvider<AclFactory<T>> aclFactoryProvider)
Creates acl mapper bean.<T extends Acl<? extends Ace>>
ModelMapperConfigurerAdapteraclModelMapperConfigAdapter(org.springframework.beans.factory.ObjectProvider<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 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
-
-