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:
parent
e84711267e
commit
7f5474fff9
|
@ -27,6 +27,7 @@ import org.gcube.common.homelibrary.home.workspace.Workspace;
|
||||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
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.AuthorizationProvider;
|
||||||
import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken;
|
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.OperationDefinition;
|
||||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution;
|
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution;
|
||||||
import org.gcube.data.analysis.tabulardata.metadata.NoSuchMetadataException;
|
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.impl.TabularDataServiceFactory;
|
||||||
import org.gcube.data.analysis.tabulardata.service.operation.OperationInterface;
|
import org.gcube.data.analysis.tabulardata.service.operation.OperationInterface;
|
||||||
import org.gcube.data.analysis.tabulardata.service.operation.Task;
|
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.TabularResource;
|
||||||
import org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId;
|
import org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceId;
|
||||||
import org.gcube.data.analysis.tabulardata.service.tabular.TabularResourceInterface;
|
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.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
||||||
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1689,7 +1688,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
if (tMetadata instanceof GenericMapMetadata) {
|
if (tMetadata instanceof GenericMapMetadata) {
|
||||||
TabGenericMapMetadata trGenericMapMetadata = new TabGenericMapMetadata();
|
TabGenericMapMetadata trGenericMapMetadata = new TabGenericMapMetadata();
|
||||||
trGenericMapMetadata
|
trGenericMapMetadata
|
||||||
.setMetadataMap(((GenericMapMetadata) tMetadata)
|
.setMetadataMap((HashMap<String, String>) ((GenericMapMetadata) tMetadata)
|
||||||
.getMetadataMap());
|
.getMetadataMap());
|
||||||
listTabMetadata
|
listTabMetadata
|
||||||
.add(trGenericMapMetadata);
|
.add(trGenericMapMetadata);
|
||||||
|
@ -2175,7 +2174,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
throws TDGWTServiceException {
|
throws TDGWTServiceException {
|
||||||
try {
|
try {
|
||||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||||
//ASLSession aslSession = SessionUtil.getAslSession(session);
|
// ASLSession aslSession = SessionUtil.getAslSession(session);
|
||||||
ChangeColumnTypeSession changeColumnTypeSession = SessionUtil
|
ChangeColumnTypeSession changeColumnTypeSession = SessionUtil
|
||||||
.getChangeColumnTypeSession(session);
|
.getChangeColumnTypeSession(session);
|
||||||
|
|
||||||
|
@ -2216,14 +2215,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
changeColumnTypeMonitor.setProgress(task.getProgress());
|
changeColumnTypeMonitor.setProgress(task.getProgress());
|
||||||
Table table = task.getResult().getPrimaryTable();
|
Table table = task.getResult().getPrimaryTable();
|
||||||
logger.debug("Table retrived: " + table.toString());
|
logger.debug("Table retrived: " + table.toString());
|
||||||
TRId trId=new TRId();
|
TRId trId = new TRId();
|
||||||
trId.setId(changeColumnTypeSession
|
trId.setId(changeColumnTypeSession.getTrId().getId());
|
||||||
.getTrId().getId());
|
trId.setTableId(String
|
||||||
trId.setTableId(String.valueOf(table.getId()
|
.valueOf(table.getId().getValue()));
|
||||||
.getValue()));
|
|
||||||
trId.setTableType(table.getTableType().getName());
|
trId.setTableType(table.getTableType().getName());
|
||||||
changeColumnTypeMonitor.setTrId(trId);
|
changeColumnTypeMonitor.setTrId(trId);
|
||||||
TabResource tabResource=SessionUtil.getTabResource(session);
|
TabResource tabResource = SessionUtil
|
||||||
|
.getTabResource(session);
|
||||||
tabResource.setTrId(trId);
|
tabResource.setTrId(trId);
|
||||||
SessionUtil.setTabResource(session, tabResource);
|
SessionUtil.setTabResource(session, tabResource);
|
||||||
SessionUtil.setTRId(session, trId);
|
SessionUtil.setTRId(session, trId);
|
||||||
|
|
Loading…
Reference in New Issue