refactored with new Workspace Navigator instead of Workspace light tree
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@119132 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
03769055d4
commit
8ca1678cf4
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="target/reports-4.13.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
<classpathentry kind="src" output="target/reports-5.0.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"/>
|
||||||
|
@ -31,5 +31,5 @@
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/reports-4.13.0-SNAPSHOT/WEB-INF/classes"/>
|
<classpathentry kind="output" path="target/reports-5.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
|
||||||
<dependent-module archiveName="workspace-light-tree-2.14.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/workspace-light-tree/workspace-light-tree">
|
<dependent-module archiveName="gcube-reporting-modeler-1.3.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/gcube-reporting-modeler/gcube-reporting-modeler">
|
||||||
<dependency-type>uses</dependency-type>
|
<dependency-type>uses</dependency-type>
|
||||||
</dependent-module>
|
</dependent-module>
|
||||||
<dependent-module archiveName="gcube-reporting-library-3.6.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/gcube-reporting-library/gcube-reporting-library">
|
<dependent-module archiveName="gcube-reporting-library-3.6.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/gcube-reporting-library/gcube-reporting-library">
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}
|
6
pom.xml
6
pom.xml
|
@ -12,7 +12,7 @@
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
<artifactId>reports</artifactId>
|
<artifactId>reports</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<version>4.13.0-SNAPSHOT</version>
|
<version>5.0.0-SNAPSHOT</version>
|
||||||
<name>gCube Reports Manager</name>
|
<name>gCube Reports Manager</name>
|
||||||
<description>
|
<description>
|
||||||
gCube Reports Portlet.
|
gCube Reports Portlet.
|
||||||
|
@ -158,8 +158,8 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.widgets</groupId>
|
<groupId>org.gcube.portlets.widgets</groupId>
|
||||||
<artifactId>workspace-light-tree</artifactId>
|
<artifactId>workspace-explorer</artifactId>
|
||||||
<version>[2.13.1-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.admin</groupId>
|
<groupId>org.gcube.portlets.admin</groupId>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.gcube.portlets.user.reportgenerator.client;
|
package org.gcube.portlets.user.reportgenerator.client;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.gcube.portlets.d4sreporting.common.shared.Metadata;
|
import org.gcube.portlets.d4sreporting.common.shared.Metadata;
|
||||||
|
@ -12,10 +13,10 @@ import org.gcube.portlets.user.reportgenerator.client.dialog.PagePropertiesDialo
|
||||||
import org.gcube.portlets.user.reportgenerator.client.model.ExportManifestationType;
|
import org.gcube.portlets.user.reportgenerator.client.model.ExportManifestationType;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
|
import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
|
||||||
import org.gcube.portlets.user.reportgenerator.shared.VMETypeIdentifier;
|
import org.gcube.portlets.user.reportgenerator.shared.VMETypeIdentifier;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
import org.gcube.portlets.widgets.wsexplorer.shared.*;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupEvent;
|
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSelectNotification.WorskpaceExplorerSelectNotificationListener;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupHandler;
|
import org.gcube.portlets.widgets.wsexplorer.client.select.WorkspaceExplorerSelectDialog;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
import org.gcube.portlets.widgets.wsexplorer.shared.FilterCriteria;
|
||||||
|
|
||||||
import com.extjs.gxt.ui.client.widget.MessageBox;
|
import com.extjs.gxt.ui.client.widget.MessageBox;
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
|
@ -53,7 +54,7 @@ public class Headerbar extends Composite{
|
||||||
private static final String EXPORT_FIMES = "Export to FiMES XML";
|
private static final String EXPORT_FIMES = "Export to FiMES XML";
|
||||||
private static final String EXPORT_XML = "Export to XML";
|
private static final String EXPORT_XML = "Export to XML";
|
||||||
private static final String IMPORT_VME = "Edit VME";
|
private static final String IMPORT_VME = "Edit VME";
|
||||||
// private static final String EXPORT_ENCRYPTED_REPORT = "Save an Encrypted Version to Desktop";
|
// private static final String EXPORT_ENCRYPTED_REPORT = "Save an Encrypted Version to Desktop";
|
||||||
|
|
||||||
private static final String VIEW_USER_COMMENTS = "View user comments";
|
private static final String VIEW_USER_COMMENTS = "View user comments";
|
||||||
|
|
||||||
|
@ -285,7 +286,7 @@ public class Headerbar extends Composite{
|
||||||
|
|
||||||
MessageBox.alert("Alert",
|
MessageBox.alert("Alert",
|
||||||
"Export is disabled for templates, please save this template as a Report and retry." +
|
"Export is disabled for templates, please save this template as a Report and retry." +
|
||||||
" If you just saved this Template as a Report please save it and reopen the Report", null);
|
" If you just saved this Template as a Report please save it and reopen the Report", null);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return disabledExportMenuItemCmd;
|
return disabledExportMenuItemCmd;
|
||||||
|
@ -420,17 +421,17 @@ public class Headerbar extends Composite{
|
||||||
});
|
});
|
||||||
importMenu.addItem(item);
|
importMenu.addItem(item);
|
||||||
|
|
||||||
// item = new MenuItem("Edit Rfmo", true, new Command() {
|
// item = new MenuItem("Edit Rfmo", true, new Command() {
|
||||||
// public void execute() {
|
// public void execute() {
|
||||||
// presenter.showVMEReportRefImportDialog(VMETypeIdentifier.Rfmo);
|
// presenter.showVMEReportRefImportDialog(VMETypeIdentifier.Rfmo);
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
// importMenu.addItem(item);
|
// importMenu.addItem(item);
|
||||||
|
|
||||||
//
|
//
|
||||||
// importMenu.addSeparator();
|
// importMenu.addSeparator();
|
||||||
// MenuItem exportVME = new MenuItem("Export Current to VME-DB", true, importVMEReport);
|
// MenuItem exportVME = new MenuItem("Export Current to VME-DB", true, importVMEReport);
|
||||||
// importMenu.addItem(exportVME);
|
// importMenu.addItem(exportVME);
|
||||||
|
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
|
@ -531,7 +532,7 @@ public class Headerbar extends Composite{
|
||||||
optionHTML = new MenuItem("<font color=\"gray\">"+ EXPORT_HTML +"</font>", true, getDisabledExportMenuItemCmd());
|
optionHTML = new MenuItem("<font color=\"gray\">"+ EXPORT_HTML +"</font>", true, getDisabledExportMenuItemCmd());
|
||||||
optionFimes = new MenuItem("<font color=\"gray\">"+ EXPORT_FIMES +"</font>", true, getDisabledExportMenuItemCmd());
|
optionFimes = new MenuItem("<font color=\"gray\">"+ EXPORT_FIMES +"</font>", true, getDisabledExportMenuItemCmd());
|
||||||
optionXML = new MenuItem("<font color=\"gray\">"+ EXPORT_XML +"</font>", true, getDisabledExportMenuItemCmd());
|
optionXML = new MenuItem("<font color=\"gray\">"+ EXPORT_XML +"</font>", true, getDisabledExportMenuItemCmd());
|
||||||
// optionEncryptedModel = new MenuItem("<font color=\"gray\">"+ EXPORT_ENCRYPTED_REPORT +"</font>", true, getDisabledExportMenuItemCmd());
|
// optionEncryptedModel = new MenuItem("<font color=\"gray\">"+ EXPORT_ENCRYPTED_REPORT +"</font>", true, getDisabledExportMenuItemCmd());
|
||||||
|
|
||||||
|
|
||||||
exportsMenu.addItem(optionDOCX);
|
exportsMenu.addItem(optionDOCX);
|
||||||
|
@ -539,7 +540,7 @@ public class Headerbar extends Composite{
|
||||||
exportsMenu.addItem(optionPDF);
|
exportsMenu.addItem(optionPDF);
|
||||||
exportsMenu.addItem(optionXML);
|
exportsMenu.addItem(optionXML);
|
||||||
exportsMenu.addSeparator();
|
exportsMenu.addSeparator();
|
||||||
// exportsMenu.addItem(optionEncryptedModel);
|
// exportsMenu.addItem(optionEncryptedModel);
|
||||||
//optionsMenu.addItem(optionPDF);
|
//optionsMenu.addItem(optionPDF);
|
||||||
//exportsMenu.addItem(optionFimes);
|
//exportsMenu.addItem(optionFimes);
|
||||||
|
|
||||||
|
@ -599,18 +600,18 @@ public class Headerbar extends Composite{
|
||||||
optionXML.setHTML(EXPORT_XML);
|
optionXML.setHTML(EXPORT_XML);
|
||||||
optionXML.setScheduledCommand(generatedXML);
|
optionXML.setScheduledCommand(generatedXML);
|
||||||
|
|
||||||
// optionEncryptedModel.setHTML(EXPORT_ENCRYPTED_REPORT);
|
// optionEncryptedModel.setHTML(EXPORT_ENCRYPTED_REPORT);
|
||||||
|
|
||||||
//
|
//
|
||||||
// importModel.setHTML("Import from Template or Report");
|
// importModel.setHTML("Import from Template or Report");
|
||||||
// importModel.setScheduledCommand(importModelOrReport);
|
// importModel.setScheduledCommand(importModelOrReport);
|
||||||
//
|
//
|
||||||
// viewMetadata.setHTML("View Metadata");
|
// viewMetadata.setHTML("View Metadata");
|
||||||
// viewMetadata.setScheduledCommand(openMetadata);
|
// viewMetadata.setScheduledCommand(openMetadata);
|
||||||
|
|
||||||
|
|
||||||
// discardSection.setHTML("Discard current");
|
// discardSection.setHTML("Discard current");
|
||||||
// discardSection.setScheduledCommand(discardSectionCom);
|
// discardSection.setScheduledCommand(discardSectionCom);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -691,10 +692,10 @@ public class Headerbar extends Composite{
|
||||||
fileMenu.addItem("Save", saveReport);
|
fileMenu.addItem("Save", saveReport);
|
||||||
fileMenu.addItem("Save As ..", saveReportAs);
|
fileMenu.addItem("Save As ..", saveReportAs);
|
||||||
fileMenu.addSeparator();
|
fileMenu.addSeparator();
|
||||||
// fileMenu.addItem("Import from FiMES XML", importFimes);
|
// fileMenu.addItem("Import from FiMES XML", importFimes);
|
||||||
fileMenu.addItem("Close Report", cmd.newTemplate);
|
fileMenu.addItem("Close Report", cmd.newTemplate);
|
||||||
fileMenu.addSeparator();
|
fileMenu.addSeparator();
|
||||||
// fileMenu.addItem("? Open User's Guide", openHelp);
|
// fileMenu.addItem("? Open User's Guide", openHelp);
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -722,7 +723,7 @@ public class Headerbar extends Composite{
|
||||||
|
|
||||||
ScheduledCommand generatePDF = new ScheduledCommand() {
|
ScheduledCommand generatePDF = new ScheduledCommand() {
|
||||||
public void execute() {
|
public void execute() {
|
||||||
// Window.alert("PDF Exporting may not be fully working, you can also generate a PDF using your Word Processor application starting from the docx exported file");
|
// Window.alert("PDF Exporting may not be fully working, you can also generate a PDF using your Word Processor application starting from the docx exported file");
|
||||||
presenter.generateManifestation(templateModel, ExportManifestationType.PDF);
|
presenter.generateManifestation(templateModel, ExportManifestationType.PDF);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -742,25 +743,32 @@ public class Headerbar extends Composite{
|
||||||
ScheduledCommand generateEncryptedModel = new ScheduledCommand() {
|
ScheduledCommand generateEncryptedModel = new ScheduledCommand() {
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
GWT.runAsync(WorkspaceLightTreeLoadPopup.class, new RunAsyncCallback() {
|
GWT.runAsync(WorkspaceExplorerSelectDialog.class, new RunAsyncCallback() {
|
||||||
public void onSuccess() {
|
public void onSuccess() {
|
||||||
WorkspaceLightTreeLoadPopup wpTreepopup = new WorkspaceLightTreeLoadPopup( "Select the Report (or Template) to encrypt ", true, true);
|
|
||||||
wpTreepopup.setShowableTypes(ItemType.REPORT_TEMPLATE, ItemType.REPORT);
|
|
||||||
wpTreepopup.setSelectableTypes(ItemType.REPORT_TEMPLATE, ItemType.REPORT);
|
|
||||||
|
|
||||||
wpTreepopup.addPopupHandler(new PopupHandler() {
|
ItemType[] types = {ItemType.REPORT_TEMPLATE, ItemType.REPORT};
|
||||||
public void onPopup(PopupEvent event) {
|
|
||||||
if (! event.isCanceled()) {
|
|
||||||
if (event.getSelectedItem() != null) {
|
|
||||||
final String itemId = event.getSelectedItem().getId();
|
|
||||||
final String url = GWT.getModuleBaseURL() + "downloadEncryptedReport?itemId=" + itemId;
|
|
||||||
Window.open(url, "_blank", "");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
final WorkspaceExplorerSelectDialog wpTreepopup = new WorkspaceExplorerSelectDialog("Select the Report (or Template) to encrypt", Arrays.asList(types), Arrays.asList(types));
|
||||||
|
|
||||||
|
WorskpaceExplorerSelectNotificationListener listener = new WorskpaceExplorerSelectNotificationListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSelectedItem(Item item) {
|
||||||
|
final String itemId = item.getId();
|
||||||
|
final String url = GWT.getModuleBaseURL() + "downloadEncryptedReport?itemId=" + itemId;
|
||||||
|
Window.open(url, "_blank", "");
|
||||||
}
|
}
|
||||||
});
|
@Override
|
||||||
wpTreepopup.center();
|
public void onFailed(Throwable throwable) {
|
||||||
|
Window.alert("There are networks problem, please check your connection.");
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void onAborted() {}
|
||||||
|
@Override
|
||||||
|
public void onNotValidSelection() {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
wpTreepopup.addWorkspaceExplorerSelectNotificationListener(listener);
|
||||||
wpTreepopup.show();
|
wpTreepopup.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -843,45 +851,52 @@ public class Headerbar extends Composite{
|
||||||
GWT.runAsync(new RunAsyncCallback() {
|
GWT.runAsync(new RunAsyncCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess() {
|
public void onSuccess() {
|
||||||
int left = mainLayout.getAbsoluteLeft() + 50;
|
ItemType[] types = {ItemType.REPORT_TEMPLATE, ItemType.REPORT};
|
||||||
int top = mainLayout.getAbsoluteTop() + 25;
|
final WorkspaceExplorerSelectDialog wpTreepopup = new WorkspaceExplorerSelectDialog("Pick the item you want to import from", Arrays.asList(types), Arrays.asList(types));
|
||||||
WorkspaceLightTreeLoadPopup wpTreepopup = new WorkspaceLightTreeLoadPopup("Pick the item you want to import from", true, true);
|
|
||||||
wpTreepopup.setShowableTypes(ItemType.REPORT_TEMPLATE, ItemType.REPORT);
|
|
||||||
|
|
||||||
wpTreepopup.addPopupHandler(new PopupHandler() {
|
WorskpaceExplorerSelectNotificationListener listener = new WorskpaceExplorerSelectNotificationListener() {
|
||||||
public void onPopup(PopupEvent event) {
|
|
||||||
if (! event.isCanceled()) {
|
|
||||||
if (event.getSelectedItem() != null) {
|
|
||||||
int left = mainLayout.getAbsoluteLeft() + 50;
|
|
||||||
int top = mainLayout.getAbsoluteTop() + 25;
|
|
||||||
ImporterDialog dlg = new ImporterDialog(event.getSelectedItem(), presenter);
|
|
||||||
dlg.setPopupPosition(left, top);
|
|
||||||
dlg.setAnimationEnabled(true);
|
|
||||||
dlg.show();
|
|
||||||
}
|
|
||||||
presenter.getHeader().enableExports();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSelectedItem(Item item) {
|
||||||
|
int left = mainLayout.getAbsoluteLeft() + 50;
|
||||||
|
int top = mainLayout.getAbsoluteTop() + 25;
|
||||||
|
ImporterDialog dlg = new ImporterDialog(item, presenter);
|
||||||
|
dlg.setPopupPosition(left, top);
|
||||||
|
dlg.setAnimationEnabled(true);
|
||||||
|
dlg.show();
|
||||||
|
|
||||||
|
presenter.getHeader().enableExports();
|
||||||
}
|
}
|
||||||
});
|
@Override
|
||||||
wpTreepopup.setPopupPosition(left, top);
|
public void onFailed(Throwable throwable) {
|
||||||
|
Window.alert("There are networks problem, please check your connection.");
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void onAborted() {}
|
||||||
|
@Override
|
||||||
|
public void onNotValidSelection() {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
wpTreepopup.addWorkspaceExplorerSelectNotificationListener(listener);
|
||||||
wpTreepopup.show();
|
wpTreepopup.show();
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onFailure(Throwable reason) {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
@Override
|
||||||
|
public void onFailure(Throwable reason) {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @return .
|
|
||||||
*/
|
|
||||||
public CellPanel getMainLayout() {
|
|
||||||
return mainLayout;
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return .
|
||||||
|
*/
|
||||||
|
public CellPanel getMainLayout() {
|
||||||
|
return mainLayout;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
package org.gcube.portlets.user.reportgenerator.client.Presenter;
|
package org.gcube.portlets.user.reportgenerator.client.Presenter;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.gcube.portlets.user.reportgenerator.client.ReportConstants;
|
import org.gcube.portlets.user.reportgenerator.client.ReportConstants;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.dialog.ImporterDialog;
|
import org.gcube.portlets.user.reportgenerator.client.dialog.ImporterDialog;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
|
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSaveNotification.WorskpaceExplorerSaveNotificationListener;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSelectNotification.WorskpaceExplorerSelectNotificationListener;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupEvent;
|
import org.gcube.portlets.widgets.wsexplorer.client.save.WorkspaceExplorerSaveDialog;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupHandler;
|
import org.gcube.portlets.widgets.wsexplorer.client.select.WorkspaceExplorerSelectDialog;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.save.WorkspaceLightTreeSavePopup;
|
import org.gcube.portlets.widgets.wsexplorer.shared.ItemType;
|
||||||
|
|
||||||
import com.extjs.gxt.ui.client.event.ColorPaletteEvent;
|
import com.extjs.gxt.ui.client.event.ColorPaletteEvent;
|
||||||
import com.extjs.gxt.ui.client.event.Events;
|
import com.extjs.gxt.ui.client.event.Events;
|
||||||
|
@ -86,29 +88,30 @@ public class CommonCommands {
|
||||||
|
|
||||||
openTemplate = new Command() {
|
openTemplate = new Command() {
|
||||||
public void execute() {
|
public void execute() {
|
||||||
final int left = presenter.getHeader().getMainLayout().getAbsoluteLeft() + 50;
|
GWT.runAsync(WorkspaceExplorerSelectDialog.class, new RunAsyncCallback() {
|
||||||
final int top = presenter.getHeader().getMainLayout().getAbsoluteTop() + 25;
|
|
||||||
|
|
||||||
GWT.runAsync(WorkspaceLightTreeLoadPopup.class, new RunAsyncCallback() {
|
|
||||||
public void onSuccess() {
|
public void onSuccess() {
|
||||||
WorkspaceLightTreeLoadPopup wpTreepopup = new WorkspaceLightTreeLoadPopup("Select a Template to open", true, true);
|
|
||||||
wpTreepopup.setWidth("450px");
|
|
||||||
wpTreepopup.setShowableTypes(ItemType.REPORT_TEMPLATE);
|
|
||||||
wpTreepopup.setSelectableTypes(ItemType.REPORT_TEMPLATE);
|
|
||||||
|
|
||||||
|
ItemType[] types = {ItemType.REPORT_TEMPLATE};
|
||||||
|
final WorkspaceExplorerSelectDialog wpTreepopup = new WorkspaceExplorerSelectDialog("Select a Template to open", Arrays.asList(types), Arrays.asList(types));
|
||||||
|
|
||||||
wpTreepopup.addPopupHandler(new PopupHandler() {
|
WorskpaceExplorerSelectNotificationListener listener = new WorskpaceExplorerSelectNotificationListener() {
|
||||||
public void onPopup(PopupEvent event) {
|
|
||||||
if (! event.isCanceled()) {
|
|
||||||
if (event.getSelectedItem() != null) {
|
|
||||||
presenter.openTemplate(event.getSelectedItem().getName(), event.getSelectedItem().getId(), true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSelectedItem(Item item) {
|
||||||
|
presenter.openTemplate(item.getName(), item.getId(), true);
|
||||||
|
wpTreepopup.hide();
|
||||||
}
|
}
|
||||||
});
|
@Override
|
||||||
|
public void onFailed(Throwable throwable) {
|
||||||
wpTreepopup.setPopupPosition(left, top);
|
Window.alert("There are networks problem, please check your connection.");
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void onAborted() {}
|
||||||
|
@Override
|
||||||
|
public void onNotValidSelection() {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
wpTreepopup.addWorkspaceExplorerSelectNotificationListener(listener);
|
||||||
wpTreepopup.show();
|
wpTreepopup.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,28 +124,30 @@ public class CommonCommands {
|
||||||
|
|
||||||
openReport = new Command() {
|
openReport = new Command() {
|
||||||
public void execute() {
|
public void execute() {
|
||||||
|
GWT.runAsync(WorkspaceExplorerSelectDialog.class, new RunAsyncCallback() {
|
||||||
GWT.runAsync(WorkspaceLightTreeLoadPopup.class, new RunAsyncCallback() {
|
|
||||||
public void onSuccess() {
|
public void onSuccess() {
|
||||||
int left = presenter.getHeader().getMainLayout().getAbsoluteLeft() + 50;
|
|
||||||
int top = presenter.getHeader().getMainLayout().getAbsoluteTop() + 25;
|
|
||||||
|
|
||||||
WorkspaceLightTreeLoadPopup wpTreepopup = new WorkspaceLightTreeLoadPopup("Select a Report to open", true, true);
|
ItemType[] types = {ItemType.REPORT};
|
||||||
wpTreepopup.setWidth("450px");
|
final WorkspaceExplorerSelectDialog wpTreepopup = new WorkspaceExplorerSelectDialog("Select a Report to open", Arrays.asList(types), Arrays.asList(types));
|
||||||
wpTreepopup.setShowableTypes(ItemType.REPORT);
|
|
||||||
wpTreepopup.setSelectableTypes(ItemType.REPORT);
|
|
||||||
wpTreepopup.addPopupHandler(new PopupHandler() {
|
|
||||||
public void onPopup(PopupEvent event) {
|
|
||||||
if (! event.isCanceled()) {
|
|
||||||
if (event.getSelectedItem() != null) {
|
|
||||||
presenter.openTemplate(event.getSelectedItem().getName(), event.getSelectedItem().getId(), false);
|
|
||||||
}
|
|
||||||
presenter.getHeader().enableExports();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
WorskpaceExplorerSelectNotificationListener listener = new WorskpaceExplorerSelectNotificationListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSelectedItem(Item item) {
|
||||||
|
presenter.openTemplate(item.getName(), item.getId(), true);
|
||||||
|
wpTreepopup.hide();
|
||||||
}
|
}
|
||||||
});
|
@Override
|
||||||
wpTreepopup.setPopupPosition(left, top);
|
public void onFailed(Throwable throwable) {
|
||||||
|
Window.alert("There are networks problem, please check your connection.");
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void onAborted() {}
|
||||||
|
@Override
|
||||||
|
public void onNotValidSelection() {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
wpTreepopup.addWorkspaceExplorerSelectNotificationListener(listener);
|
||||||
wpTreepopup.show();
|
wpTreepopup.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,32 +192,36 @@ public class CommonCommands {
|
||||||
dlg.show();
|
dlg.show();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
GWT.runAsync(WorkspaceLightTreeLoadPopup.class, new RunAsyncCallback() {
|
GWT.runAsync(WorkspaceExplorerSelectDialog.class, new RunAsyncCallback() {
|
||||||
public void onSuccess() {
|
public void onSuccess() {
|
||||||
WorkspaceLightTreeLoadPopup wpTreepopup = new WorkspaceLightTreeLoadPopup("Pick the item you want to import from", true, true);
|
|
||||||
wpTreepopup.setShowableTypes(ItemType.REPORT_TEMPLATE);
|
|
||||||
wpTreepopup.setWidth("450px");
|
|
||||||
|
|
||||||
wpTreepopup.addPopupHandler(new PopupHandler() {
|
ItemType[] types = {ItemType.REPORT_TEMPLATE};
|
||||||
public void onPopup(PopupEvent event) {
|
final WorkspaceExplorerSelectDialog wpTreepopup = new WorkspaceExplorerSelectDialog("Pick the item you want to import from", Arrays.asList(types), Arrays.asList(types));
|
||||||
if (! event.isCanceled()) {
|
|
||||||
if (event.getSelectedItem() != null) {
|
|
||||||
int left = presenter.getHeader().getMainLayout().getAbsoluteLeft() + 50;
|
|
||||||
int top = presenter.getHeader().getMainLayout().getAbsoluteTop() + 25;
|
|
||||||
ImporterDialog dlg = new ImporterDialog(event.getSelectedItem(), presenter);
|
|
||||||
dlg.setPopupPosition(left, top);
|
|
||||||
dlg.setAnimationEnabled(true);
|
|
||||||
dlg.show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
WorskpaceExplorerSelectNotificationListener listener = new WorskpaceExplorerSelectNotificationListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSelectedItem(Item item) {
|
||||||
|
int left = presenter.getHeader().getMainLayout().getAbsoluteLeft() + 50;
|
||||||
|
int top = presenter.getHeader().getMainLayout().getAbsoluteTop() + 25;
|
||||||
|
ImporterDialog dlg = new ImporterDialog(item, presenter);
|
||||||
|
dlg.setPopupPosition(left, top);
|
||||||
|
dlg.setAnimationEnabled(true);
|
||||||
|
dlg.show();
|
||||||
|
wpTreepopup.hide();
|
||||||
}
|
}
|
||||||
});
|
@Override
|
||||||
int left = presenter.getHeader().getMainLayout().getAbsoluteLeft() + 50;
|
public void onFailed(Throwable throwable) {
|
||||||
int top = presenter.getHeader().getMainLayout().getAbsoluteTop() + 25;
|
Window.alert("There are networks problem, please check your connection.");
|
||||||
wpTreepopup.setPopupPosition(left, top);
|
}
|
||||||
|
@Override
|
||||||
|
public void onAborted() {}
|
||||||
|
@Override
|
||||||
|
public void onNotValidSelection() {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
wpTreepopup.addWorkspaceExplorerSelectNotificationListener(listener);
|
||||||
wpTreepopup.show();
|
wpTreepopup.show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onFailure(Throwable reason) {
|
public void onFailure(Throwable reason) {
|
||||||
|
@ -241,32 +250,39 @@ public class CommonCommands {
|
||||||
} //end constructor
|
} //end constructor
|
||||||
|
|
||||||
public void saveReportAsDialog() {
|
public void saveReportAsDialog() {
|
||||||
final int left = presenter.getHeader().getMainLayout().getAbsoluteLeft() + 50;
|
|
||||||
final int top = presenter.getHeader().getMainLayout().getAbsoluteTop() + 25;
|
|
||||||
|
|
||||||
GWT.runAsync(WorkspaceLightTreeSavePopup.class, new RunAsyncCallback() {
|
GWT.runAsync(WorskpaceExplorerSaveNotificationListener.class, new RunAsyncCallback() {
|
||||||
public void onSuccess() {
|
public void onSuccess() {
|
||||||
WorkspaceLightTreeSavePopup wpTreepopup = new WorkspaceLightTreeSavePopup("Save Report, choose folder please:", true);
|
ItemType[] types = {ItemType.FOLDER};
|
||||||
wpTreepopup.setWidth("450px");
|
final WorkspaceExplorerSaveDialog navigator = new WorkspaceExplorerSaveDialog("Save Report, choose folder please:", Arrays.asList(types));
|
||||||
wpTreepopup.setSelectableTypes( ItemType.FOLDER, ItemType.ROOT);
|
WorskpaceExplorerSaveNotificationListener listener = new WorskpaceExplorerSaveNotificationListener(){
|
||||||
wpTreepopup.setShowEmptyFolders(true);
|
|
||||||
|
|
||||||
wpTreepopup.addPopupHandler(new PopupHandler() {
|
|
||||||
public void onPopup(PopupEvent event) {
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSaving(Item parent, String fileName) {
|
||||||
//checking user input
|
//checking user input
|
||||||
String inputUser = event.getName();
|
String inputUser = fileName;
|
||||||
String newTemplateName = inputUser;
|
String newTemplateName = inputUser;
|
||||||
if (presenter.getModel().getTemplateName().compareTo(newTemplateName) != 0) {
|
if (presenter.getModel().getTemplateName().compareTo(newTemplateName) != 0) {
|
||||||
newTemplateName = newTemplateName.trim();
|
newTemplateName = newTemplateName.trim();
|
||||||
presenter.getModel().setTemplateName(newTemplateName+".d4sR");
|
presenter.getModel().setTemplateName(newTemplateName+".d4sR");
|
||||||
}
|
}
|
||||||
presenter.changeTemplateName(newTemplateName);
|
presenter.changeTemplateName(newTemplateName);
|
||||||
presenter.saveReport(event.getSelectedItem().getId(), newTemplateName);
|
presenter.saveReport(parent.getId(), newTemplateName);
|
||||||
|
navigator.hide();
|
||||||
}
|
}
|
||||||
});
|
|
||||||
wpTreepopup.setPopupPosition(left, top);
|
@Override
|
||||||
wpTreepopup.show();
|
public void onAborted() {
|
||||||
|
GWT.log("onAborted");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onFailed(Throwable throwable) {
|
||||||
|
GWT.log("onFailed");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
navigator.addWorkspaceExplorerSaveNotificationListener(listener);
|
||||||
|
navigator.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onFailure(Throwable reason) {
|
public void onFailure(Throwable reason) {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import org.gcube.portlets.d4sreporting.common.shared.Model;
|
||||||
import org.gcube.portlets.user.gcubewidgets.client.popup.GCubeDialog;
|
import org.gcube.portlets.user.gcubewidgets.client.popup.GCubeDialog;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.ReportConstants;
|
import org.gcube.portlets.user.reportgenerator.client.ReportConstants;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.Item;
|
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
import org.gcube.portlets.widgets.wsexplorer.shared.ItemType;
|
||||||
|
|
||||||
import com.google.gwt.event.dom.client.ClickEvent;
|
import com.google.gwt.event.dom.client.ClickEvent;
|
||||||
import com.google.gwt.event.dom.client.ClickHandler;
|
import com.google.gwt.event.dom.client.ClickHandler;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.gcube.portlets.user.reportgenerator.client.targets;
|
package org.gcube.portlets.user.reportgenerator.client.targets;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.gcube.portlets.d4sreporting.common.shared.BasicComponent;
|
import org.gcube.portlets.d4sreporting.common.shared.BasicComponent;
|
||||||
|
@ -11,10 +12,10 @@ import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.model.TemplateComponent;
|
import org.gcube.portlets.user.reportgenerator.client.model.TemplateComponent;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
|
import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
|
||||||
import org.gcube.portlets.user.reportgenerator.shared.ReportImage;
|
import org.gcube.portlets.user.reportgenerator.shared.ReportImage;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSelectNotification.WorskpaceExplorerSelectNotificationListener;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupEvent;
|
import org.gcube.portlets.widgets.wsexplorer.client.select.WorkspaceExplorerSelectDialog;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupHandler;
|
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
import org.gcube.portlets.widgets.wsexplorer.shared.ItemType;
|
||||||
|
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.gwt.core.client.RunAsyncCallback;
|
import com.google.gwt.core.client.RunAsyncCallback;
|
||||||
|
@ -364,26 +365,33 @@ public class ClientImage extends Composite {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openFileExplorer(final int left, final int top) {
|
private void openFileExplorer(final int left, final int top) {
|
||||||
GWT.runAsync(WorkspaceLightTreeLoadPopup.class, new RunAsyncCallback() {
|
GWT.runAsync(WorkspaceExplorerSelectDialog.class, new RunAsyncCallback() {
|
||||||
public void onSuccess() {
|
public void onSuccess() {
|
||||||
|
|
||||||
WorkspaceLightTreeLoadPopup wpTreepopup = new WorkspaceLightTreeLoadPopup("Select the Image", true, true);
|
ItemType[] types = {ItemType.IMAGE_DOCUMENT, ItemType.EXTERNAL_IMAGE};
|
||||||
wpTreepopup.setShowableTypes(ItemType.IMAGE_DOCUMENT, ItemType.EXTERNAL_IMAGE);
|
final WorkspaceExplorerSelectDialog wpTreepopup = new WorkspaceExplorerSelectDialog("Select the Image", Arrays.asList(types), Arrays.asList(types));
|
||||||
wpTreepopup.setSelectableTypes(ItemType.IMAGE_DOCUMENT, ItemType.EXTERNAL_IMAGE);
|
|
||||||
wpTreepopup.setWidth("450px");
|
WorskpaceExplorerSelectNotificationListener listener = new WorskpaceExplorerSelectNotificationListener() {
|
||||||
wpTreepopup.addPopupHandler(new PopupHandler() {
|
|
||||||
public void onPopup(PopupEvent event) {
|
@Override
|
||||||
if (! event.isCanceled()) {
|
public void onSelectedItem(Item item) {
|
||||||
if (event.getSelectedItem() != null) {
|
if (item.getType() == ItemType.IMAGE_DOCUMENT)
|
||||||
if (event.getSelectedItem().getType() == ItemType.IMAGE_DOCUMENT)
|
fetchImage(item.getId(), true, true);
|
||||||
fetchImage(event.getSelectedItem().getId(), true, true);
|
else
|
||||||
else
|
fetchImage(item.getId(), false, true);
|
||||||
fetchImage(event.getSelectedItem().getId(), false, true);
|
wpTreepopup.hide();
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
@Override
|
||||||
wpTreepopup.center();
|
public void onFailed(Throwable throwable) {
|
||||||
|
Window.alert("There are networks problem, please check your connection.");
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void onAborted() {}
|
||||||
|
@Override
|
||||||
|
public void onNotValidSelection() {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
wpTreepopup.addWorkspaceExplorerSelectNotificationListener(listener);
|
||||||
wpTreepopup.show();
|
wpTreepopup.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
package org.gcube.portlets.user.reportgenerator.client.uibinder;
|
package org.gcube.portlets.user.reportgenerator.client.uibinder;
|
||||||
|
|
||||||
import org.gcube.portlets.widgets.exporter.shared.TypeExporter;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.gcube.portlets.user.reportgenerator.client.ReportServiceAsync;
|
import org.gcube.portlets.user.reportgenerator.client.ReportServiceAsync;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.ToolboxPanel;
|
import org.gcube.portlets.user.reportgenerator.client.ToolboxPanel;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
import org.gcube.portlets.widgets.exporter.shared.TypeExporter;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupEvent;
|
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSaveNotification.WorskpaceExplorerSaveNotificationListener;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupHandler;
|
import org.gcube.portlets.widgets.wsexplorer.client.save.WorkspaceExplorerSaveDialog;
|
||||||
import org.gcube.portlets.widgets.lighttree.client.save.WorkspaceLightTreeSavePopup;
|
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
|
||||||
|
import org.gcube.portlets.widgets.wsexplorer.shared.ItemType;
|
||||||
|
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.gwt.event.dom.client.ClickEvent;
|
import com.google.gwt.event.dom.client.ClickEvent;
|
||||||
|
@ -104,14 +106,14 @@ public class ExportOptions extends Composite {
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case SAVE_AS:
|
case SAVE_AS:
|
||||||
WorkspaceLightTreeSavePopup wpTree = new WorkspaceLightTreeSavePopup("Save Report, select the folder:", true);
|
|
||||||
wpTree.setSelectableTypes(ItemType.FOLDER, ItemType.ROOT);
|
ItemType[] types = {ItemType.FOLDER};
|
||||||
wpTree.setShowEmptyFolders(true);
|
final WorkspaceExplorerSaveDialog navigator = new WorkspaceExplorerSaveDialog("Save Report, choose folder please:", Arrays.asList(types));
|
||||||
wpTree.addPopupHandler(new PopupHandler(){
|
WorskpaceExplorerSaveNotificationListener listener = new WorskpaceExplorerSaveNotificationListener(){
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPopup(PopupEvent event) {
|
public void onSaving(Item parent, String fileName) {
|
||||||
rpc.save(filePath, event.getSelectedItem().getId(), event.getName(), type, true, new AsyncCallback<String>() {
|
rpc.save(filePath, parent.getId(), fileName, type, true, new AsyncCallback<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(String createdItemId) {
|
public void onSuccess(String createdItemId) {
|
||||||
p.clearExportPanel();
|
p.clearExportPanel();
|
||||||
|
@ -123,9 +125,21 @@ public class ExportOptions extends Composite {
|
||||||
Window.alert("Error: " + caught.getMessage());
|
Window.alert("Error: " + caught.getMessage());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}});
|
navigator.hide();
|
||||||
wpTree.show();
|
}
|
||||||
wpTree.center();
|
|
||||||
|
@Override
|
||||||
|
public void onAborted() {
|
||||||
|
GWT.log("onAborted");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onFailed(Throwable throwable) {
|
||||||
|
GWT.log("onFailed");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
navigator.addWorkspaceExplorerSaveNotificationListener(listener);
|
||||||
|
navigator.show();
|
||||||
break;
|
break;
|
||||||
case
|
case
|
||||||
SAVE_OPEN:
|
SAVE_OPEN:
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<inherits name='com.google.gwt.user.User' />
|
<inherits name='com.google.gwt.user.User' />
|
||||||
<!-- To Comment out -->
|
<!-- To Comment out -->
|
||||||
<set-property name="user.agent" value="safari,gecko1_8,ie9" />
|
<set-property name="user.agent" value="safari,gecko1_8,ie9" />
|
||||||
<inherits
|
<!-- inherits WorkspaceExplorer widget -->
|
||||||
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
<inherits name='org.gcube.portlets.widgets.wsexplorer.WorkspaceExplorer' />
|
||||||
<inherits name='org.gcube.portlets.user.gcubewidgets.WidgetFactory' />
|
<inherits name='org.gcube.portlets.user.gcubewidgets.WidgetFactory' />
|
||||||
<inherits name='org.gcube.portlets.d4sreporting.common.Reporting' />
|
<inherits name='org.gcube.portlets.d4sreporting.common.Reporting' />
|
||||||
<inherits name='com.extjs.gxt.ui.GXT' />
|
<inherits name='com.extjs.gxt.ui.GXT' />
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
<link rel="stylesheet" type="text/css" href="gxt/css/gxt-all.css" />
|
<link rel="stylesheet" type="text/css" href="gxt/css/gxt-all.css" />
|
||||||
<link type="text/css" rel="stylesheet" href="ReportGenerator.css">
|
<link type="text/css" rel="stylesheet" href="ReportGenerator.css">
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript" src="reports/reports.nocache.js"></script>
|
<script src="reports/js/jquery-1.10.1.min.js"></script>
|
||||||
|
<script src="reports/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="reports/reports.nocache.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="ReportGeneratorDIV"></div>
|
<div id="ReportGeneratorDIV"></div>
|
||||||
|
|
|
@ -9,5 +9,8 @@
|
||||||
--%>
|
--%>
|
||||||
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/gxt/css/gxt-all.css" />
|
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/gxt/css/gxt-all.css" />
|
||||||
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/ReportGenerator.css" />
|
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/ReportGenerator.css" />
|
||||||
|
|
||||||
|
<script src='<%=request.getContextPath()%>/reports/js/jquery-1.10.1.min.js'></script>
|
||||||
|
<script src='<%=request.getContextPath()%>/reports/js/bootstrap.min.js'></script>
|
||||||
<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/reports/reports.nocache.js"></script>
|
<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/reports/reports.nocache.js"></script>
|
||||||
<div id="ReportGeneratorDIV"></div>
|
<div id="ReportGeneratorDIV"></div>
|
|
@ -1,4 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="WebApp_ID" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
id="WebApp_ID" version="2.4"
|
||||||
|
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
||||||
<display-name>ReportGenerator-portlet</display-name>
|
<display-name>ReportGenerator-portlet</display-name>
|
||||||
<!-- Servlets -->
|
<!-- Servlets -->
|
||||||
<servlet>
|
<servlet>
|
||||||
|
@ -11,25 +14,14 @@
|
||||||
<url-pattern>/reports/ReportServiceImpl</url-pattern>
|
<url-pattern>/reports/ReportServiceImpl</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
<!-- quicktourServlet -->
|
|
||||||
<!-- <servlet> -->
|
|
||||||
<!-- <servlet-name>quicktourServlet</servlet-name> -->
|
|
||||||
<!-- <servlet-class>org.gcube.portlets.widgets.guidedtour.server.TourServiceImpl</servlet-class> -->
|
|
||||||
<!-- </servlet> -->
|
|
||||||
|
|
||||||
<!-- <servlet-mapping> -->
|
|
||||||
<!-- <servlet-name>quicktourServlet</servlet-name> -->
|
|
||||||
<!-- <url-pattern>/reports/quicktourServlet</url-pattern> -->
|
|
||||||
<!-- </servlet-mapping> -->
|
|
||||||
|
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>WorkspaceLightService</servlet-name>
|
<servlet-name>workspaceExplorer</servlet-name>
|
||||||
<servlet-class>org.gcube.portlets.widgets.lighttree.server.WorkspaceServiceImpl</servlet-class>
|
<servlet-class>org.gcube.portlets.widgets.wsexplorer.server.WorkspaceExplorerServiceImpl</servlet-class>
|
||||||
</servlet>
|
</servlet>
|
||||||
|
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>WorkspaceLightService</servlet-name>
|
<servlet-name>workspaceExplorer</servlet-name>
|
||||||
<url-pattern>/reports/WorkspaceLightService</url-pattern>
|
<url-pattern>/reports/WorkspaceExplorerService</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,7 +37,7 @@
|
||||||
|
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>DownloadService</servlet-name>
|
<servlet-name>DownloadService</servlet-name>
|
||||||
<servlet-class>org.gcube.portlets.user.reportgenerator.server.servlet.DownloadImageServlet</servlet-class>
|
<servlet-class>org.gcube.portlets.user.reportgenerator.server.servlet.DownloadImageServlet</servlet-class>
|
||||||
</servlet>
|
</servlet>
|
||||||
|
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
|
@ -78,16 +70,6 @@
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Fimes import expot part -->
|
|
||||||
<!--servlet> <servlet-name>fimesexporterServlet</servlet-name> <servlet-class>org.gube.portlets.user.reporting.fimesexporter.server.FimesExporterServiceImpl</servlet-class>
|
|
||||||
</servlet> <servlet-mapping> <servlet-name>fimesexporterServlet</servlet-name>
|
|
||||||
<url-pattern>/reportgenerator/exporter</url-pattern> </servlet-mapping -->
|
|
||||||
|
|
||||||
<!-- servlet> <servlet-name>fileUploaderServlet</servlet-name> <servlet-class>org.gcube.portlets.user.reporting.fimesimporter.server.FimesFileUploaderServlet</servlet-class>
|
|
||||||
</servlet> <servlet-mapping> <servlet-name>fileUploaderServlet</servlet-name>
|
|
||||||
<url-pattern>/reportgenerator/fimesfileuploaderservlet</url-pattern> </servlet-mapping -->
|
|
||||||
|
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>convertServlet</servlet-name>
|
<servlet-name>convertServlet</servlet-name>
|
||||||
<servlet-class>org.gcube.portlets.widgets.exporter.server.ReportExporterServiceImpl</servlet-class>
|
<servlet-class>org.gcube.portlets.widgets.exporter.server.ReportExporterServiceImpl</servlet-class>
|
||||||
|
|
Reference in New Issue