@Override protected Iterable<LinkDefinition<T>> getLinkDefinitions() { return contributor.getLinkDefinitions(); } };
@Override public <T extends ProjectEntity> List<LinkDefinition<T>> getLinkDefinitions(ProjectEntityType projectEntityType) { List<LinkDefinition<T>> definitions = new ArrayList<>(); contributors.forEach(contributor -> { if (contributor.applyTo(projectEntityType)) { try { @SuppressWarnings("unchecked") ResourceDecorationContributor<T> tResourceDecorationContributor = (ResourceDecorationContributor<T>) contributor; definitions.addAll(tResourceDecorationContributor.getLinkDefinitions()); } catch (Exception ex) { // Logging logService.log( ApplicationLogEntry.fatal( ex, NameDescription.nd( "ui-resource-decoration", "Issue when collecting UI resource decoration" ), contributor.getClass().getName() ) .withDetail("ui-resource-type", projectEntityType.name()) .withDetail("ui-resource-decorator", contributor.getClass().getName()) ); } } }); return definitions; } }