Minor update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@100828 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a9867497e8
commit
56a6981e1a
|
@ -3991,10 +3991,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error in CSVExport: Operation not supported for now!");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(trId.getId()));
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
UIOperationsId.CSVExport, trId);
|
||||
|
@ -4066,10 +4065,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error in JSONExport: Operation not supported for now!");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(trId.getId()));
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
UIOperationsId.JSONExport, trId);
|
||||
|
@ -4134,11 +4132,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error in ChangeColumnType: Operation not supported for now!");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(changeColumnTypeSession.getColumnData()
|
||||
.getTrId().getId()));
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
UIOperationsId.ChangeColumnType, changeColumnTypeSession
|
||||
|
@ -4197,10 +4193,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error Add Column: Operation not supported for now!");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(addColumnSession.getTrId().getId()));
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
|
@ -4262,10 +4256,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error Delete Column: Operation not supported for now!");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(deleteColumnSession.getTrId().getId()));
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.executeBatch(invocation, serviceTR);
|
||||
Task trTask = service.executeBatch(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
|
@ -4337,12 +4329,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
throw new TDGWTServiceException(
|
||||
"Error in invocation: Operation not supported");
|
||||
}
|
||||
Long id = Long.valueOf(filterColumnSession.getColumn().getTrId()
|
||||
.getId());
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(id);
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Filter Column on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
|
@ -4419,15 +4407,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
throw new TDGWTServiceException(
|
||||
"Error in invocation: Operation not supported");
|
||||
}
|
||||
Long id = Long.valueOf(replaceColumnByExpressionSession.getColumn()
|
||||
.getTrId().getId());
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(id);
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
|
||||
logger.debug("Start Replace on Service:"
|
||||
+ sdfPerformance.format(new Date()));
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Replace returned task:"
|
||||
+ sdfPerformance.format(new Date()));
|
||||
|
||||
|
@ -4492,10 +4477,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
if (invocations == null) {
|
||||
throw new TDGWTServiceException("Operation not supported");
|
||||
}
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(labelColumnSession.getTrId().getId()));
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocations);
|
||||
Task trTask = service.executeBatch(invocations, serviceTR);
|
||||
Task trTask = service.executeBatch(invocations, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
UIOperationsId.ChangeColumnLabel,
|
||||
|
@ -4557,10 +4541,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error Change Table Type invocation: Operation not supported");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(changeTableTypeSession.getTrId().getId()));
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
|
@ -4738,10 +4720,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error Delete Rows invocation: Operation not supported");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(deleteRowsSession.getTrId().getId()));
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
|
@ -4804,14 +4785,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
throw new TDGWTServiceException(
|
||||
"Error in invocation: Operation not supported");
|
||||
}
|
||||
Long id = Long.valueOf(cloneTabularResourceSession.getTrId()
|
||||
.getId());
|
||||
|
||||
TabularResourceId serviceTRId = new TabularResourceId(id);
|
||||
TabularResource serviceTR = service.getTabularResource(serviceTRId);
|
||||
|
||||
|
||||
|
||||
|
||||
TabularResource cloneTR = service.createTabularResource();
|
||||
cloneTR.setAllMetadata(serviceTR.getAllMetadata());
|
||||
cloneTR.setAllMetadata(tabularResource.getAllMetadata());
|
||||
NameMetadata nameMetadata = cloneTR.getMetadata(NameMetadata.class);
|
||||
String name;
|
||||
if (nameMetadata != null) {
|
||||
|
@ -4895,10 +4874,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error Delete Rows invocation: Operation not supported");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(duplicatesSession.getTrId().getId()));
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
|
@ -5520,10 +5498,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"Error Replace Column Value invocation: Operation not supported");
|
||||
}
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(
|
||||
Long.valueOf(replaceColumnSession.getTrId().getId()));
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
|
@ -5588,10 +5565,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
if (invocations == null) {
|
||||
throw new TDGWTServiceException("Operation not supported");
|
||||
}
|
||||
TabularResourceId serviceTRId = new TabularResourceId(
|
||||
Long.valueOf(replaceBatchColumnSession.getTrId().getId()));
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocations.toString());
|
||||
Task trTask = service.executeBatch(invocations, serviceTRId);
|
||||
Task trTask = service.executeBatch(invocations, tabularResourceId);
|
||||
if (trTask == null) {
|
||||
logger.error("Error on service Task null");
|
||||
throw new TDGWTServiceException("Task not started");
|
||||
|
@ -6187,11 +6163,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
throw new TDGWTServiceException(
|
||||
"Error in invocation: Operation not supported");
|
||||
}
|
||||
Long id = Long.valueOf(editRowSession.getTrId().getId());
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(id);
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
|
@ -6509,11 +6483,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
throw new TDGWTServiceException(
|
||||
"Error in invocation: Operation not supported");
|
||||
}
|
||||
Long id = Long.valueOf(extractCodelistSession.getTrId().getId());
|
||||
|
||||
TabularResourceId serviceTR = new TabularResourceId(id);
|
||||
|
||||
logger.debug("OperationInvocation: \n" + invocation.toString());
|
||||
Task trTask = service.execute(invocation, serviceTR);
|
||||
Task trTask = service.execute(invocation, tabularResourceId);
|
||||
logger.debug("Extract Codelist on service: TaskId "
|
||||
+ trTask.getId());
|
||||
|
||||
|
|
Loading…
Reference in New Issue