com.evolveum.midpoint.repo.api.RepositoryService.selectorMatches()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(58)

本文整理了Java中com.evolveum.midpoint.repo.api.RepositoryService.selectorMatches方法的一些代码示例,展示了RepositoryService.selectorMatches的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RepositoryService.selectorMatches方法的具体详情如下:
包路径:com.evolveum.midpoint.repo.api.RepositoryService
类名称:RepositoryService
方法名:selectorMatches

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")) {

相关文章

微信公众号

最新文章

更多