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"?>
<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>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</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>
<attribute name="maven.pomderived" value="true"/>
</attributes>
@ -33,5 +33,5 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</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>

View File

@ -1,4 +1,8 @@
<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"
date="2015-10-15">
<Change>Added support to WorkspaceExplorer[ticket #428]</Change>

View File

@ -13,7 +13,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.portlets.user</groupId>
<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>
<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;
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.FileUploadProgressListener;
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.widgetcommonevent.client.CommonMessages;
import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle;
@ -145,7 +147,8 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
|| fileUploadField.getValue().equals("")) {
Log.info("fileUploadField is null or empty");
AlertMessageBox alertMessageBox = new AlertMessageBox(
msgsCommon.attention(), msgs.attentionSpecifyAXmlFile());
msgsCommon.attention(), msgs
.attentionSpecifyAXmlFile());
alertMessageBox.show();
return;
} else {
@ -172,8 +175,8 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
public void operationFailed(Throwable caught, String reason,
String failureDetails) {
card.showErrorAndHide(msgs.errorUploadingTheXMLFileHead(), reason,
"", caught);
card.showErrorAndHide(msgs.errorUploadingTheXMLFileHead(),
reason, "", caught);
}
public void operationComplete() {
@ -190,7 +193,8 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
StringBuilder actionUrl = new StringBuilder();
actionUrl.append(GWT.getModuleBaseURL());
actionUrl.append(UPLOAD_SERVLET);
actionUrl.append(UPLOAD_SERVLET + "?" + Constants.CURR_GROUP_ID + "="
+ GCubeClientContext.getCurrentContextId());
setAction(actionUrl.toString());
Log.info("Start Upload action Url " + actionUrl.toString());
submit();