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;