本文整理了Java中com.evolveum.midpoint.repo.api.RepositoryService.selectorMatches
方法的一些代码示例,展示了RepositoryService.selectorMatches
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RepositoryService.selectorMatches
方法的具体详情如下:
包路径:com.evolveum.midpoint.repo.api.RepositoryService
类名称:RepositoryService
方法名:selectorMatches
暂无
代码示例来源:origin: Evolveum/midpoint
@Override
public <O extends ObjectType> boolean selectorMatches(ObjectSelectorType objectSelector,
PrismObject<O> object, ObjectFilterExpressionEvaluator filterEvaluator, Trace logger, String logMessagePrefix) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException {
Long startTime = repoOpStart();
try {
return repositoryService.selectorMatches(objectSelector, object, filterEvaluator, logger, logMessagePrefix);
} finally {
repoOpEnd(startTime);
}
}
代码示例来源:origin: Evolveum/midpoint
for (GlobalPolicyRuleType globalPolicyRule: globalPolicyRuleList) {
ObjectSelectorType focusSelector = globalPolicyRule.getFocusSelector();
if (repositoryService.selectorMatches(focusSelector, focus, null, LOGGER, "Global policy rule "+globalPolicyRule.getName()+": ")) {
if (isRuleConditionTrue(globalPolicyRule, focus, null, context, task, result)) {
rules.add(new EvaluatedPolicyRuleImpl(globalPolicyRule, null, prismContext));
代码示例来源:origin: Evolveum/midpoint
for (GlobalPolicyRuleType globalPolicyRule: globalPolicyRuleList) {
ObjectSelectorType focusSelector = globalPolicyRule.getFocusSelector();
if (!repositoryService.selectorMatches(focusSelector, focus, null, LOGGER,
"Global policy rule "+globalPolicyRule.getName()+" focus selector: ")) {
LOGGER.trace("Skipping global policy rule {} because focus selector did not match: {}", globalPolicyRule.getName(), globalPolicyRule);
if (!repositoryService.selectorMatches(globalPolicyRule.getTargetSelector(),
target.getTarget(), null, LOGGER, "Global policy rule "+globalPolicyRule.getName()+" target selector: ")) {
LOGGER.trace("Skipping global policy rule {} because target selector did not match: {}", globalPolicyRule.getName(), globalPolicyRule);
代码示例来源:origin: Evolveum/midpoint
private <O extends ObjectType> boolean isApplicable(SubjectedObjectSelectorType objectSelector, PrismObject<O> object,
MidPointPrincipal principal, OwnerResolver ownerResolver, String desc, String autzHumanReadableDesc, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException {
ObjectFilterExpressionEvaluator filterExpressionEvaluator = createFilterEvaluator(principal, desc, autzHumanReadableDesc, task, result);
if (!repositoryService.selectorMatches(objectSelector, object, filterExpressionEvaluator, LOGGER, " " + autzHumanReadableDesc + " not applicable for " + desc + " because of")) {
内容来源于网络,如有侵权,请联系作者删除!