Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@111456 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-01-22 18:19:41 +00:00
parent b4be32cad8
commit d7495ce2a3
2 changed files with 10 additions and 9 deletions

View File

@ -6609,16 +6609,16 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
director.setOperationExecutionBuilder(opEx);
director.constructOperationExecution();
ArrayList<OperationExecution> invocation = director
ArrayList<OperationExecution> invocations = director
.getListOperationExecution();
if (invocation == null) {
if (invocations == null) {
throw new TDGWTServiceException(
"Error in invocation: Operation not supported");
}
logger.debug("OperationInvocation: \n" + invocation.toString());
Task trTask = service.executeBatch(invocation, tabularResourceId);
logger.debug("OperationInvocation: \n" + invocations.toString());
Task trTask = service.executeBatch(invocations, tabularResourceId);
logger.debug("Start Task on service: TaskId " + trTask.getId());

View File

@ -43,9 +43,8 @@ public class OpExecution4EditRow extends OpExecutionBuilder {
logger.debug(editRowSession.toString());
OperationExecution invocation;
Map<String, Object> map = new HashMap<String, Object>();
ArrayList<OperationExecution> invocations = new ArrayList<OperationExecution>();
ValueMap valueMap = new ValueMap();
@ -59,10 +58,11 @@ public class OpExecution4EditRow extends OpExecutionBuilder {
ArrayList<Map<String, Object>> compositeValue = valueMap
.genValueMap(editRowSession.getTrId(), editRowSession.getColumns(), fieldsMap);
Map<String, Object> map = new HashMap<String, Object>();
map.put(Constants.PARAMETER_ADD_ROW_COMPOSITE, compositeValue);
invocation = new OperationExecution(
OperationExecution invocation = new OperationExecution(
operationDefinition.getOperationId(), map);
invocations.add(invocation);
@ -83,10 +83,11 @@ public class OpExecution4EditRow extends OpExecutionBuilder {
OperationsId.ModifyTuplesValuesByExpression.toString(),
service);
Map<String, Object> map = new HashMap<String, Object>();
map.put(Constants.PARAMETER_ADD_ROW_COMPOSITE, compositeValue);
map.put(Constants.PARAMETER_EDIT_ROW_CONDITION, exp);
invocation = new OperationExecution(
OperationExecution invocation = new OperationExecution(
operationDefinition.getOperationId(), map);
invocations.add(invocation);
}