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
This commit is contained in:
Giancarlo Panichi 2014-02-06 16:44:32 +00:00
parent e84711267e
commit 7f5474fff9
1 changed files with 9 additions and 10 deletions

View File

@ -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<String, String>) ((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);