diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/extract/ExtractCodelistSession.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/extract/ExtractCodelistSession.java index 0105208..86b6f6d 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/extract/ExtractCodelistSession.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/extract/ExtractCodelistSession.java @@ -19,21 +19,25 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId; public class ExtractCodelistSession implements Serializable { private static final long serialVersionUID = -2537172740573310646L; - - protected TRId trId; - protected TabResource tabResource; - protected ArrayList sourceColumns; - protected ArrayList targetColumns; + + private TRId trId; + private TabResource tabResource; + private ArrayList sourceColumns; + private ArrayList targetColumns; + private boolean automaticallyAttach; public ExtractCodelistSession() { } - public ExtractCodelistSession(TRId trId, TabResource tabResource,ArrayList sourceColumns, - ArrayList targetColumns) { - this.trId=trId; - this.tabResource= tabResource; + public ExtractCodelistSession(TRId trId, TabResource tabResource, + ArrayList sourceColumns, + ArrayList targetColumns, + boolean automaticallyAttach) { + this.trId = trId; + this.tabResource = tabResource; this.sourceColumns = sourceColumns; this.targetColumns = targetColumns; + this.automaticallyAttach = automaticallyAttach; } public ArrayList getSourceColumns() { @@ -60,7 +64,7 @@ public class ExtractCodelistSession implements Serializable { public void setTabResource(TabResource tabResource) { this.tabResource = tabResource; } - + public TRId getTrId() { return trId; } @@ -68,16 +72,24 @@ public class ExtractCodelistSession implements Serializable { public void setTrId(TRId trId) { this.trId = trId; } + + + public boolean isAutomaticallyAttach() { + return automaticallyAttach; + } + + public void setAutomaticallyAttach(boolean automaticallyAttach) { + this.automaticallyAttach = automaticallyAttach; + } @Override public String toString() { return "ExtractCodelistSession [trId=" + trId + ", tabResource=" + tabResource + ", sourceColumns=" + sourceColumns - + ", targetColumns=" + targetColumns + "]"; + + ", targetColumns=" + targetColumns + ", automaticallyAttach=" + + automaticallyAttach + "]"; } - - }