refs 6548: TDM - Migrate TabMan to new PortalContext

Task-Url: https://support.d4science.org/issues/6548

Updated to new PortalContext

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-codelistmapping-import-widget@141733 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-01-24 11:55:16 +00:00
parent 6a8e4ff3ce
commit 54b31eea81
4 changed files with 16 additions and 8 deletions

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" output="target/tabular-data-codelistmapping-import-widget-1.7.0-SNAPSHOT/WEB-INF/classes" path="src/main/java"> <classpathentry kind="src" output="target/tabular-data-codelistmapping-import-widget-1.8.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<attributes> <attributes>
<attribute name="optional" value="true"/> <attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry excluding="**" kind="src" output="target/tabular-data-codelistmapping-import-widget-1.7.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources"> <classpathentry excluding="**" kind="src" output="target/tabular-data-codelistmapping-import-widget-1.8.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
@ -33,5 +33,5 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/> <attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="output" path="target/tabular-data-codelistmapping-import-widget-1.7.0-SNAPSHOT/WEB-INF/classes"/> <classpathentry kind="output" path="target/tabular-data-codelistmapping-import-widget-1.8.0-SNAPSHOT/WEB-INF/classes"/>
</classpath> </classpath>

View File

@ -1,4 +1,8 @@
<ReleaseNotes> <ReleaseNotes>
<Changeset component="org.gcube.portlets-user.tabular-data-codelistmapping-import-widget.1-8-0"
date="2017-02-15">
<Change>Updated to new PortalContext [task #6548]</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.tabular-data-codelistmapping-import-widget.1-7-0" <Changeset component="org.gcube.portlets-user.tabular-data-codelistmapping-import-widget.1-7-0"
date="2015-10-15"> date="2015-10-15">
<Change>Added support to WorkspaceExplorer[ticket #428]</Change> <Change>Added support to WorkspaceExplorer[ticket #428]</Change>

View File

@ -13,7 +13,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.portlets.user</groupId> <groupId>org.gcube.portlets.user</groupId>
<artifactId>tabular-data-codelistmapping-import-widget</artifactId> <artifactId>tabular-data-codelistmapping-import-widget</artifactId>
<version>1.7.0-SNAPSHOT</version> <version>1.8.0-SNAPSHOT</version>
<name>tabular-data-codelistmapping-import-widget</name> <name>tabular-data-codelistmapping-import-widget</name>
<description>tabular-data-codelistmapping-import-widget allows import from url, file and workspace of maps for codelist</description> <description>tabular-data-codelistmapping-import-widget allows import from url, file and workspace of maps for codelist</description>

View File

@ -3,9 +3,11 @@
*/ */
package org.gcube.portlets.user.td.codelistmappingimportwidget.client; package org.gcube.portlets.user.td.codelistmappingimportwidget.client;
import org.gcube.portal.clientcontext.client.GCubeClientContext;
import org.gcube.portlets.user.td.codelistmappingimportwidget.client.progress.FileUploadProgressBarUpdater; import org.gcube.portlets.user.td.codelistmappingimportwidget.client.progress.FileUploadProgressBarUpdater;
import org.gcube.portlets.user.td.codelistmappingimportwidget.client.progress.FileUploadProgressListener; import org.gcube.portlets.user.td.codelistmappingimportwidget.client.progress.FileUploadProgressListener;
import org.gcube.portlets.user.td.codelistmappingimportwidget.client.progress.FileUploadProgressUpdater; import org.gcube.portlets.user.td.codelistmappingimportwidget.client.progress.FileUploadProgressUpdater;
import org.gcube.portlets.user.td.gwtservice.shared.Constants;
import org.gcube.portlets.user.td.gwtservice.shared.codelisthelper.CodelistMappingSession; import org.gcube.portlets.user.td.gwtservice.shared.codelisthelper.CodelistMappingSession;
import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages; import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages;
import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle; import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle;
@ -145,7 +147,8 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
|| fileUploadField.getValue().equals("")) { || fileUploadField.getValue().equals("")) {
Log.info("fileUploadField is null or empty"); Log.info("fileUploadField is null or empty");
AlertMessageBox alertMessageBox = new AlertMessageBox( AlertMessageBox alertMessageBox = new AlertMessageBox(
msgsCommon.attention(), msgs.attentionSpecifyAXmlFile()); msgsCommon.attention(), msgs
.attentionSpecifyAXmlFile());
alertMessageBox.show(); alertMessageBox.show();
return; return;
} else { } else {
@ -172,8 +175,8 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
public void operationFailed(Throwable caught, String reason, public void operationFailed(Throwable caught, String reason,
String failureDetails) { String failureDetails) {
card.showErrorAndHide(msgs.errorUploadingTheXMLFileHead(), reason, card.showErrorAndHide(msgs.errorUploadingTheXMLFileHead(),
"", caught); reason, "", caught);
} }
public void operationComplete() { public void operationComplete() {
@ -190,7 +193,8 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
StringBuilder actionUrl = new StringBuilder(); StringBuilder actionUrl = new StringBuilder();
actionUrl.append(GWT.getModuleBaseURL()); actionUrl.append(GWT.getModuleBaseURL());
actionUrl.append(UPLOAD_SERVLET); actionUrl.append(UPLOAD_SERVLET + "?" + Constants.CURR_GROUP_ID + "="
+ GCubeClientContext.getCurrentContextId());
setAction(actionUrl.toString()); setAction(actionUrl.toString());
Log.info("Start Upload action Url " + actionUrl.toString()); Log.info("Start Upload action Url " + actionUrl.toString());
submit(); submit();