Skip to content

Commit

Permalink
Merge branch 'develop' into feature/JNG-5836_no_confirmation_before_p…
Browse files Browse the repository at this point in the history
…aram_opener_button
  • Loading branch information
gaborflorian committed Aug 5, 2024
2 parents 09b4eac + a6611c6 commit af25cd0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,11 @@ public static List<AccessBasedNavigation> getAccessBasedNavigationsForOperations
}

public static List<RelationType> getRelatedServicesForPage(PageDefinition pageDefinition) {
String serviceClassForPage = getServiceClassForPage(pageDefinition);
Set<RelationType> relations = getAccessBasedNavigationsForOperations(pageDefinition).stream()
.map(AccessBasedNavigation::getAccessRelation)
// filter out already imported service impl.
.filter(r -> !(serviceRelationName(r) + "Impl").equals(serviceClassForPage))
.collect(Collectors.toSet());
return relations.stream().sorted(Comparator.comparing(NamedElement::getName)).toList();
}
Expand Down

0 comments on commit af25cd0

Please sign in to comment.