From 7f5474fff9bd162e1284b50591bad32c0fc31992 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 6 Feb 2014 16:44:32 +0000 Subject: [PATCH] Added Change Column To Measure git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@90992 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gwtservice/server/TDGWTServiceImpl.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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 c162145..6bdb575 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 @@ -27,6 +27,7 @@ import org.gcube.common.homelibrary.home.workspace.Workspace; import org.gcube.common.homelibrary.home.workspace.WorkspaceItem; import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationProvider; import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken; +import org.gcube.data.analysis.tabulardata.commons.webservice.types.TaskStatus; 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.metadata.NoSuchMetadataException; @@ -48,7 +49,6 @@ import org.gcube.data.analysis.tabulardata.service.exception.NoSuchTabularResour import org.gcube.data.analysis.tabulardata.service.impl.TabularDataServiceFactory; import org.gcube.data.analysis.tabulardata.service.operation.OperationInterface; import org.gcube.data.analysis.tabulardata.service.operation.Task; -import org.gcube.data.analysis.tabulardata.commons.webservice.types.TaskStatus; import org.gcube.data.analysis.tabulardata.service.tabular.TabularResource; import org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId; import org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface; @@ -113,7 +113,6 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnTypeC import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.server.rpc.RemoteServiceServlet; /** @@ -1689,7 +1688,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements if (tMetadata instanceof GenericMapMetadata) { TabGenericMapMetadata trGenericMapMetadata = new TabGenericMapMetadata(); trGenericMapMetadata - .setMetadataMap(((GenericMapMetadata) tMetadata) + .setMetadataMap((HashMap) ((GenericMapMetadata) tMetadata) .getMetadataMap()); listTabMetadata .add(trGenericMapMetadata); @@ -2175,7 +2174,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements throws TDGWTServiceException { try { HttpSession session = this.getThreadLocalRequest().getSession(); - //ASLSession aslSession = SessionUtil.getAslSession(session); + // ASLSession aslSession = SessionUtil.getAslSession(session); ChangeColumnTypeSession changeColumnTypeSession = SessionUtil .getChangeColumnTypeSession(session); @@ -2216,14 +2215,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements changeColumnTypeMonitor.setProgress(task.getProgress()); Table table = task.getResult().getPrimaryTable(); logger.debug("Table retrived: " + table.toString()); - TRId trId=new TRId(); - trId.setId(changeColumnTypeSession - .getTrId().getId()); - trId.setTableId(String.valueOf(table.getId() - .getValue())); + TRId trId = new TRId(); + trId.setId(changeColumnTypeSession.getTrId().getId()); + trId.setTableId(String + .valueOf(table.getId().getValue())); trId.setTableType(table.getTableType().getName()); changeColumnTypeMonitor.setTrId(trId); - TabResource tabResource=SessionUtil.getTabResource(session); + TabResource tabResource = SessionUtil + .getTabResource(session); tabResource.setTrId(trId); SessionUtil.setTabResource(session, tabResource); SessionUtil.setTRId(session, trId);