本文整理汇总了Java中org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler.setPermissionEvaluator方法的典型用法代码示例。如果您正苦于以下问题:Java DefaultMethodSecurityExpressionHandler.setPermissionEvaluator方法的具体用法?Java DefaultMethodSecurityExpressionHandler.setPermissionEvaluator怎么用?Java DefaultMethodSecurityExpressionHandler.setPermissionEvaluator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
的用法示例。
在下文中一共展示了DefaultMethodSecurityExpressionHandler.setPermissionEvaluator方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: expressionHandler
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; //导入方法依赖的package包/类
@Bean
public DefaultMethodSecurityExpressionHandler expressionHandler(){
DefaultMethodSecurityExpressionHandler dmseh = new DefaultMethodSecurityExpressionHandler();
dmseh.setPermissionEvaluator(permissionEvaluator());
dmseh.setPermissionCacheOptimizer(permissionCacheOptimizer());
return dmseh;
}
示例2: defaultExpressionHandler
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; //导入方法依赖的package包/类
@Description("DefaultMethodSecurityExpressionHandler")
@Bean
public DefaultMethodSecurityExpressionHandler defaultExpressionHandler(EventDao eventDao){
DefaultMethodSecurityExpressionHandler deh = new DefaultMethodSecurityExpressionHandler();
deh.setPermissionEvaluator(
new CalendarPermissionEvaluator(eventDao));
return deh;
}
示例3: createExpressionHandler
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; //导入方法依赖的package包/类
@Override
protected MethodSecurityExpressionHandler createExpressionHandler() {
DefaultMethodSecurityExpressionHandler expressionHandler =
new DefaultMethodSecurityExpressionHandler();
expressionHandler.setPermissionEvaluator(platformPermissionEvaluator);
return expressionHandler;
}
示例4: createExpressionHandler
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; //导入方法依赖的package包/类
@Override
protected MethodSecurityExpressionHandler createExpressionHandler() {
final DefaultMethodSecurityExpressionHandler expressionHandler =
new DefaultMethodSecurityExpressionHandler();
expressionHandler.setPermissionEvaluator(permissionEvaluator);
expressionHandler.setApplicationContext(applicationContext);
return expressionHandler;
}
示例5: createExpressionHandler
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; //导入方法依赖的package包/类
@Override
protected MethodSecurityExpressionHandler createExpressionHandler() {
DefaultMethodSecurityExpressionHandler expressionHandler = new DefaultMethodSecurityExpressionHandler();
expressionHandler.setPermissionEvaluator(permissionEvaluatorService());
return expressionHandler;
}
示例6: getExpressionHandler
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; //导入方法依赖的package包/类
@Bean
public DefaultMethodSecurityExpressionHandler getExpressionHandler() {
DefaultMethodSecurityExpressionHandler handler = new DefaultMethodSecurityExpressionHandler();
handler.setPermissionEvaluator(getPermissionEvaluator());
return handler;
}
示例7: createExpressionHandler
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; //导入方法依赖的package包/类
@Override
protected MethodSecurityExpressionHandler createExpressionHandler() {
DefaultMethodSecurityExpressionHandler result = new DefaultMethodSecurityExpressionHandler();
result.setPermissionEvaluator(permissionEvaluator);
return result;
}
示例8: createExpressionHandler
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; //导入方法依赖的package包/类
@Override
protected MethodSecurityExpressionHandler createExpressionHandler() {
DefaultMethodSecurityExpressionHandler expressionHandler = new DefaultMethodSecurityExpressionHandler();
expressionHandler.setPermissionEvaluator(new AclPermissionEvaluator(aclService()));
return expressionHandler;
}