Updated Add Column
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@113843 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b40d1ace03
commit
f1ab753d21
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue