diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/opexecution/OpExecution4AddColumn.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/opexecution/OpExecution4AddColumn.java index 6b0baa8..147761b 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/opexecution/OpExecution4AddColumn.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/opexecution/OpExecution4AddColumn.java @@ -6,6 +6,7 @@ import java.util.Map; import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition; import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution; import org.gcube.data.analysis.tabulardata.expression.Expression; +import org.gcube.data.analysis.tabulardata.model.metadata.column.DataLocaleMetadata; import org.gcube.data.analysis.tabulardata.model.metadata.common.ImmutableLocalizedText; import org.gcube.data.analysis.tabulardata.service.TabularDataService; import org.gcube.portlets.user.td.gwtservice.server.trservice.ColumnDataTypeMap; @@ -156,6 +157,9 @@ public class OpExecution4AddColumn extends OpExecutionBuilder { ColumnDataTypeMap.map(ColumnDataType.Text)); map.put(Constants.PARAMETER_ADD_COLUMN_LABEL, new ImmutableLocalizedText(defNewColumn.getLabel())); + + map.put(Constants.PARAMETER_ADD_COLUMN_META, new DataLocaleMetadata(defNewColumn.getLocaleName())); + if (defNewColumn.hasExpression()) { map.put(Constants.PARAMETER_ADD_COLUMN_VALUE, expression); } else { diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/Constants.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/Constants.java index 553edb5..daf678b 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/Constants.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/Constants.java @@ -88,6 +88,7 @@ public class Constants { public static final String PARAMETER_ADD_COLUMN_LABEL = "label"; public static final String PARAMETER_ADD_COLUMN_DATA_TYPE = "dataType"; public static final String PARAMETER_ADD_COLUMN_VALUE = "value"; + public static final String PARAMETER_ADD_COLUMN_META = "meta"; public static final String PARAMETER_NORMALIZATION_TO_NORMALIZE = "to_normalize"; public static final String PARAMETER_NORMALIZATION_NORM_LABEL = "norm_label";