use of com.khartec.waltz.model.authoritativesource.NonAuthoritativeSource in project waltz by khartec.
the class NonAuthSourceHarness method main.
public static void main(String[] args) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
AuthoritativeSourceService authoritativeSourceService = ctx.getBean(AuthoritativeSourceService.class);
Consumer<NonAuthoritativeSource> dumpRow = r -> {
System.out.println(String.format("%s | %d - %d", r.sourceReference().name().orElse("?"), r.dataTypeId(), r.count()));
};
// authoritativeSourceService.findNonAuthSources(mkRef(EntityKind.ORG_UNIT, 200L)).forEach(dumpRow);
// authoritativeSourceService.findNonAuthSources(mkRef(EntityKind.DATA_TYPE, 6000L)).forEach(dumpRow);
authoritativeSourceService.findNonAuthSources(mkRef(EntityKind.APP_GROUP, 41)).forEach(dumpRow);
}
Aggregations