Updated to new PortalContext
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@141687 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
bce05ddae9
commit
ef992b212e
|
@ -3,11 +3,11 @@ package org.gcube.portlets.user.td.gwtservice.server.opexecution;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.gcube.application.framework.core.session.ASLSession;
|
||||
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.StatisticalOperationSession;
|
||||
|
@ -27,15 +27,15 @@ public class OpExecution4StatisticalOperation extends OpExecutionBuilder {
|
|||
.getLogger(OpExecution4StatisticalOperation.class);
|
||||
|
||||
private TabularDataService service;
|
||||
private ASLSession aslSession;
|
||||
private ServiceCredentials serviceCredentials;
|
||||
private StatisticalOperationSession statisticalOperationSession;
|
||||
|
||||
|
||||
public OpExecution4StatisticalOperation(
|
||||
TabularDataService service,ASLSession aslSession,
|
||||
TabularDataService service,ServiceCredentials serviceCredentials,
|
||||
StatisticalOperationSession statisticalOperationSession) {
|
||||
this.service = service;
|
||||
this.aslSession = aslSession;
|
||||
this.serviceCredentials = serviceCredentials;
|
||||
this.statisticalOperationSession = statisticalOperationSession;
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ public class OpExecution4StatisticalOperation extends OpExecutionBuilder {
|
|||
operationDefinition = OperationDefinitionMap.map(
|
||||
OperationsId.StatisticalOperation.toString(), service);
|
||||
|
||||
map.put(Constants.PARAMETER_STATISTICAL_OPERATION_USER, aslSession.getUsername());
|
||||
map.put(Constants.PARAMETER_STATISTICAL_OPERATION_USER, serviceCredentials.getUserName());
|
||||
map.put(Constants.PARAMETER_STATISTICAL_OPERATION_ALGORITHM, statisticalOperationSession.getOperatorId());
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue