本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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;
}
示例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"));
}
示例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();
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例14: getAclCache
import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
* Get Acl Cache
*
* @return aclCache
*/
public AclCache getAclCache() {
return aclCache;
}
示例15: setAclCache
import org.springframework.security.acls.model.AclCache; //导入依赖的package包/类
/**
* Set Acl Cache
*
* @param aclCache
*/
public void setAclCache(AclCache aclCache) {
this.aclCache = aclCache;
}