本文整理汇总了Java中org.springframework.security.acls.model.PermissionGrantingStrategy类的典型用法代码示例。如果您正苦于以下问题:Java PermissionGrantingStrategy类的具体用法?Java PermissionGrantingStrategy怎么用?Java PermissionGrantingStrategy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PermissionGrantingStrategy类属于org.springframework.security.acls.model包,在下文中一共展示了PermissionGrantingStrategy类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MongodbAclService
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的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.PermissionGrantingStrategy; //导入依赖的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.PermissionGrantingStrategy; //导入依赖的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: configurableAclService
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
@Bean
ConfigurableAclService configurableAclService(PermissionGrantingStrategy permissionGrantingStrategy) {
ConfigurableAclService.Builder b = ConfigurableAclService.builder();
if(configurers != null) {
for(AclServiceConfigurer configurer: configurers) {
configurer.configure(b);
}
}
return b.permissionGrantingStrategy(permissionGrantingStrategy).build();
}
示例5: providersAclService
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
@Primary
@Bean
AclService providersAclService(PermissionGrantingStrategy permissionGrantingStrategy) {
ProvidersAclService service = new ProvidersAclService(permissionGrantingStrategy);
if(providers != null) {
service.getProviders().putAll(providers);
}
return service;
}
示例6: MongoAclService
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
public MongoAclService(DB db, AclCache aclCache, PermissionGrantingStrategy permissionGrantingStrategy,
AclAuthorizationStrategy aclAuthorizationStrategy) {
this.db = db;
this.aclCache = aclCache;
this.permissionGrantingStrategy = permissionGrantingStrategy;
this.aclAuthorizationStrategy = aclAuthorizationStrategy;
}
示例7: MongodbMutableAclService
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的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: CassandraAclService
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的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);
}
示例9: permissionGrantingStrategy
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
@Bean
public PermissionGrantingStrategy permissionGrantingStrategy(){
return new DefaultPermissionGrantingStrategy(consoleAuditLogger());
}
示例10: MongoMutableAclService
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
public MongoMutableAclService(Mongo mongo, String databaseName, AclCache aclCache,
PermissionGrantingStrategy permissionGrantingStrategy, AclAuthorizationStrategy aclAuthorizationStrategy) {
super(mongo, databaseName, aclCache, permissionGrantingStrategy, aclAuthorizationStrategy);
}
示例11: permissionGrantingStrategy
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
@Bean
public PermissionGrantingStrategy permissionGrantingStrategy() {
return new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger());
}
示例12: getPermissionGrantingStrategy
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
/**
* Get Permission Granting Strategy
*
* @return permissionGrantingStrategy
*/
public PermissionGrantingStrategy getPermissionGrantingStrategy() {
return permissionGrantingStrategy;
}
示例13: setPermissionGrantingStrategy
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
/**
* Set Permission Granting Strategy
*
* @param permissionGrantingStrategy
*/
public void setPermissionGrantingStrategy(
PermissionGrantingStrategy permissionGrantingStrategy) {
this.permissionGrantingStrategy = permissionGrantingStrategy;
}
示例14: CassandraMutableAclService
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的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