@Override public void onDataSetDefModified(DataSetDef olDef, DataSetDef newDef) { if (DataSetProviderType.SQL.equals(olDef.getProvider())) { String uuid = olDef.getUUID(); _metadataMap.remove(uuid); staticDataSetProvider.removeDataSet(uuid); } }
@Override public void onDataSetDefRemoved(DataSetDef oldDef) { if (DataSetProviderType.SQL.equals(oldDef.getProvider())) { String uuid = oldDef.getUUID(); _metadataMap.remove(uuid); staticDataSetProvider.removeDataSet(uuid); } }
@Override public void onDataSetDefRemoved(DataSetDef oldDef) { if (DataSetProviderType.SQL.equals(oldDef.getProvider())) { String uuid = oldDef.getUUID(); _metadataMap.remove(uuid); staticDataSetProvider.removeDataSet(uuid); } }
@Override public void onDataSetDefModified(DataSetDef olDef, DataSetDef newDef) { if (DataSetProviderType.SQL.equals(olDef.getProvider())) { String uuid = olDef.getUUID(); _metadataMap.remove(uuid); staticDataSetProvider.removeDataSet(uuid); } }
protected void onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event) { DataSetDef def = event.getOldDataSetDef(); if (DataSetProviderType.SQL.equals(def.getProvider())) { String uuid = def.getUUID(); _metadataMap.remove(uuid); staticDataSetProvider.removeDataSet(uuid); } } }
protected void onDataSetDefRemovedEvent(@Observes DataSetDefRemovedEvent event) { DataSetDef def = event.getDataSetDef(); if (DataSetProviderType.SQL.equals(def.getProvider())) { String uuid = def.getUUID(); _metadataMap.remove(uuid); staticDataSetProvider.removeDataSet(uuid); } }
protected void onDataSetDefRemovedEvent(@Observes DataSetDefRemovedEvent event) { DataSetDef def = event.getDataSetDef(); if (DataSetProviderType.SQL.equals(def.getProvider())) { String uuid = def.getUUID(); _metadataMap.remove(uuid); staticDataSetProvider.removeDataSet(uuid); } }
protected void onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event) { DataSetDef def = event.getOldDataSetDef(); if (DataSetProviderType.SQL.equals(def.getProvider())) { String uuid = def.getUUID(); _metadataMap.remove(uuid); staticDataSetProvider.removeDataSet(uuid); } } }
protected void onDataSetStaleEvent(@Observes DataSetStaleEvent event) { DataSetDef def = event.getDataSetDef(); if (DataSetProviderType.SQL.equals(def.getProvider())) { String uuid = def.getUUID(); staticDataSetProvider.removeDataSet(uuid); } }
@Override public void onDataSetDefStale(DataSetDef def) { if (DataSetProviderType.SQL.equals(def.getProvider())) { staticDataSetProvider.removeDataSet(def.getUUID()); } }
@Override public void onDataSetDefStale(DataSetDef def) { if (DataSetProviderType.SQL.equals(def.getProvider())) { staticDataSetProvider.removeDataSet(def.getUUID()); } }
protected void onDataSetStaleEvent(@Observes DataSetStaleEvent event) { DataSetDef def = event.getDataSetDef(); if (DataSetProviderType.SQL.equals(def.getProvider())) { String uuid = def.getUUID(); staticDataSetProvider.removeDataSet(uuid); } }
String getTypeSelectorTitle(final DataSetProviderType type) { if (BEAN.equals(type)) { return DataSetEditorConstants.INSTANCE.bean(); } if (CSV.equals(type)) { return DataSetEditorConstants.INSTANCE.csv(); } if (SQL.equals(type)) { return DataSetEditorConstants.INSTANCE.sql(); } if (ELASTICSEARCH.equals(type)) { return DataSetEditorConstants.INSTANCE.elasticSearch(); } return null; }
private String getTypeTitle(final DataSetProviderType type) { if (BEAN.equals(type)) { return DataSetEditorConstants.INSTANCE.bean(); } if (CSV.equals(type)) { return DataSetEditorConstants.INSTANCE.csv(); } if (SQL.equals(type)) { return DataSetEditorConstants.INSTANCE.sql(); } if (ELASTICSEARCH.equals(type)) { return DataSetEditorConstants.INSTANCE.elasticSearch(); } return ""; }
String getTypeSelectorText(final DataSetProviderType type) { if (BEAN.equals(type)) { return DataSetEditorConstants.INSTANCE.bean_description(); } if (CSV.equals(type)) { return DataSetEditorConstants.INSTANCE.csv_description(); } if (SQL.equals(type)) { return DataSetEditorConstants.INSTANCE.sql_description(); } if (ELASTICSEARCH.equals(type)) { return DataSetEditorConstants.INSTANCE.elasticSearch_description(); } return null; }
private String getTypeTitle(final DataSetProviderType type) { if (BEAN.equals(type)) { return DataSetEditorConstants.INSTANCE.bean(); } if (CSV.equals(type)) { return DataSetEditorConstants.INSTANCE.csv(); } if (SQL.equals(type)) { return DataSetEditorConstants.INSTANCE.sql(); } if (ELASTICSEARCH.equals(type)) { return DataSetEditorConstants.INSTANCE.elasticSearch(); } return ""; }
String getTypeSelectorTitle(final DataSetProviderType type) { if (BEAN.equals(type)) { return DataSetEditorConstants.INSTANCE.bean(); } if (CSV.equals(type)) { return DataSetEditorConstants.INSTANCE.csv(); } if (SQL.equals(type)) { return DataSetEditorConstants.INSTANCE.sql(); } if (ELASTICSEARCH.equals(type)) { return DataSetEditorConstants.INSTANCE.elasticSearch(); } return null; }
String getTypeSelectorText(final DataSetProviderType type) { if (BEAN.equals(type)) { return DataSetEditorConstants.INSTANCE.bean_description(); } if (CSV.equals(type)) { return DataSetEditorConstants.INSTANCE.csv_description(); } if (SQL.equals(type)) { return DataSetEditorConstants.INSTANCE.sql_description(); } if (ELASTICSEARCH.equals(type)) { return DataSetEditorConstants.INSTANCE.elasticSearch_description(); } return null; }
final boolean isSQL = type != null && DataSetProviderType.SQL.equals(type); final boolean isBean = type != null && DataSetProviderType.BEAN.equals(type); final boolean isCSV = type != null && DataSetProviderType.CSV.equals(type);
/** * Obtain the bean for editing a data set definition for a given type. * @param type The data set definition provider type to edit. * @return The workflow instance. */ public DataSetEditWorkflow edit(final DataSetProviderType type) { final boolean isSQL = type != null && DataSetProviderType.SQL.equals(type); final boolean isBean = type != null && DataSetProviderType.BEAN.equals(type); final boolean isCSV = type != null && DataSetProviderType.CSV.equals(type); final boolean isEL = type != null && DataSetProviderType.ELASTICSEARCH.equals(type); Class workflowClass = null; if (isSQL) { workflowClass = SQLDataSetEditWorkflow.class; } else if (isCSV) { workflowClass = CSVDataSetEditWorkflow.class; } else if (isBean) { workflowClass = BeanDataSetEditWorkflow.class; } else if (isEL) { workflowClass = ElasticSearchDataSetEditWorkflow.class; } else if (!dataSetEditorPlugin.isUnsatisfied()) { for (DataSetEditorPlugin plugin : dataSetEditorPlugin) { if (plugin.getProviderType().equals(type)) { workflowClass = plugin.getWorkflowClass(); break; } } } return (DataSetEditWorkflow) beanManager.lookupBean( workflowClass ).newInstance(); }