use of com.khartec.waltz.model.software_catalog.SoftwareSummaryStatistics in project waltz by khartec.
the class SoftwareCatalogHarness method main.
public static void main(String[] args) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
SoftwareCatalogService softwareCatalogService = ctx.getBean(SoftwareCatalogService.class);
DSLContext dsl = ctx.getBean(DSLContext.class);
EntityReference ref = ImmutableEntityReference.builder().kind(EntityKind.ORG_UNIT).id(20L).build();
IdSelectionOptions options = ImmutableIdSelectionOptions.builder().entityReference(ref).scope(HierarchyQueryScope.CHILDREN).build();
SoftwareSummaryStatistics stats = softwareCatalogService.findStatisticsForAppIdSelector(options);
System.out.println("stats:" + stats);
}
Aggregations