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

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

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

RepositoryService.postInit介绍

暂无

代码示例

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

@Override
public void postInit(OperationResult result) throws SchemaException {
  repositoryService.postInit(result);
}

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

@Override
public void postInit(OperationResult parentResult) {
  systemObjectCache.invalidateCaches(); // necessary for testing situations where we re-import different system configurations with the same version (on system init)
  enterModelMethod();
  OperationResult result = parentResult.createSubresult(POST_INIT);
  result.addContext(OperationResult.CONTEXT_IMPLEMENTATION_CLASS, ModelController.class);
  try {
    // Repository service itself might have been initialized.
    // But there are situations (e.g. in tests or after factory reset) in which only this method is called.
    // So let's be conservative and rather execute repository postInit twice than zero times.
    cacheRepositoryService.postInit(result);
  } catch (SchemaException e) {
    result.recordFatalError(e);
    throw new SystemException(e.getMessage(), e);
  }
  
  securityContextManager.setUserProfileService(userProfileService);
  taskManager.postInit(result);
  // Initialize provisioning
  provisioning.postInit(result);
  if (result.isUnknown()) {
    result.computeStatus();
  }
  exitModelMethod();
  result.cleanupResult();
}

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

repositoryService.postInit(result);
modelService.postInit(result);

相关文章

微信公众号

最新文章

更多