From 7f3786e363e3490f846eff2eaa51c600915107df Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 4 Mar 2015 17:29:38 +0000 Subject: [PATCH] Updated Position Column git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@113452 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/gwtservice/client/rpc/TDGWTService.java | 2 +- .../td/gwtservice/client/rpc/TDGWTServiceAsync.java | 2 +- .../user/td/gwtservice/server/TDGWTServiceImpl.java | 11 ++++------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTService.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTService.java index ec080c4..4dbfab7 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTService.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTService.java @@ -832,7 +832,7 @@ public interface TDGWTService extends RemoteService { * @return * @throws TDGWTServiceException */ - public String startChangeColumnsPosition(ChangeColumnsPositionSession changeColumnsPositionSession) + public void startChangeColumnsPosition(ChangeColumnsPositionSession changeColumnsPositionSession) throws TDGWTServiceException; /** diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTServiceAsync.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTServiceAsync.java index 0f56bfe..d9ac6ff 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTServiceAsync.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTServiceAsync.java @@ -310,7 +310,7 @@ public interface TDGWTServiceAsync { AsyncCallback callback); void startChangeColumnsPosition(ChangeColumnsPositionSession changeColumnsPositionSession, - AsyncCallback callback); + AsyncCallback callback); /* diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java index da5ff7b..d15dc03 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java @@ -7982,7 +7982,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements * {@inheritDoc} */ @Override - public String startChangeColumnsPosition(ChangeColumnsPositionSession changeColumnsPositionSession) + public void startChangeColumnsPosition(ChangeColumnsPositionSession changeColumnsPositionSession) throws TDGWTServiceException { try { HttpSession session = this.getThreadLocalRequest().getSession(); @@ -8017,12 +8017,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements } logger.debug("OperationInvocation: \n" + invocation.toString()); - Task trTask = service.execute(invocation, tabularResourceId); - logger.debug("Start Task on service: TaskId " + trTask.getId()); - TaskWrapper taskWrapper = new TaskWrapper(trTask, - UIOperationsId.ChangeColumnsPosition, changeColumnsPositionSession.getTrId()); - SessionUtil.setStartedTask(session, taskWrapper); - return trTask.getId().getValue(); + service.executeSynchMetadataOperation(invocation, tabularResourceId); + + return; } catch (TDGWTServiceException e) { throw e;