Search in sources :

Example 1 with DefaultPermissionFactory

use of org.springframework.security.acls.domain.DefaultPermissionFactory in project spring-security by spring-projects.

the class AbstractBasicLookupStrategyTests method initializeBeans.

@BeforeEach
public void initializeBeans() {
    this.strategy = new BasicLookupStrategy(getDataSource(), aclCache(), aclAuthStrategy(), new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger()));
    this.strategy.setPermissionFactory(new DefaultPermissionFactory());
}
Also used : DefaultPermissionGrantingStrategy(org.springframework.security.acls.domain.DefaultPermissionGrantingStrategy) DefaultPermissionFactory(org.springframework.security.acls.domain.DefaultPermissionFactory) ConsoleAuditLogger(org.springframework.security.acls.domain.ConsoleAuditLogger) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with DefaultPermissionFactory

use of org.springframework.security.acls.domain.DefaultPermissionFactory in project spring-security by spring-projects.

the class BasicLookupStrategyWithAclClassTypeTests method initializeBeans.

@Override
@BeforeEach
public void initializeBeans() {
    super.initializeBeans();
    this.uuidEnabledStrategy = new BasicLookupStrategy(getDataSource(), aclCache(), aclAuthStrategy(), new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger()));
    this.uuidEnabledStrategy.setPermissionFactory(new DefaultPermissionFactory());
    this.uuidEnabledStrategy.setAclClassIdSupported(true);
    this.uuidEnabledStrategy.setConversionService(new DefaultConversionService());
}
Also used : DefaultPermissionGrantingStrategy(org.springframework.security.acls.domain.DefaultPermissionGrantingStrategy) DefaultPermissionFactory(org.springframework.security.acls.domain.DefaultPermissionFactory) ConsoleAuditLogger(org.springframework.security.acls.domain.ConsoleAuditLogger) DefaultConversionService(org.springframework.core.convert.support.DefaultConversionService) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)2 ConsoleAuditLogger (org.springframework.security.acls.domain.ConsoleAuditLogger)2 DefaultPermissionFactory (org.springframework.security.acls.domain.DefaultPermissionFactory)2 DefaultPermissionGrantingStrategy (org.springframework.security.acls.domain.DefaultPermissionGrantingStrategy)2 DefaultConversionService (org.springframework.core.convert.support.DefaultConversionService)1