当前位置: 首页>>代码示例>>Java>>正文


Java AclCache类代码示例

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


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


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