@Test public void testCreateIncludedModel() { doTestCreateIncludedModel("file", "file"); }
BaseIncludedModelActiveRecord createIncludedModel(final KieAssetsDropdownItem value) { final Map<String, String> metaData = value.getMetaData(); final BaseIncludedModelActiveRecord includedModel = createIncludedModel(metaData); includedModel.setName(NameUtils.normaliseName(getView().getModelNameInput())); includedModel.setNamespace(value.getValue()); includedModel.setImportType(metaData.get(IMPORT_TYPE_METADATA)); includedModel.setPath(metaData.get(PATH_METADATA)); includedModel.create(); return includedModel; }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { BaseIncludedModelActiveRecord createIncludedModel(final KieAssetsDropdownItem value) { final Map<String, String> metaData = value.getMetaData(); final BaseIncludedModelActiveRecord includedModel = createIncludedModel(metaData); includedModel.setName(NameUtils.normaliseName(getView().getModelNameInput())); includedModel.setNamespace(value.getValue()); includedModel.setImportType(metaData.get(IMPORT_TYPE_METADATA)); includedModel.setPath(metaData.get(PATH_METADATA)); includedModel.create(); return includedModel; } }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { BaseIncludedModelActiveRecord createIncludedModel(final KieAssetsDropdownItem value) { final Map<String, String> metaData = value.getMetaData(); final BaseIncludedModelActiveRecord includedModel = createIncludedModel(metaData); includedModel.setName(NameUtils.normaliseName(getView().getModelNameInput())); includedModel.setNamespace(value.getValue()); includedModel.setImportType(metaData.get(IMPORT_TYPE_METADATA)); includedModel.setPath(metaData.get(PATH_METADATA)); includedModel.create(); return includedModel; } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { BaseIncludedModelActiveRecord createIncludedModel(final KieAssetsDropdownItem value) { final Map<String, String> metaData = value.getMetaData(); final BaseIncludedModelActiveRecord includedModel = createIncludedModel(metaData); includedModel.setName(NameUtils.normaliseName(getView().getModelNameInput())); includedModel.setNamespace(value.getValue()); includedModel.setImportType(metaData.get(IMPORT_TYPE_METADATA)); includedModel.setPath(metaData.get(PATH_METADATA)); includedModel.create(); return includedModel; } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void setup(); void init(final IncludedModelsPagePresenter grid); @Override void show(); void include(); @Override void hide(); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { BaseIncludedModelActiveRecord createIncludedModel(final KieAssetsDropdownItem value) { final Map<String, String> metaData = value.getMetaData(); final BaseIncludedModelActiveRecord includedModel = createIncludedModel(metaData); includedModel.setName(NameUtils.normaliseName(getView().getModelNameInput())); includedModel.setNamespace(value.getValue()); includedModel.setImportType(metaData.get(IMPORT_TYPE_METADATA)); includedModel.setPath(metaData.get(PATH_METADATA)); includedModel.create(); return includedModel; } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void setup(); void init(final IncludedModelsPagePresenter grid); @Override void show(); void include(); @Override void hide();  }