Added ExtractCodelistSession
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@96119 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f6fb6f6f8f
commit
79a8ea7245
|
@ -0,0 +1,61 @@
|
|||
package org.gcube.portlets.user.td.gwtservice.shared.extract;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnTypeCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author "Giancarlo Panichi"
|
||||
*
|
||||
*/
|
||||
public class ExtractCodelistDefColumn implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 7467523779864189492L;
|
||||
|
||||
protected ColumnTypeCode columnType;
|
||||
protected String defaultValue;
|
||||
protected String label;
|
||||
|
||||
public ExtractCodelistDefColumn() {
|
||||
|
||||
}
|
||||
|
||||
public ExtractCodelistDefColumn(ColumnTypeCode columnType,
|
||||
String defaultValue, String label) {
|
||||
this.columnType=columnType;
|
||||
this.defaultValue=defaultValue;
|
||||
this.label=label;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public ColumnTypeCode getColumnType() {
|
||||
return columnType;
|
||||
}
|
||||
|
||||
public void setColumnType(ColumnTypeCode columnType) {
|
||||
this.columnType = columnType;
|
||||
}
|
||||
|
||||
public String getDefaultValue() {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public void setDefaultValue(String defaultValue) {
|
||||
this.defaultValue = defaultValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ExtractCodelistDefColumn [columnType=" + columnType
|
||||
+ ", defaultValue=" + defaultValue + ", label=" + label + "]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.td.gwtservice.shared.extract;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.OperationMonitor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author "Giancarlo Panichi"
|
||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ExtractCodelistMonitor extends OperationMonitor implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -9042796707453619895L;
|
||||
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.td.gwtservice.shared.extract;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ExtractCodelistSession implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -2537172740573310646L;
|
||||
|
||||
protected ArrayList<ColumnData> sourceColumns;
|
||||
protected ArrayList<ExtractCodelistTargetColumn> targetColumns;
|
||||
|
||||
public ExtractCodelistSession() {
|
||||
}
|
||||
|
||||
public ExtractCodelistSession(ArrayList<ColumnData> sourceColumns,
|
||||
ArrayList<ExtractCodelistTargetColumn> targetColumns) {
|
||||
this.sourceColumns = sourceColumns;
|
||||
this.targetColumns = targetColumns;
|
||||
}
|
||||
|
||||
public ArrayList<ColumnData> getSourceColumns() {
|
||||
return sourceColumns;
|
||||
}
|
||||
|
||||
public void setSourceColumns(ArrayList<ColumnData> sourceColumns) {
|
||||
this.sourceColumns = sourceColumns;
|
||||
}
|
||||
|
||||
public ArrayList<ExtractCodelistTargetColumn> getTargetColumns() {
|
||||
return targetColumns;
|
||||
}
|
||||
|
||||
public void setTargetColumns(
|
||||
ArrayList<ExtractCodelistTargetColumn> targetColumns) {
|
||||
this.targetColumns = targetColumns;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ExtractCodelistSession [sourceColumns=" + sourceColumns
|
||||
+ ", targetColumns=" + targetColumns + "]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,92 @@
|
|||
package org.gcube.portlets.user.td.gwtservice.shared.extract;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author "Giancarlo Panichi"
|
||||
*
|
||||
*/
|
||||
public class ExtractCodelistTargetColumn implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3223334571168535567L;
|
||||
|
||||
protected boolean newColumn;
|
||||
protected ColumnData sourceColumn;
|
||||
protected ColumnData targetColumn;
|
||||
protected TRId codelist;
|
||||
protected ExtractCodelistDefColumn defColumn;
|
||||
|
||||
public ExtractCodelistTargetColumn() {
|
||||
|
||||
}
|
||||
|
||||
public ExtractCodelistTargetColumn(ColumnData sourceColumn,
|
||||
ColumnData targetColumn, TRId codelist) {
|
||||
this.newColumn = false;
|
||||
this.sourceColumn = sourceColumn;
|
||||
this.targetColumn = targetColumn;
|
||||
this.codelist = codelist;
|
||||
}
|
||||
|
||||
public ExtractCodelistTargetColumn(ColumnData sourceColumn, ExtractCodelistDefColumn defColumn) {
|
||||
this.newColumn = true;
|
||||
this.sourceColumn = sourceColumn;
|
||||
this.defColumn=defColumn;
|
||||
}
|
||||
|
||||
public boolean isNewColumn() {
|
||||
return newColumn;
|
||||
}
|
||||
|
||||
public void setNewColumn(boolean newColumn) {
|
||||
this.newColumn = newColumn;
|
||||
}
|
||||
|
||||
public ColumnData getSourceColumn() {
|
||||
return sourceColumn;
|
||||
}
|
||||
|
||||
public void setSourceColumn(ColumnData sourceColumn) {
|
||||
this.sourceColumn = sourceColumn;
|
||||
}
|
||||
|
||||
public ColumnData getTargetColumn() {
|
||||
return targetColumn;
|
||||
}
|
||||
|
||||
public void setTargetColumn(ColumnData targetColumn) {
|
||||
this.targetColumn = targetColumn;
|
||||
}
|
||||
|
||||
public TRId getCodelist() {
|
||||
return codelist;
|
||||
}
|
||||
|
||||
public void setCodelist(TRId codelist) {
|
||||
this.codelist = codelist;
|
||||
}
|
||||
|
||||
public ExtractCodelistDefColumn getDefColumn() {
|
||||
return defColumn;
|
||||
}
|
||||
|
||||
public void setDefColumn(ExtractCodelistDefColumn defColumn) {
|
||||
this.defColumn = defColumn;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ExtractCodelistTargetColumn [newColumn=" + newColumn
|
||||
+ ", sourceColumn=" + sourceColumn + ", targetColumn="
|
||||
+ targetColumn + ", codelist=" + codelist + ", defColumn="
|
||||
+ defColumn + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue