ref 6078:TDM - Create a new widget to support operations's invocation on DataMiner

https://support.d4science.org/issues/6078

Updated to support DataMiner

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@144882 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-03-13 18:58:50 +00:00
parent 3314543edd
commit 37d7be2f5a
11 changed files with 213 additions and 104 deletions

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/tabular-data-gwt-service-2.15.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<classpathentry kind="src" output="target/tabular-data-gwt-service-2.16.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/tabular-data-gwt-service-2.15.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<classpathentry excluding="**" kind="src" output="target/tabular-data-gwt-service-2.16.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
@ -33,5 +33,5 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/tabular-data-gwt-service-2.15.0-SNAPSHOT/WEB-INF/classes"/>
<classpathentry kind="output" path="target/tabular-data-gwt-service-2.16.0-SNAPSHOT/WEB-INF/classes"/>
</classpath>

View File

@ -1,4 +1,7 @@
<ReleaseNotes>
<Changeset component="org.gcube.portlets-user.tabular-data-gwt-service.2-16-0" date="2017-04-01">
<Change>Added DataMiner [issue #6548]</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.tabular-data-gwt-service.2-15-0" date="2017-02-15">
<Change>Updatetd to new PortalContext [issue #6548]</Change>
</Changeset>

61
pom.xml
View File

@ -14,7 +14,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.portlets.user</groupId>
<artifactId>tabular-data-gwt-service</artifactId>
<version>2.15.0-SNAPSHOT</version>
<version>2.16.0-SNAPSHOT</version>
<name>tabular-data-gwt-service</name>
<description>tabular-data-gwt-service allows communication between the GUI and services</description>
@ -68,17 +68,9 @@
<version>1.0.1</version>
<scope>runtime</scope>
</dependency>
<!--
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>common-authorization</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-client</artifactId>
<scope>runtime</scope>
</dependency> -->
<!-- <dependency> <groupId>org.gcube.common</groupId> <artifactId>common-authorization</artifactId>
<scope>runtime</scope> </dependency> <dependency> <groupId>org.gcube.common</groupId>
<artifactId>authorization-client</artifactId> <scope>runtime</scope> </dependency> -->
</dependencies>
</profile>
@ -95,9 +87,9 @@
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
</dependency>
<!-- PORTAL -->
<dependency>
<groupId>org.gcube.core</groupId>
@ -123,8 +115,8 @@
<version>[1.0.0-SNAPSHOT,)</version>
<scope>compile</scope>
</dependency>
<!-- Authorization -->
<dependency>
<groupId>org.gcube.common</groupId>
@ -138,14 +130,10 @@
<scope>provided</scope>
</dependency>
<!-- GCube Widgets
<dependency>
<groupId>org.gcube.portlets.user</groupId>
<artifactId>gcube-widgets</artifactId>
<scope>compile</scope>
</dependency> -->
<!-- GCube Widgets <dependency> <groupId>org.gcube.portlets.user</groupId>
<artifactId>gcube-widgets</artifactId> <scope>compile</scope> </dependency> -->
<dependency>
<groupId>org.json</groupId>
@ -157,10 +145,10 @@
<groupId>org.gcube.data.publishing</groupId>
<artifactId>sdmx-registry-client-gcube</artifactId>
<version>[3.0.0-SNAPSHOT,4.0.0-SNAPSHOT)</version>
</dependency>
</dependency>
<!-- Social -->
<dependency>
@ -174,7 +162,7 @@
<artifactId>aslsocial</artifactId>
<scope>provided</scope>
</dependency>
<!-- Apache Common Library -->
<dependency>
@ -231,7 +219,7 @@
<artifactId>home-library-model</artifactId>
<scope>provided</scope>
</dependency>
<!-- Service Client -->
<dependency>
<groupId>org.gcube.data.analysis.tabulardata</groupId>
@ -239,7 +227,7 @@
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
<scope>provided</scope>
</dependency>
<!-- Uri Resolver Manager -->
<dependency>
@ -255,6 +243,13 @@
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
</dependency>
<!-- DataMiner Manager Client Library -->
<dependency>
<groupId>org.gcube.data.analysis</groupId>
<artifactId>data-miner-manager-cl</artifactId>
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
</dependency>
<!-- tabular-data-widget-common-event -->
<dependency>
<groupId>org.gcube.portlets.user</groupId>
@ -262,7 +257,7 @@
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
<scope>provided</scope>
</dependency>
<!-- LOGGING -->
<dependency>

View File

@ -35,7 +35,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.share.ShareRule;
import org.gcube.portlets.user.td.gwtservice.shared.share.ShareTabResource;
import org.gcube.portlets.user.td.gwtservice.shared.share.ShareTemplate;
import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.StatisticalOperationSession;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.DataMinerOperationSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskResubmitSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskResumeSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.ValidationsTasksMetadata;
@ -115,7 +115,6 @@ public interface TDGWTService extends RemoteService {
*/
public UserInfo hello() throws TDGWTServiceException;
/**
* Set locale on server
*
@ -123,7 +122,7 @@ public interface TDGWTService extends RemoteService {
* @throws TDGWTServiceException
*/
public void setLocale(InfoLocale infoLocale) throws TDGWTServiceException;
/**
* Retrieve pending Tasks and set them as background tasks
*
@ -148,8 +147,7 @@ public interface TDGWTService extends RemoteService {
*/
public String getUriFromResolver(UriResolverSession uriResolverSession)
throws TDGWTServiceException;
/**
* Get VRE Folder Id
*
@ -157,8 +155,7 @@ public interface TDGWTService extends RemoteService {
* @throws TDGWTServiceException
*/
public String getVREFolderIdByScope() throws TDGWTServiceException;
// PeriodDataType
/**
* Get list of PeriodDataType
@ -769,8 +766,6 @@ public interface TDGWTService extends RemoteService {
public AvailableCharsetList getAvailableCharsetForExport()
throws TDGWTServiceException;
/**
* Start CSV Export and invokes the client library
*
@ -1233,15 +1228,15 @@ public interface TDGWTService extends RemoteService {
public String startMapCreation(MapCreationSession mapCreationSession)
throws TDGWTServiceException;
// Statistical
// DataMiner
/**
*
* @param statisticalOperationSession
* @param dataMinerOperationSession
* @return
* @throws TDGWTServiceException
*/
public String startStatisticalOperation(
StatisticalOperationSession statisticalOperationSession)
public String startDataMinerOperation(
DataMinerOperationSession dataMinerOperationSession)
throws TDGWTServiceException;
// Chart

View File

@ -34,7 +34,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.share.ShareRule;
import org.gcube.portlets.user.td.gwtservice.shared.share.ShareTabResource;
import org.gcube.portlets.user.td.gwtservice.shared.share.ShareTemplate;
import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.StatisticalOperationSession;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.DataMinerOperationSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskResubmitSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskResumeSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.ValidationsTasksMetadata;
@ -99,8 +99,8 @@ public interface TDGWTServiceAsync {
.create(TDGWTService.class);
void hello(AsyncCallback<UserInfo> callback);
void setLocale(InfoLocale infoLocale,AsyncCallback<Void> callback);
void setLocale(InfoLocale infoLocale, AsyncCallback<Void> callback);
void pendingTasksRetrieve(AsyncCallback<Integer> callback);
@ -108,9 +108,9 @@ public interface TDGWTServiceAsync {
void getUriFromResolver(UriResolverSession uriResolverSession,
AsyncCallback<String> callback);
void getVREFolderIdByScope(AsyncCallback<String> callback);
// PeriodDataType
void getPeriodDataTypes(AsyncCallback<ArrayList<PeriodDataType>> callback);
@ -174,10 +174,10 @@ public interface TDGWTServiceAsync {
void getColumnWithViewColumnIncluded(TRId trId,
AsyncCallback<ArrayList<ColumnData>> callback);
void getColumnWithOnlyViewColumnInRel(TRId trId,
AsyncCallback<ArrayList<ColumnData>> callback);
void getColumnsForStatistical(TRId trId,
AsyncCallback<ArrayList<ColumnData>> callback);
@ -217,12 +217,12 @@ public interface TDGWTServiceAsync {
void getValidationColumns(TRId trId, String columnName,
AsyncCallback<ArrayList<ColumnData>> callback);
void getValidationColumns(String columnLocalId, TRId trId,
AsyncCallback<ArrayList<ColumnData>> callback);
void startValidationsDelete(TRId trId, AsyncCallback<String> callback);
// RollBack
void startRollBack(RollBackSession rollBackSession,
AsyncCallback<String> callback);
@ -234,9 +234,8 @@ public interface TDGWTServiceAsync {
void setShareTemplate(ShareTemplate shareTemplate,
AsyncCallback<Void> callback);
void setShareRule(ShareRule shareRule,
AsyncCallback<Void> callback);
void setShareRule(ShareRule shareRule, AsyncCallback<Void> callback);
// CodelistPagingLoaded
void setCodelistsPagingLoader(AsyncCallback<Void> callback);
@ -286,8 +285,9 @@ public interface TDGWTServiceAsync {
AsyncCallback<String> callback);
// Export CSV
void getAvailableCharsetForExport(AsyncCallback<AvailableCharsetList> callback);
void getAvailableCharsetForExport(
AsyncCallback<AvailableCharsetList> callback);
void startCSVExport(CSVExportSession csvExportSession,
AsyncCallback<String> callback);
@ -327,11 +327,11 @@ public interface TDGWTServiceAsync {
void startLabelColumn(LabelColumnSession labelColumnSession,
AsyncCallback<String> callback);
void startChangeColumnsPosition(ChangeColumnsPositionSession changeColumnsPositionSession,
void startChangeColumnsPosition(
ChangeColumnsPositionSession changeColumnsPositionSession,
AsyncCallback<Void> callback);
/*
* void startSplitColumn(SplitColumnSession
* splitColumnSession,AsyncCallback<Void> callback);
@ -417,12 +417,11 @@ public interface TDGWTServiceAsync {
void getBackgroundOperationMonitor(
BackgroundOperationMonitorSession backgroundOperationMonitorSession,
AsyncCallback<ArrayList<BackgroundOperationMonitor>> callback);
void getBackgroundOperationMonitorForSpecificTask(
OperationMonitorSession operationMonitorSession,
AsyncCallback<OperationMonitor> callback);
// File Upload Monitor
void getFileUploadMonitor(AsyncCallback<FileUploadMonitor> callback);
@ -443,9 +442,10 @@ public interface TDGWTServiceAsync {
void startMapCreation(MapCreationSession mapCreationSession,
AsyncCallback<String> callback);
// Statistical
void startStatisticalOperation(
StatisticalOperationSession statisticalOperationSession,
// DataMiner
void startDataMinerOperation(
DataMinerOperationSession dataMinerOperationSession,
AsyncCallback<String> callback);
// Chart
@ -460,7 +460,7 @@ public interface TDGWTServiceAsync {
void startGeospatialDownscaleCSquare(
GeospatialDownscaleCSquareSession geospatialDownscaleCSquareSession,
AsyncCallback<String> callback);
// Geometry
void startGeometryCreatePoint(
GeometryCreatePointSession geometryCreatePointSession,

View File

@ -74,7 +74,7 @@ public class SessionConstants {
public static final String REPLACE_BY_EXTERNAL_SESSION = "REPLACE_BY_EXTERNAL_SESSION";
public static final String STATISTICAL_OPERATION_SESSION = "STATISTICAL_OPERATION_SESSION";
public static final String DATAMINER_OPERATION_SESSION = "DATAMINER_OPERATION_SESSION";
public static final String NORMALIZATION_SESSION = "NORMALIZATION_SESSION";

View File

@ -42,7 +42,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachTableRulesSession
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXExportSession;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.StatisticalOperationSession;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.DataMinerOperationSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskResubmitSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskResumeSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskWrapper;
@ -1673,25 +1673,25 @@ public class SessionUtil {
}
//
public static StatisticalOperationSession getStatisticalOperationSession(
public static DataMinerOperationSession getDataMinerOperationSession(
HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp<StatisticalOperationSession> sessionOp = new SessionOp<>();
StatisticalOperationSession statisticalOperationSession = sessionOp
SessionOp<DataMinerOperationSession> sessionOp = new SessionOp<>();
DataMinerOperationSession dataMinerOperationSession = sessionOp
.get(httpRequest, serviceCredentials,
SessionConstants.STATISTICAL_OPERATION_SESSION,
StatisticalOperationSession.class);
return statisticalOperationSession;
SessionConstants.DATAMINER_OPERATION_SESSION,
DataMinerOperationSession.class);
return dataMinerOperationSession;
}
public static void setStatisticalOperationSession(
public static void setDataMinerOperationSession(
HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials,
StatisticalOperationSession statisticalOperationSession) {
SessionOp<StatisticalOperationSession> sessionOp = new SessionOp<>();
DataMinerOperationSession dataMinerOperationSession) {
SessionOp<DataMinerOperationSession> sessionOp = new SessionOp<>();
sessionOp.set(httpRequest, serviceCredentials,
SessionConstants.STATISTICAL_OPERATION_SESSION,
statisticalOperationSession);
SessionConstants.DATAMINER_OPERATION_SESSION,
dataMinerOperationSession);
}
//

View File

@ -117,6 +117,7 @@ import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4Chan
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4ChartTopRating;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4Clone;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4CodelistMapping;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4DataMinerOperation;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4DeleteColumn;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4DeleteRows;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4Denormalization;
@ -141,7 +142,6 @@ import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4SDMX
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4SDMXCodelistImport;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4SDMXDatasetExport;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4SplitColumn;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4StatisticalOperation;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4TimeAggregation;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecution4Union;
import org.gcube.portlets.user.td.gwtservice.server.opexecution.OpExecutionDirector;
@ -206,7 +206,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.share.ShareTabResource;
import org.gcube.portlets.user.td.gwtservice.shared.share.ShareTemplate;
import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource;
import org.gcube.portlets.user.td.gwtservice.shared.source.SourceType;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.StatisticalOperationSession;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.DataMinerOperationSession;
import org.gcube.portlets.user.td.gwtservice.shared.task.InvocationS;
import org.gcube.portlets.user.td.gwtservice.shared.task.JobS;
import org.gcube.portlets.user.td.gwtservice.shared.task.JobSClassifier;
@ -9020,13 +9020,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
}
/**
*
* {@inheritDoc}
*/
@Override
public String startStatisticalOperation(
StatisticalOperationSession statisticalOperationSession)
public String startDataMinerOperation(
DataMinerOperationSession dataMinerOperationSession)
throws TDGWTServiceException {
HttpServletRequest httpRequest = null;
try {
@ -9034,16 +9033,16 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
ServiceCredentials serviceCredentials = SessionUtil
.getServiceCredentials(httpRequest);
SessionUtil.setStatisticalOperationSession(httpRequest,
serviceCredentials, statisticalOperationSession);
SessionUtil.setDataMinerOperationSession(httpRequest,
serviceCredentials, dataMinerOperationSession);
TabularDataService service = TabularDataServiceFactory.getService();
checkTRId(statisticalOperationSession.getTrId(), httpRequest,
checkTRId(dataMinerOperationSession.getTrId(), httpRequest,
serviceCredentials);
TabularResourceId tabularResourceId = new TabularResourceId(
Long.valueOf(statisticalOperationSession.getTrId().getId()));
Long.valueOf(dataMinerOperationSession.getTrId().getId()));
TabularResource tabularResource = service
.getTabularResource(tabularResourceId);
@ -9052,8 +9051,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceLocked(tabularResource, httpRequest,
serviceCredentials);
OpExecution4StatisticalOperation opEx = new OpExecution4StatisticalOperation(
service, serviceCredentials, statisticalOperationSession);
OpExecution4DataMinerOperation opEx = new OpExecution4DataMinerOperation(
service, serviceCredentials, dataMinerOperationSession);
OpExecutionDirector director = new OpExecutionDirector();
director.setOperationExecutionBuilder(opEx);
director.constructOperationExecution();
@ -9061,7 +9060,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
if (invocation == null) {
throw new TDGWTServiceException(
"Error Statistical Operation invocation: Operation not supported");
"Error DataMiner Operation invocation: Operation not supported");
}
logger.debug("OperationInvocation: \n" + invocation.toString());
@ -9069,7 +9068,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Start Task on service: TaskId " + trTask.getId());
TaskWrapper taskWrapper = new TaskWrapper(trTask,
UIOperationsId.StatisticalOperation,
statisticalOperationSession.getTrId());
dataMinerOperationSession.getTrId());
SessionUtil.setStartedTask(httpRequest, serviceCredentials,
taskWrapper);
return trTask.getId().getValue();
@ -9083,11 +9082,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
messages.getString(TDGWTServiceMessagesConstants.securityExceptionRights));
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in statistical operation: "
throw new TDGWTServiceException("Error in DataMiner operation: "
+ e.getLocalizedMessage());
}
}
/**
*

View File

@ -0,0 +1,64 @@
package org.gcube.portlets.user.td.gwtservice.server.opexecution;
import java.util.HashMap;
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.service.TabularDataService;
import org.gcube.portlets.user.td.gwtservice.server.trservice.OperationDefinitionMap;
import org.gcube.portlets.user.td.gwtservice.server.util.ServiceCredentials;
import org.gcube.portlets.user.td.gwtservice.shared.Constants;
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
import org.gcube.portlets.user.td.gwtservice.shared.statistical.DataMinerOperationSession;
import org.gcube.portlets.user.td.widgetcommonevent.shared.operations.OperationsId;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Operation DataMiner
*
* @author "Giancarlo Panichi" email: <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class OpExecution4DataMinerOperation extends OpExecutionBuilder {
private static Logger logger = LoggerFactory
.getLogger(OpExecution4DataMinerOperation.class);
private TabularDataService service;
private ServiceCredentials serviceCredentials;
private DataMinerOperationSession dataMinerOperationSession;
public OpExecution4DataMinerOperation(
TabularDataService service,ServiceCredentials serviceCredentials,
DataMinerOperationSession dataMinerOperationSession) {
this.service = service;
this.serviceCredentials = serviceCredentials;
this.dataMinerOperationSession = dataMinerOperationSession;
}
@Override
public void buildOpEx() throws TDGWTServiceException {
OperationExecution invocation = null;
logger.debug(dataMinerOperationSession.toString());
OperationDefinition operationDefinition;
Map<String, Object> map = new HashMap<String, Object>();
operationDefinition = OperationDefinitionMap.map(
OperationsId.StatisticalOperation.toString(), service);
map.put(Constants.PARAMETER_DATAMINER_GCUBETOKEN, serviceCredentials.getToken());
map.put(Constants.PARAMETER_DATAMINER_OPERATOR, dataMinerOperationSession.getOperator());
invocation = new OperationExecution(
operationDefinition.getOperationId(), map);
operationExecutionSpec.setOp(invocation);
}
}

View File

@ -72,6 +72,9 @@ public class Constants {
public static final String PARAMETER_STATISTICAL_OPERATION_PARAMETERS = "smEntries";
public static final String PARAMETER_STATISTICAL_OPERATION_DESCRIPTION = "description";
public static final String PARAMETER_STATISTICAL_OPERATION_TITLE = "title";
public static final String PARAMETER_DATAMINER_GCUBETOKEN = "gcubetoken";
public static final String PARAMETER_DATAMINER_OPERATOR = "operator";
public static final String PARAMETER_ADD_ROW_COMPOSITE_FIELD = "field";
public static final String PARAMETER_ADD_ROW_COMPOSITE_TOSETVALUE = "toSetValue";

View File

@ -0,0 +1,49 @@
/**
*
*/
package org.gcube.portlets.user.td.gwtservice.shared.statistical;
import java.io.Serializable;
import org.gcube.data.analysis.dataminermanagercl.shared.process.Operator;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
/**
*
* @author giancarlo email: <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class DataMinerOperationSession implements Serializable {
private static final long serialVersionUID = -8968614490778086448L;
private TRId trId;
private Operator operator;
public DataMinerOperationSession() {
super();
}
public DataMinerOperationSession(TRId trId, Operator operator) {
super();
this.trId = trId;
this.operator = operator;
}
public TRId getTrId() {
return trId;
}
public void setTrId(TRId trId) {
this.trId = trId;
}
public Operator getOperator() {
return operator;
}
public void setOperator(Operator operator) {
this.operator = operator;
}
}