use of org.finos.waltz.model.usage_info.UsageKind in project waltz by khartec.
the class DataTypeUsageEndpoint method findForUsageKindByDataTypeSelectorRoute.
private Map<Long, Collection<EntityReference>> findForUsageKindByDataTypeSelectorRoute(Request request, Response response) throws IOException {
IdSelectionOptions options = WebUtilities.readIdSelectionOptionsFromBody(request);
UsageKind usageKind = WebUtilities.readEnum(request, "usage-kind", UsageKind.class, s -> UsageKind.ORIGINATOR);
return dataTypeUsageService.findForUsageKindByDataTypeIdSelector(usageKind, options);
}
Aggregations