本文整理汇总了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);
}
开发者ID:AlexCzar,项目名称:spring-security-acl-mongodb,代码行数:22,代码来源:MongodbAclService.java
示例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);
}
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:25,代码来源:Neo4jLookupStrategy.java
示例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);
}
开发者ID:GovernIB,项目名称:helium,代码行数:15,代码来源:BasicLookupStrategy.java
示例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();
}
开发者ID:codeabovelab,项目名称:haven-platform,代码行数:11,代码来源:SecurityConfiguration.java
示例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;
}
开发者ID:codeabovelab,项目名称:haven-platform,代码行数:10,代码来源:SecurityConfiguration.java
示例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;
}
开发者ID:cedac-software,项目名称:spring-security-mongodb,代码行数:8,代码来源:MongoAclService.java
示例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);
}
开发者ID:AlexCzar,项目名称:spring-security-acl-mongodb,代码行数:13,代码来源:MongodbMutableAclService.java
示例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);
}
开发者ID:RigasGrigoropoulos,项目名称:spring-security-acl-cassandra,代码行数:19,代码来源:CassandraAclService.java
示例9: permissionGrantingStrategy
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
@Bean
public PermissionGrantingStrategy permissionGrantingStrategy(){
return new DefaultPermissionGrantingStrategy(consoleAuditLogger());
}
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:5,代码来源:AclConfig.java
示例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);
}
开发者ID:cedac-software,项目名称:spring-security-mongodb,代码行数:5,代码来源:MongoMutableAclService.java
示例11: permissionGrantingStrategy
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
@Bean
public PermissionGrantingStrategy permissionGrantingStrategy() {
return new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger());
}
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:5,代码来源:AppTestConfig.java
示例12: getPermissionGrantingStrategy
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
/**
* Get Permission Granting Strategy
*
* @return permissionGrantingStrategy
*/
public PermissionGrantingStrategy getPermissionGrantingStrategy() {
return permissionGrantingStrategy;
}
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:9,代码来源:Neo4jLookupStrategy.java
示例13: setPermissionGrantingStrategy
import org.springframework.security.acls.model.PermissionGrantingStrategy; //导入依赖的package包/类
/**
* Set Permission Granting Strategy
*
* @param permissionGrantingStrategy
*/
public void setPermissionGrantingStrategy(
PermissionGrantingStrategy permissionGrantingStrategy) {
this.permissionGrantingStrategy = permissionGrantingStrategy;
}
开发者ID:shazin,项目名称:spring-security-acl-neo4j,代码行数:10,代码来源:Neo4jLookupStrategy.java
示例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
注:本文中的org.springframework.security.acls.model.PermissionGrantingStrategy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论