From 56a3a69eabc210afd767c5e4d34171086f0a5c28 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 29 May 2015 13:55:21 +0000 Subject: [PATCH] 180: TDM - Portlets must support Storage Id in communications with service Task-Url: https://support.d4science.org/issues/180 Updated dependency git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-resources-widget@115151 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/resourceswidget/client/ResourcesPanel.java | 4 ++-- .../td/resourceswidget/client/charts/ChartViewerPanel.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/ResourcesPanel.java b/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/ResourcesPanel.java index 6ab7ac6..f439071 100644 --- a/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/ResourcesPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/ResourcesPanel.java @@ -709,7 +709,7 @@ public class ResourcesPanel extends FramedPanel { if (resource instanceof InternalURITD) { InternalURITD internalURITD = (InternalURITD) resource; UriResolverSession uriResolverSession = new UriResolverSession( - internalURITD.getUrl(), ApplicationType.GIS); + internalURITD.getId(), ApplicationType.GIS); TDGWTServiceAsync.INSTANCE.getUriFromResolver( uriResolverSession, new AsyncCallback() { @@ -755,7 +755,7 @@ public class ResourcesPanel extends FramedPanel { if (resource instanceof InternalURITD) { InternalURITD genericFileResourceTD = (InternalURITD) resource; UriResolverSession uriResolverSession = new UriResolverSession( - genericFileResourceTD.getUrl(), ApplicationType.SMP_ID, + genericFileResourceTD.getId(), ApplicationType.SMP_ID, resourceTDDescriptor.getName(), genericFileResourceTD.getMimeType()); diff --git a/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/charts/ChartViewerPanel.java b/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/charts/ChartViewerPanel.java index 41088a7..e444309 100644 --- a/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/charts/ChartViewerPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/charts/ChartViewerPanel.java @@ -196,7 +196,7 @@ public class ChartViewerPanel extends FramedPanel { protected void retrieveUrlFromResolver() { UriResolverSession uriResolverSession = new UriResolverSession( - internalURITD.getUrl(), ApplicationType.SMP_ID, + internalURITD.getId(), ApplicationType.SMP_ID, resourceTDDescriptor.getName(), internalURITD.getMimeType()); TDGWTServiceAsync.INSTANCE.getUriFromResolver(uriResolverSession,