public static Set<String> gatherReportFileTags(ReportFileModel reportFileModel) { Set<String> allTags = new HashSet<>(); for (ClassificationModel classificationModel : reportFileModel.getClassificationModels()) { for (String tag : classificationModel.getTags()) allTags.add(tag); } for (InlineHintModel inlineHintModel : reportFileModel.getInlineHints()) { for (String tag : inlineHintModel.getTags()) allTags.add(tag); } return allTags; } }
public static Set<String> gatherReportFileTags(ReportFileModel reportFileModel) { Set<String> allTags = new HashSet<>(); for (ClassificationModel classificationModel : reportFileModel.getClassificationModels()) { for (String tag : classificationModel.getTags()) allTags.add(tag); } for (InlineHintModel inlineHintModel : reportFileModel.getInlineHints()) { for (String tag : inlineHintModel.getTags()) allTags.add(tag); } return allTags; } }
continue; Set<String> tags = classification.getTags(); if (!TagUtil.checkMatchingTags(tags, includeTags, excludeTags, false)) continue;
continue; Set<String> tags = classification.getTags(); if (!TagUtil.checkMatchingTags(tags, includeTags, excludeTags, false)) continue;
private Set<String> findTagsFromFileClassificationsAndHints(FileModel fileModel) { Set<String> tags = new HashSet<>(); // Classifications { GraphTraversal<Vertex, Vertex> pipeline = new GraphTraversalSource(context.getGraph()).V(fileModel.getElement()); pipeline.in(ClassificationModel.FILE_MODEL).has(WindupVertexFrame.TYPE_PROP, Text.textContains(ClassificationModel.TYPE)); FramedVertexIterable<ClassificationModel> iterable = new FramedVertexIterable<>(this.context.getFramed(), pipeline.toList(), ClassificationModel.class); for (ClassificationModel classification : iterable) tags.addAll(classification.getTags()); } // Hints { GraphTraversal<Vertex, Vertex> pipeline = new GraphTraversalSource(context.getGraph()).V(fileModel.getElement()); pipeline.in(FileLocationModel.FILE_MODEL).has(WindupVertexFrame.TYPE_PROP, Text.textContains(FileLocationModel.TYPE)); pipeline.in(InlineHintModel.FILE_LOCATION_REFERENCE).has(WindupVertexFrame.TYPE_PROP, Text.textContains(InlineHintModel.TYPE)); FramedVertexIterable<InlineHintModel> iterable = new FramedVertexIterable<>(this.context.getFramed(), pipeline.toList(), InlineHintModel.class); for(InlineHintModel hint : iterable) tags.addAll(hint.getTags()); } return tags; } }
private Set<String> findTagsFromFileClassificationsAndHints(FileModel fileModel) { Set<String> tags = new HashSet<>(); // Classifications { GraphTraversal<Vertex, Vertex> pipeline = new GraphTraversalSource(context.getGraph()).V(fileModel.getElement()); pipeline.in(ClassificationModel.FILE_MODEL).has(WindupVertexFrame.TYPE_PROP, Text.textContains(ClassificationModel.TYPE)); FramedVertexIterable<ClassificationModel> iterable = new FramedVertexIterable<>(this.context.getFramed(), pipeline.toList(), ClassificationModel.class); for (ClassificationModel classification : iterable) tags.addAll(classification.getTags()); } // Hints { GraphTraversal<Vertex, Vertex> pipeline = new GraphTraversalSource(context.getGraph()).V(fileModel.getElement()); pipeline.in(FileLocationModel.FILE_MODEL).has(WindupVertexFrame.TYPE_PROP, Text.textContains(FileLocationModel.TYPE)); pipeline.in(InlineHintModel.FILE_LOCATION_REFERENCE).has(WindupVertexFrame.TYPE_PROP, Text.textContains(InlineHintModel.TYPE)); FramedVertexIterable<InlineHintModel> iterable = new FramedVertexIterable<>(this.context.getFramed(), pipeline.toList(), InlineHintModel.class); for(InlineHintModel hint : iterable) tags.addAll(hint.getTags()); } return tags; } }
classificationReducedDTO.setTitle(strings.getOrAdd(classification.getClassification())); classificationReducedDTO.setEffort(classification.getEffort()); for (String tag : classification.getTags()) classificationReducedDTO.getTags().add(new TagReducedDTO(strings.getOrAdd(tag), 0));