com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType.getHandlerUri()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(75)

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

AccessCertificationCampaignType.getHandlerUri介绍

暂无

代码示例

代码示例来源:origin: Evolveum/midpoint

CertificationHandler findCertificationHandler(AccessCertificationCampaignType campaign) {
  if (StringUtils.isBlank(campaign.getHandlerUri())) {
    throw new IllegalArgumentException("No handler URI for access certification campaign " + ObjectTypeUtil.toShortString(campaign));
  }
  CertificationHandler handler = registeredHandlers.get(campaign.getHandlerUri());
  if (handler == null) {
    throw new IllegalStateException("No handler for URI " + campaign.getHandlerUri());
  }
  return handler;
}

代码示例来源:origin: Evolveum/midpoint

public static void copyFromJAXB(AccessCertificationCampaignType jaxb, RAccessCertificationCampaign repo,
      RepositoryContext repositoryContext, IdGeneratorResult generatorResult)
      throws DtoTranslationException {

    copyAssignmentHolderInformationFromJAXB(jaxb, repo, repositoryContext, generatorResult);
    repo.setNameCopy(RPolyString.copyFromJAXB(jaxb.getName()));
    repo.setDefinitionRef(RUtil.jaxbRefToEmbeddedRepoRef(jaxb.getDefinitionRef(), repositoryContext.relationRegistry));

    List<AccessCertificationCaseType> cases = jaxb.getCase();
    if (!cases.isEmpty()) {
      for (AccessCertificationCaseType case1 : cases) {
        RAccessCertificationCase rCase = RAccessCertificationCase.toRepo(repo, case1, repositoryContext);
        rCase.setTransient(generatorResult.isTransient(case1.asPrismContainerValue()));     // redundant?
        repo.getCase().add(rCase);
      }
    }

    repo.setOwnerRefCampaign(RUtil.jaxbRefToEmbeddedRepoRef(jaxb.getOwnerRef(), repositoryContext.relationRegistry));
    repo.setHandlerUri(jaxb.getHandlerUri());
    repo.setStart(jaxb.getStartTimestamp());
    repo.setEnd(jaxb.getEndTimestamp());
    repo.setState(RUtil.getRepoEnumValue(jaxb.getState(), RAccessCertificationCampaignState.class));
    repo.setIteration(norm(jaxb.getIteration()));
    repo.setStageNumber(jaxb.getStageNumber());
  }
}

相关文章

微信公众号

最新文章

更多