Search in sources :

Example 16 with DataType

use of org.finos.waltz.model.datatype.DataType in project waltz by khartec.

the class FlowDiagramService method makeForDataType.

private Long makeForDataType(EntityReference ref, String userId, String providedTitle) {
    DataType dataType = dataTypeService.getDataTypeById(ref.id());
    String title = isEmpty(providedTitle) ? dataType.name() + " flows" : providedTitle;
    return mkNewFlowDiagram(title, userId, newArrayList(mkDiagramEntity(dataType)), emptyList());
}
Also used : DataType(org.finos.waltz.model.datatype.DataType)

Aggregations

DataType (org.finos.waltz.model.datatype.DataType)16 DataTypeDao (org.finos.waltz.data.data_type.DataTypeDao)5 Application (org.finos.waltz.model.application.Application)5 DataTypeDecorator (org.finos.waltz.model.datatype.DataTypeDecorator)5 LogicalFlow (org.finos.waltz.model.logical_flow.LogicalFlow)5 Collectors (java.util.stream.Collectors)4 BaseInMemoryIntegrationTest (org.finos.waltz.integration_test.inmem.BaseInMemoryIntegrationTest)4 EntityKind (org.finos.waltz.model.EntityKind)4 EntityReference (org.finos.waltz.model.EntityReference)4 Test (org.junit.jupiter.api.Test)4 java.util (java.util)3 Collections.emptyList (java.util.Collections.emptyList)3 Checks.checkNotNull (org.finos.waltz.common.Checks.checkNotNull)3 Autowired (org.springframework.beans.factory.annotation.Autowired)3 Collection (java.util.Collection)2 Collections.emptySet (java.util.Collections.emptySet)2 List (java.util.List)2 Collectors.toList (java.util.stream.Collectors.toList)2 ListUtilities (org.finos.waltz.common.ListUtilities)2 ListUtilities.asList (org.finos.waltz.common.ListUtilities.asList)2