@Test public void testFindConfiguration_MetaModel_Unknown() { MetaModel model = new MetaModel("model:unknown", true, true, null, "", "", null, null); DesaConfiguration result = desaServices.findConfiguration(model); assertNull(result); }
public DesaConfiguration findConfiguration(MetaModel model) { if (model == null) { return null; } for (String sid : config.getStringArray(PROPERTY_DESASERVICES)) { DesaConfiguration dc = readConfiguration(config, sid); if (dc.getExportModels().contains(model.getPid())) { return dc; } } return null; }
DesaServices { public DesaConfiguration findConfiguration(MetaModel model) { if (model == null) { return null; } for (String sid : config.getStringArray(PROPERTY_DESASERVICES)) { DesaConfiguration dc = readConfiguration(config, sid); if (dc.getExportModels().contains(model.getPid())) { return dc; } } return null; } }
DesaServices { public DesaConfiguration findConfiguration(MetaModel model) { if (model == null) { return null; } for (String sid : config.getStringArray(PROPERTY_DESASERVICES)) { DesaConfiguration dc = readConfiguration(config, sid); if (dc.getExportModels().contains(model.getPid())) { return dc; } } return null; } DesaServices(Configuration config); }
DesaServices { public DesaConfiguration findConfiguration(MetaModel model) { if (model == null) { return null; } for (String sid : config.getStringArray(PROPERTY_DESASERVICES)) { DesaConfiguration dc = readConfiguration(config, sid); if (dc.getExportModels().contains(model.getPid())) { return dc; } } return null; } DesaServices(Configuration config); List<ValueMap> getValueMap(Nomenclatures n, String pluginId); Nomenclatures getNomenclatures(DesaConfiguration dc, UserProfile user); DesaClient getDesaClient(DesaConfiguration dc); String getOperatorName(UserProfile operator, DesaConfiguration dc); String getProducerCode(UserProfile operator, DesaConfiguration dc); DesaConfiguration findConfiguration(MetaModel model); DesaConfiguration findConfiguration(String serviceId); DesaConfiguration findConfigurationWithModel(String... modelIds); List<DesaConfiguration> getConfigurations(); }
DesaServices { public DesaConfiguration findConfiguration(MetaModel model) { if (model == null) { return null; } for (String sid : config.getStringArray(PROPERTY_DESASERVICES)) { DesaConfiguration dc = readConfiguration(config, sid); if (dc.getExportModels().contains(model.getPid())) { return dc; } } return null; } DesaServices(Configuration config); List<ValueMap> getValueMap(Nomenclatures n, String pluginId); Nomenclatures getNomenclatures(DesaConfiguration dc, UserProfile user); DesaClient getDesaClient(DesaConfiguration dc); String getOperatorName(UserProfile operator, DesaConfiguration dc); String getProducerCode(UserProfile operator, DesaConfiguration dc); DesaConfiguration findConfiguration(MetaModel model); DesaConfiguration findConfiguration(String serviceId); DesaConfiguration findConfigurationWithModel(String... modelIds); List<DesaConfiguration> getConfigurations(); static final String PROPERTY_DESASERVICES; static final String PREFIX_DESA; static final String REMOTE_USER_TYPE; }