• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AclCache类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: MongodbAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
public MongodbAclService(AclEntryRepository aclEntryRepository,
		AclObjectIdentityRepository objectIdentityRepository,
		AclSidRepository sidRepository,
		AclClassService aclClassService,
		AclCache aclCache,
		AclAuthorizationStrategy aclAuthorizationStrategy,
		PermissionFactory permissionFactory,
		PermissionGrantingStrategy grantingStrategy) {
	super();
	this.aclEntryRepository = aclEntryRepository;
	this.objectIdentityRepository = objectIdentityRepository;
	this.sidRepository = sidRepository;
	this.aclClassService = aclClassService;
	this.aclCache = aclCache;
	this.aclAuthorizationStrategy = aclAuthorizationStrategy;
	this.permissionFactory = permissionFactory;
	this.grantingStrategy = grantingStrategy;
	
	this.fieldAces.setAccessible(true);
	this.fieldAcl.setAccessible(true);
}
 
开发者ID:AlexCzar,项目名称:spring-security-acl-mongodb,代码行数:22,代码来源:MongodbAclService.java


示例2: Neo4jLookupStrategy

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
 * Constructor
 * 
 * @param graphDatabaseService - Graph Database Service
 * @param aclCache - Acl Cache
 * @param aclAuthorizationStrategy - Acl Authorization Strategy
 * @param permissionGrantingStrategy - Permission Granting Strategy
 */
public Neo4jLookupStrategy(GraphDatabaseService graphDatabaseService,
		AclCache aclCache,
		AclAuthorizationStrategy aclAuthorizationStrategy,
		PermissionGrantingStrategy permissionGrantingStrategy) {
	Assert.notNull(aclCache, "AclCache required");
	Assert.notNull(aclAuthorizationStrategy,
			"AclAuthorizationStrategy required");
	Assert.notNull(permissionGrantingStrategy,
			"permissionGrantingStrategy required");
	this.aclCache = aclCache;
	this.aclAuthorizationStrategy = aclAuthorizationStrategy;
	this.permissionGrantingStrategy = permissionGrantingStrategy;
	this.neo4jTemplate = new Neo4jTemplate(graphDatabaseService);
	fieldAces.setAccessible(true);
	fieldAcl.setAccessible(true);
}
 
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:25,代码来源:Neo4jLookupStrategy.java


示例3: BasicLookupStrategy

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
public BasicLookupStrategy(DataSource dataSource, AclCache aclCache,
        AclAuthorizationStrategy aclAuthorizationStrategy, PermissionGrantingStrategy grantingStrategy) {
    Assert.notNull(dataSource, "DataSource required");
    Assert.notNull(aclCache, "AclCache required");
    Assert.notNull(aclAuthorizationStrategy, "AclAuthorizationStrategy required");
    Assert.notNull(grantingStrategy, "grantingStrategy required");
    jdbcTemplate = new JdbcTemplate(dataSource);
    this.aclCache = aclCache;
    this.aclAuthorizationStrategy = aclAuthorizationStrategy;
    this.grantingStrategy = grantingStrategy;
    fieldAces.setAccessible(true);
    fieldAcl.setAccessible(true);

}
 
开发者ID:GovernIB,项目名称:helium,代码行数:15,代码来源:BasicLookupStrategy.java


示例4: MongoAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
public MongoAclService(DB db, AclCache aclCache, PermissionGrantingStrategy permissionGrantingStrategy,
        AclAuthorizationStrategy aclAuthorizationStrategy) {
    this.db = db;
    this.aclCache = aclCache;
    this.permissionGrantingStrategy = permissionGrantingStrategy;
    this.aclAuthorizationStrategy = aclAuthorizationStrategy;
}
 
开发者ID:cedac-software,项目名称:spring-security-mongodb,代码行数:8,代码来源:MongoAclService.java


示例5: setUp

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);

    Mongo mongo = embeddedMongoDbRule.getDatabaseOperation().connectionManager();
    final AclCache aclCache = new SpringCacheBasedAclCache(new NoOpCacheManager().getCache("acl"), pgs, aas);
    fixture = new MongoMutableAclService(mongo, "test", aclCache, pgs, aas);
    fixture.afterPropertiesSet();

    SecurityContextHolder.getContext()
            .setAuthentication(new PreAuthenticatedAuthenticationToken("[email protected]", "password"));
}
 
开发者ID:cedac-software,项目名称:spring-security-mongodb,代码行数:13,代码来源:MongoMutableAclServiceTests.java


示例6: setUp

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);

    Mongo mongo = embeddedMongoDbRule.getDatabaseOperation().connectionManager();
    final AclCache aclCache = new SpringCacheBasedAclCache(new NoOpCacheManager().getCache("acl"), pgs, aas);
    fixture = new MongoAclService(mongo, "test", aclCache, pgs, aas);
    fixture.afterPropertiesSet();
}
 
开发者ID:cedac-software,项目名称:spring-security-mongodb,代码行数:10,代码来源:MongoAclServiceTests.java


示例7: MongodbMutableAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
public MongodbMutableAclService(AclEntryRepository aclEntryRepository,
		AclObjectIdentityRepository objectIdentityRepository,
		AclSidRepository aclSidRepository,
		AclClassService aclClassService,
		AclCache aclCache,
		AclAuthorizationStrategy aclAuthorizationStrategy,
		PermissionFactory permissionFactory,
		PermissionGrantingStrategy grantingStrategy) {
	super(aclEntryRepository, objectIdentityRepository, aclSidRepository, aclClassService,
			aclCache, aclAuthorizationStrategy,
			permissionFactory, grantingStrategy);
}
 
开发者ID:AlexCzar,项目名称:spring-security-acl-mongodb,代码行数:13,代码来源:MongodbMutableAclService.java


