From 7f26a7c2fced639ab30560ac34c85765a91b8d23 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 15 Jul 2014 10:34:51 +0000 Subject: [PATCH] Added UnionSession git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@98637 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../shared/tr/union/UnionColumnsMapping.java | 53 +++++++++++++++ .../shared/tr/union/UnionMonitor.java | 21 ++++++ .../shared/tr/union/UnionSession.java | 66 +++++++++++++++++++ 3 files changed, 140 insertions(+) create mode 100644 src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionColumnsMapping.java create mode 100644 src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionMonitor.java create mode 100644 src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionSession.java diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionColumnsMapping.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionColumnsMapping.java new file mode 100644 index 0000000..4543067 --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionColumnsMapping.java @@ -0,0 +1,53 @@ +package org.gcube.portlets.user.td.gwtservice.shared.tr.union; + +import java.io.Serializable; + +import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData; + +/** + * + * @author "Giancarlo Panichi" + * email: g.panichi@isti.cnr.it + * + */ +public class UnionColumnsMapping implements Serializable { + + private static final long serialVersionUID = -8971216501310276805L; + + protected ColumnData firstColumn; + protected ColumnData secondColumn; + + public UnionColumnsMapping(){ + + } + + public UnionColumnsMapping(ColumnData firstColumn,ColumnData secondColumn){ + this.firstColumn=firstColumn; + this.secondColumn=secondColumn; + } + + public ColumnData getFirstColumn() { + return firstColumn; + } + + public void setFirstColumn(ColumnData firstColumn) { + this.firstColumn = firstColumn; + } + + public ColumnData getSecondColumn() { + return secondColumn; + } + + public void setSecondColumn(ColumnData secondColumn) { + this.secondColumn = secondColumn; + } + + @Override + public String toString() { + return "UnionColumnsMapping [firstColumn=" + firstColumn + + ", secondColumn=" + secondColumn + "]"; + } + + + +} diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionMonitor.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionMonitor.java new file mode 100644 index 0000000..5365b5a --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionMonitor.java @@ -0,0 +1,21 @@ +/** + * + */ +package org.gcube.portlets.user.td.gwtservice.shared.tr.union; + +import java.io.Serializable; + +import org.gcube.portlets.user.td.gwtservice.shared.OperationMonitor; + +/** + * + * @author "Giancarlo Panichi" + * g.panichi@isti.cnr.it + * + */ +public class UnionMonitor extends OperationMonitor implements Serializable { + + + private static final long serialVersionUID = -7694151843138161474L; + +} diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionSession.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionSession.java new file mode 100644 index 0000000..cd9d113 --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/union/UnionSession.java @@ -0,0 +1,66 @@ +package org.gcube.portlets.user.td.gwtservice.shared.tr.union; + +import java.io.Serializable; +import java.util.ArrayList; + +import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource; +import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId; + +/** + * + * @author "Giancarlo Panichi" g.panichi@isti.cnr.it + * + */ +public class UnionSession implements Serializable { + + private static final long serialVersionUID = -1896235499708614266L; + + protected TRId trId; + protected TabResource unionTabularResource; + protected ArrayList columnsMatch; + + public UnionSession() { + + } + + public UnionSession(TRId trId, TabResource unionTabularResource, + ArrayList columnsMatch) { + this.trId = trId; + this.unionTabularResource=unionTabularResource; + this.columnsMatch=columnsMatch; + + } + + public TRId getTrId() { + return trId; + } + + public void setTrId(TRId trId) { + this.trId = trId; + } + + public TabResource getUnionTabularResource() { + return unionTabularResource; + } + + public void setUnionTabularResource(TabResource unionTabularResource) { + this.unionTabularResource = unionTabularResource; + } + + public ArrayList getColumnsMatch() { + return columnsMatch; + } + + public void setColumnsMatch(ArrayList columnsMatch) { + this.columnsMatch = columnsMatch; + } + + @Override + public String toString() { + return "UnionSession [trId=" + trId + ", unionTabularResource=" + + unionTabularResource + ", columnsMatch=" + columnsMatch + "]"; + } + + +}