Search in sources :

Example 1 with UsageKind

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);
}
Also used : UsageKind(org.finos.waltz.model.usage_info.UsageKind) IdSelectionOptions(org.finos.waltz.model.IdSelectionOptions)

Aggregations

IdSelectionOptions (org.finos.waltz.model.IdSelectionOptions)1 UsageKind (org.finos.waltz.model.usage_info.UsageKind)1