示例8: Neo4jAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
 * Construct
 * 
 * @param graphDatabaseService - Graph Database Service
 * @param lookupStrategy - Lookup Strategy
 * @param aclCache - Acl Cache
 */
public Neo4jAclService(GraphDatabaseService graphDatabaseService,
		LookupStrategy lookupStrategy, AclCache aclCache) {
	Assert.notNull(aclCache, "AclCache can not be null");
	Assert.notNull(lookupStrategy, "LookStrategy can not be null");
	Assert.notNull(graphDatabaseService,
			"GraphDatabaseService can not be null");
	this.neo4jTemplate = new Neo4jTemplate(graphDatabaseService);
	this.lookupStrategy = lookupStrategy;
	this.aclCache = aclCache;
}
 
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:18,代码来源:Neo4jAclService.java


示例9: CassandraAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
 * Constructs a new <code>CassandraAclService</code> object.
 * 
 * @param aclRepository the {@link CassandraAclRepository} to use for access to the database.
 * @param aclCache the {@link AclCache} to use (can be <code>null</code>).
 * @param grantingStrategy the {@link PermissionGrantingStrategy} to use when creating {@link Acl} objects.
 * @param aclAuthorizationStrategy the {@link AclAuthorizationStrategy} to use when creating {@link Acl} objects.
 * @param permissionFactory the {@link PermissionFactory} to use when creating {@link AccessControlEntry} objects.
 */
public CassandraAclService(CassandraAclRepository aclRepository, AclCache aclCache, PermissionGrantingStrategy grantingStrategy,
		AclAuthorizationStrategy aclAuthorizationStrategy, PermissionFactory permissionFactory) {
	this.aclRepository = aclRepository;
	this.aclCache = aclCache;
	this.grantingStrategy = grantingStrategy;
	this.aclAuthorizationStrategy = aclAuthorizationStrategy;
	this.permissionFactory = permissionFactory;
	this.fieldAces.setAccessible(true);
}
 
开发者ID:RigasGrigoropoulos,项目名称:spring-security-acl-cassandra,代码行数:19,代码来源:CassandraAclService.java


示例10: JdbcMutableAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
public JdbcMutableAclService(DataSource dataSource, LookupStrategy lookupStrategy, AclCache aclCache) {
    super(dataSource, lookupStrategy);
    Assert.notNull(aclCache, "AclCache required");
    this.aclCache = aclCache;
}
 
开发者ID:GovernIB,项目名称:helium,代码行数:6,代码来源:JdbcMutableAclService.java


示例11: MongoMutableAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
public MongoMutableAclService(Mongo mongo, String databaseName, AclCache aclCache,
        PermissionGrantingStrategy permissionGrantingStrategy, AclAuthorizationStrategy aclAuthorizationStrategy) {
    super(mongo, databaseName, aclCache, permissionGrantingStrategy, aclAuthorizationStrategy);
}
 
开发者ID:cedac-software,项目名称:spring-security-mongodb,代码行数:5,代码来源:MongoMutableAclService.java


示例12: AclServiceImpl

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
 *
 * @param dataSource Set the data source
 * @param lookupStrategy Set the lookup strategy
 * @param aclCache Set the acl cache
 */
public AclServiceImpl(final DataSource dataSource,
		final LookupStrategy lookupStrategy, final AclCache aclCache) {
	super(dataSource, lookupStrategy, aclCache);
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:11,代码来源:AclServiceImpl.java


示例13: Neo4jMutableAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
 * Constructor
 * 
 * @param graphDatabaseService - Graph Database Service
 * @param aclCache - Acl Cache
 * @param lookupStrategy - Lookup Strategy
 */
public Neo4jMutableAclService(GraphDatabaseService graphDatabaseService,
		AclCache aclCache, LookupStrategy lookupStrategy) {
	super(graphDatabaseService, lookupStrategy, aclCache);
}
 
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:12,代码来源:Neo4jMutableAclService.java


示例14: getAclCache

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
 * Get Acl Cache
 * 
 * @return aclCache
 */
public AclCache getAclCache() {
	return aclCache;
}
 
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:9,代码来源:Neo4jAclService.java


示例15: setAclCache

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
 * Set Acl Cache
 * 
 * @param aclCache
 */
public void setAclCache(AclCache aclCache) {
	this.aclCache = aclCache;
}
 
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:9,代码来源:Neo4jAclService.java


示例16: CassandraMutableAclService

import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
 * Constructs a new <code>CassandraMutableAclService</code> object.
 * 
 * @param aclRepository the {@link CassandraAclRepository} to use for access to the database.
 * @param aclCache the {@link AclCache} to use (can be <code>null</code>).
 * @param grantingStrategy the {@link PermissionGrantingStrategy} to use when creating {@link Acl} objects.
 * @param aclAuthorizationStrategy the {@link AclAuthorizationStrategy} to use when creating {@link Acl} objects.
 * @param permissionFactory the {@link PermissionFactory} to use when creating {@link AccessControlEntry} objects.
 */
public CassandraMutableAclService(CassandraAclRepository aclRepository, AclCache aclCache,
		PermissionGrantingStrategy grantingStrategy, AclAuthorizationStrategy aclAuthorizationStrategy, PermissionFactory permissionFactory) {
	super(aclRepository, aclCache, grantingStrategy, aclAuthorizationStrategy, permissionFactory);
}
 
开发者ID:RigasGrigoropoulos,项目名称:spring-security-acl-cassandra,代码行数:14,代码来源:CassandraMutableAclService.java



注:本文中的org.springframework.security.acls.model.AclCache类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ShaderProgramManager类代码示例发布时间:2022-05-22
下一篇:
Java JspAwareRequestContext类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap