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

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

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

RepositoryService.getFullTextSearchConfiguration介绍

暂无

代码示例

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

@Override
public FullTextSearchConfigurationType getFullTextSearchConfiguration() {
  Long startTime = repoOpStart();
  try {
    return repositoryService.getFullTextSearchConfiguration();
  } finally {
    repoOpEnd(startTime);
  }
}

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

public static <T extends ObjectType> Set<RObjectTextInfo> createItemsSet(@NotNull ObjectType object, @NotNull RObject repo,
    @NotNull RepositoryContext repositoryContext) {
  FullTextSearchConfigurationType config = repositoryContext.repositoryService.getFullTextSearchConfiguration();
  if (!FullTextSearchConfigurationUtil.isEnabled(config)) {
    return Collections.emptySet();

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

private <T extends ObjectType> boolean isObjectTextInfoRecomputationNeeded(Class<T> type, Collection<? extends ItemDelta> modifications) {
  FullTextSearchConfigurationType config = repositoryService.getFullTextSearchConfiguration();
  if (!FullTextSearchConfigurationUtil.isEnabled(config)) {
    return false;
  }
  Set<ItemPath> paths = FullTextSearchConfigurationUtil.getFullTextSearchItemPaths(config, type);
  for (ItemDelta modification : modifications) {
    ItemPath namesOnly = modification.getPath().namedSegmentsOnly();
    for (ItemPath path : paths) {
      if (path.startsWith(namesOnly)) {
        return true;
      }
    }
  }
  return false;
}

相关文章

微信公众号

最新文章

更多