protected List<String> doCollect(Collector extractor) { DirectoryService dirService = Framework.getService(DirectoryService.class); Set<String> ids = new HashSet<>(); for (SourceDescriptor src : dir.getDescriptor().sources) { for (SubDirectoryDescriptor sub : src.subDirectories) { Directory dir = dirService.getDirectory(sub.name); if (dir == null) { continue; } List<Reference> ref = dir.getReferences(fieldName); if (ref == null) { continue; } try { ids.addAll(extractor.collect(ref)); } catch (DirectoryEntryNotFoundException e) { log.debug(e.getMessage()); } } } List<String> x = new ArrayList<>(ids.size()); x.addAll(ids); return x; }
fieldName, sourceDirectory, targetDirectoryName, staticAttributeId, targetId, targetDirectoryName); throw new DirectoryEntryNotFoundException(msg);