• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ConsoleAuditLogger类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.springframework.security.acls.domain.ConsoleAuditLogger的典型用法代码示例。如果您正苦于以下问题:Java ConsoleAuditLogger类的具体用法?Java ConsoleAuditLogger怎么用?Java ConsoleAuditLogger使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ConsoleAuditLogger类属于org.springframework.security.acls.domain包,在下文中一共展示了ConsoleAuditLogger类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initBeans

点赞 3

import org.springframework.security.acls.domain.ConsoleAuditLogger; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Before
public void initBeans() {
       AclAuthorizationStrategy authorizationStrategy = new AclAuthorizationStrategyImpl(
       		new SimpleGrantedAuthority("ROLE_ADMINISTRATOR"),
       		new SimpleGrantedAuthority("ROLE_ADMINISTRATOR"),
       		new SimpleGrantedAuthority("ROLE_ADMINISTRATOR")
       		);
       cache = new EhCacheBasedAclCache(getCache());
       mongodbMutableAclService = new MongodbMutableAclService(
			aclEntryRepository, 
			objectIdentityRepository, 
			aclSidRepository,
			new SimpleCacheAclClassService(aclClassRepository), 
			cache, 
			authorizationStrategy, 
			new DefaultPermissionFactory(), 
			new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger()));
	seedMongodbData();
}
 

开发者ID:AlexCzar,
项目名称:spring-security-acl-mongodb,
代码行数:21,
代码来源:MongodbMutableAclServiceTest.java

示例2: initBeans

点赞 3

import org.springframework.security.acls.domain.ConsoleAuditLogger; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Before
public void initBeans() {
       AclAuthorizationStrategy authorizationStrategy = new AclAuthorizationStrategyImpl(new SimpleGrantedAuthority("ROLE_ADMINISTRATOR"));
       EhCacheBasedAclCache cache = new EhCacheBasedAclCache(getCache());
	mongodbAclService = new MongodbAclService(
			aclEntryRepository, 
			objectIdentityRepository, 
			aclSidRepository,
			new SimpleCacheAclClassService(aclClassRepository), 
			cache, 
			authorizationStrategy, 
			new DefaultPermissionFactory(), 
			new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger()));
	seedMongodbData();
}
 

开发者ID:AlexCzar,
项目名称:spring-security-acl-mongodb,
代码行数:17,
代码来源:MongodbAclServiceTest.java

示例3: lookupStrategy

点赞 2

import org.springframework.security.acls.domain.ConsoleAuditLogger; //导入依赖的package包/类
@Bean
LookupStrategy lookupStrategy() {
    return new BasicLookupStrategy(dataSource, aclCache(),  aclAuthorizationStrategy(), new ConsoleAuditLogger());
}
 

开发者ID:abixen,
项目名称:abixen-platform,
代码行数:5,
代码来源:PlatformAclConfiguration.java

示例4: lookupStrategy

点赞 2

import org.springframework.security.acls.domain.ConsoleAuditLogger; //导入依赖的package包/类
@Bean
public BasicLookupStrategy lookupStrategy() {
    return new BasicLookupStrategy(dataSource, aclCache, grantingStrategy(), new ConsoleAuditLogger());
}
 

开发者ID:fingerprints,
项目名称:spring-profile,
代码行数:5,
代码来源:ACLStrategyConfig.java

示例5: permissionGrantingStrategy

点赞 2

import org.springframework.security.acls.domain.ConsoleAuditLogger; //导入依赖的package包/类
@Bean
public PermissionGrantingStrategy permissionGrantingStrategy() {
	return new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger());
}
 

开发者ID:shazin,
项目名称:spring-security-acl-neo4j,
代码行数:5,
代码来源:AppTestConfig.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)