Updated Duplicate
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@113701 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
83e3e1865e
commit
a3458270d5
|
@ -22,7 +22,8 @@ public enum WidgetRequestType {
|
|||
DENORMALIZEPANEL,
|
||||
LABELCOLUMNPANEL,
|
||||
CHANGETABLETYPEPANEL,
|
||||
DUPLICATESROWSPANEL,
|
||||
DUPLICATESROWSDETECTIONPANEL,
|
||||
DUPLICATESROWSDELETEPANEL,
|
||||
VALIDATIONSTASKSPANEL,
|
||||
CURATIONBYREPLACEBATCHDIALOG,
|
||||
MONITORBACKGROUNDPANEL,
|
||||
|
|
|
@ -25,4 +25,20 @@ public enum TabResourceType {
|
|||
public String toString() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getTabResourceTypeLabel() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public static TabResourceType getTabResourceTypeFromId(String id) {
|
||||
for (TabResourceType tabResourceType : values()) {
|
||||
if (tabResourceType.id.compareToIgnoreCase(id) == 0) {
|
||||
return tabResourceType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
package org.gcube.portlets.user.td.widgetcommonevent.shared.tr;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author giancarlo
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class TabResourceTypeMap {
|
||||
public static TabResourceType map(String tabResourceType){
|
||||
if(tabResourceType.compareTo(TabResourceType.FLOW.toString())==0){
|
||||
return TabResourceType.FLOW;
|
||||
} else {
|
||||
if(tabResourceType.compareTo(TabResourceType.STANDARD.toString())==0){
|
||||
return TabResourceType.STANDARD;
|
||||
} else {
|
||||
return TabResourceType.UNKNOWN;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package org.gcube.portlets.user.td.widgetcommonevent.shared.tr;
|
||||
|
||||
|
||||
public enum TableType {
|
||||
GENERIC("Generic"),
|
||||
CODELIST("Codelist"),
|
||||
|
@ -20,4 +21,19 @@ public enum TableType {
|
|||
return id;
|
||||
}
|
||||
|
||||
public String getTableTypeLabel() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public static TableType getColumnDataTypeFromId(String id) {
|
||||
for (TableType tableType : values()) {
|
||||
if (tableType.id.compareToIgnoreCase(id) == 0) {
|
||||
return tableType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue