updated to new HL, removed GCF Dep
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@82803 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
288c75bdfd
commit
3309d425ef
|
@ -5,6 +5,9 @@
|
|||
<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="/target/generated-sources/gwt"/>
|
||||
<dependent-module archiveName="report-exporter-widget-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/report-exporter-widget/report-exporter-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
||||
<property name="context-root" value="reports"/>
|
||||
</wb-module>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
disabled=06target
|
||||
eclipse.preferences.version=1
|
46
pom.xml
46
pom.xml
|
@ -24,7 +24,7 @@
|
|||
</scm>
|
||||
<properties>
|
||||
<!-- Convenience property to set the GWT version -->
|
||||
<gwtVersion>2.4.0</gwtVersion>
|
||||
<gwtVersion>2.5.1</gwtVersion>
|
||||
<distroDirectory>distro</distroDirectory>
|
||||
<!-- Set Scope to provided when deploying release, compile for offline
|
||||
cersion -->
|
||||
|
@ -55,6 +55,17 @@
|
|||
</dependencies>
|
||||
</profile>
|
||||
</profiles>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>maven-portal-bom</artifactId>
|
||||
<version>LATEST</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<dependencies>
|
||||
<!-- This dependency is needed and is need on TOP to use GWT UI BInder
|
||||
without old Xerces version of gCore complaining -->
|
||||
|
@ -67,35 +78,30 @@
|
|||
<dependency>
|
||||
<groupId>com.google.gwt</groupId>
|
||||
<artifactId>gwt-user</artifactId>
|
||||
<version>${gwtVersion}</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.gwt</groupId>
|
||||
<artifactId>gwt-servlet</artifactId>
|
||||
<version>${gwtVersion}</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.applicationsupportlayer</groupId>
|
||||
<artifactId>aslcore</artifactId>
|
||||
<version>[3.2.1-SNAPSHOT, 3.2.2-SNAPSHOT)</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.applicationsupportlayer</groupId>
|
||||
<artifactId>aslsocial</artifactId>
|
||||
<version>[0.1.0-SNAPSHOT, 1.0.0-SNAPSHOT)</version>
|
||||
<scope>${setScope}</scope>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>gcube-widgets</artifactId>
|
||||
<version>[1.5.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>guided-tour-widget</artifactId>
|
||||
<version>[1.2.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<scope>${setScope}</scope>
|
||||
|
@ -103,7 +109,6 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.portal</groupId>
|
||||
<artifactId>custom-portal-handler</artifactId>
|
||||
<version>[1.2.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -119,9 +124,8 @@
|
|||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>workspace-light-tree</artifactId>
|
||||
<version>[2.9.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -131,9 +135,9 @@
|
|||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>report-exporter-widget</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>[1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portal</groupId>
|
||||
|
@ -144,7 +148,6 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>workspace-tree-widget</artifactId>
|
||||
<version>[6.0.0-SNAPSHOT, 7.0.0-SNAPSHOT)</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -154,22 +157,19 @@
|
|||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library</artifactId>
|
||||
<version>[4.3.0-SNAPSHOT,5.0.0-SNAPSHOT)</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library-jcr</artifactId>
|
||||
<version>[1.3.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||
<!-- <classifier>${setClassifier}</classifier> -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.applicationsupportlayer</groupId>
|
||||
<artifactId>accesslogger</artifactId>
|
||||
<version>[1.2.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -181,7 +181,6 @@
|
|||
<dependency>
|
||||
<groupId>commons-fileupload</groupId>
|
||||
<artifactId>commons-fileupload</artifactId>
|
||||
<version>1.2.2</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -193,31 +192,26 @@
|
|||
<dependency>
|
||||
<groupId>com.allen-sauer.gwt.log</groupId>
|
||||
<artifactId>gwt-log</artifactId>
|
||||
<version>3.1.8</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.portlet</groupId>
|
||||
<artifactId>portlet-api</artifactId>
|
||||
<version>2.0</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.16</version>
|
||||
<scope>${setScope}</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<version>1.6.4</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.6.4</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -225,7 +219,7 @@
|
|||
<artifactId>junit</artifactId>
|
||||
<version>4.7</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -11,10 +11,10 @@ import org.gcube.portlets.user.reportgenerator.client.dialog.ImporterDialog;
|
|||
import org.gcube.portlets.user.reportgenerator.client.dialog.PagePropertiesDialog;
|
||||
import org.gcube.portlets.user.reportgenerator.client.model.ExportManifestationType;
|
||||
import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.event.PopupEvent;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.event.PopupHandler;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupEvent;
|
||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupHandler;
|
||||
import org.gcube.portlets.widgets.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
||||
|
||||
import com.extjs.gxt.ui.client.widget.MessageBox;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
|
|
|
@ -3,11 +3,11 @@ package org.gcube.portlets.user.reportgenerator.client.Presenter;
|
|||
import org.gcube.portlets.user.reportgenerator.client.ReportConstants;
|
||||
import org.gcube.portlets.user.reportgenerator.client.dialog.ImporterDialog;
|
||||
import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.event.PopupEvent;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.event.PopupHandler;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.save.WorkspaceLightTreeSavePopup;
|
||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupEvent;
|
||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupHandler;
|
||||
import org.gcube.portlets.widgets.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
||||
import org.gcube.portlets.widgets.lighttree.client.save.WorkspaceLightTreeSavePopup;
|
||||
|
||||
import com.extjs.gxt.ui.client.event.ColorPaletteEvent;
|
||||
import com.extjs.gxt.ui.client.event.Events;
|
||||
|
|
|
@ -7,12 +7,12 @@ import org.gcube.portlets.d4sreporting.common.client.uicomponents.richtext.RichT
|
|||
import org.gcube.portlets.d4sreporting.common.shared.ComponentType;
|
||||
import org.gcube.portlets.d4sreporting.common.shared.Metadata;
|
||||
import org.gcube.portlets.d4sreporting.common.shared.Model;
|
||||
import org.gcube.portlets.user.exporter.client.ReportExporterPopup;
|
||||
import org.gcube.portlets.user.exporter.client.event.ExportingCompletedEvent;
|
||||
import org.gcube.portlets.user.exporter.client.event.ExportingCompletedEventHandler;
|
||||
import org.gcube.portlets.user.exporter.client.event.ReportExporterEvent;
|
||||
import org.gcube.portlets.user.exporter.client.event.ReportExporterEventHandler;
|
||||
import org.gcube.portlets.user.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.widgets.exporter.client.ReportExporterPopup;
|
||||
import org.gcube.portlets.widgets.exporter.client.event.ExportingCompletedEvent;
|
||||
import org.gcube.portlets.widgets.exporter.client.event.ExportingCompletedEventHandler;
|
||||
import org.gcube.portlets.widgets.exporter.client.event.ReportExporterEvent;
|
||||
import org.gcube.portlets.widgets.exporter.client.event.ReportExporterEventHandler;
|
||||
import org.gcube.portlets.widgets.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.user.reportgenerator.client.Headerbar;
|
||||
import org.gcube.portlets.user.reportgenerator.client.ReportGenerator;
|
||||
import org.gcube.portlets.user.reportgenerator.client.ReportService;
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
package org.gcube.portlets.user.reportgenerator.client;
|
||||
|
||||
import org.gcube.portlets.user.guidedtour.client.GCUBEGuidedTour;
|
||||
import org.gcube.portlets.user.guidedtour.client.steps.GCUBETemplate1Text1Image;
|
||||
import org.gcube.portlets.user.guidedtour.client.steps.GCUBETemplate2Text2Image;
|
||||
import org.gcube.portlets.user.guidedtour.client.steps.TourStep;
|
||||
import org.gcube.portlets.user.guidedtour.client.types.VerticalAlignment;
|
||||
import org.gcube.portlets.widgets.guidedtour.client.GCUBEGuidedTour;
|
||||
import org.gcube.portlets.widgets.guidedtour.client.steps.GCUBETemplate1Text1Image;
|
||||
import org.gcube.portlets.widgets.guidedtour.client.steps.GCUBETemplate2Text2Image;
|
||||
import org.gcube.portlets.widgets.guidedtour.client.steps.TourStep;
|
||||
import org.gcube.portlets.widgets.guidedtour.client.types.VerticalAlignment;
|
||||
import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
||||
import org.gcube.portlets.user.reportgenerator.client.toursteps.Intro;
|
||||
import org.gcube.portlets.user.workspace.client.AppControllerExplorer;
|
||||
import org.gcube.portlets.user.workspace.client.rpc.GWTWorkspaceServiceAsync;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
||||
|
||||
import com.google.gwt.core.client.EntryPoint;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
|
|
|
@ -3,9 +3,9 @@ package org.gcube.portlets.user.reportgenerator.client;
|
|||
import org.gcube.portlets.d4sreporting.common.shared.Model;
|
||||
import org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries;
|
||||
import org.gcube.portlets.d4sreporting.common.shared.Table;
|
||||
import org.gcube.portlets.user.exporter.shared.SaveReportFileException;
|
||||
import org.gcube.portlets.user.exporter.shared.SaveReportFileExistException;
|
||||
import org.gcube.portlets.user.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.widgets.exporter.shared.SaveReportFileException;
|
||||
import org.gcube.portlets.widgets.exporter.shared.SaveReportFileExistException;
|
||||
import org.gcube.portlets.widgets.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.user.reportgenerator.shared.SessionInfo;
|
||||
|
||||
import com.google.gwt.user.client.rpc.RemoteService;
|
||||
|
|
|
@ -3,7 +3,7 @@ package org.gcube.portlets.user.reportgenerator.client;
|
|||
import org.gcube.portlets.d4sreporting.common.shared.Model;
|
||||
import org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries;
|
||||
import org.gcube.portlets.d4sreporting.common.shared.Table;
|
||||
import org.gcube.portlets.user.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.widgets.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.user.reportgenerator.shared.SessionInfo;
|
||||
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
|
|
|
@ -3,8 +3,8 @@ package org.gcube.portlets.user.reportgenerator.client.dialog;
|
|||
import org.gcube.portlets.d4sreporting.common.shared.Model;
|
||||
import org.gcube.portlets.user.reportgenerator.client.ReportConstants;
|
||||
import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.Item;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.widgets.lighttree.client.Item;
|
||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
||||
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
|
|
|
@ -12,10 +12,10 @@ import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
|
|||
import org.gcube.portlets.user.workspace.client.workspace.GWTWorkspaceItem;
|
||||
import org.gcube.portlets.user.workspace.client.workspace.folder.item.GWTExternalImage;
|
||||
import org.gcube.portlets.user.workspace.client.workspace.folder.item.gcube.GWTImageDocument;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.event.PopupEvent;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.event.PopupHandler;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupEvent;
|
||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupHandler;
|
||||
import org.gcube.portlets.widgets.lighttree.client.load.WorkspaceLightTreeLoadPopup;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.core.client.RunAsyncCallback;
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package org.gcube.portlets.user.reportgenerator.client.uibinder;
|
||||
|
||||
import org.gcube.portlets.user.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.widgets.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.user.reportgenerator.client.ReportServiceAsync;
|
||||
import org.gcube.portlets.user.reportgenerator.client.ToolboxPanel;
|
||||
import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.event.PopupEvent;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.event.PopupHandler;
|
||||
import org.gcube.portlets.user.workspace.lighttree.client.save.WorkspaceLightTreeSavePopup;
|
||||
import org.gcube.portlets.widgets.lighttree.client.ItemType;
|
||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupEvent;
|
||||
import org.gcube.portlets.widgets.lighttree.client.event.PopupHandler;
|
||||
import org.gcube.portlets.widgets.lighttree.client.save.WorkspaceLightTreeSavePopup;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
|
|
|
@ -5,11 +5,12 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
import org.gcube.application.framework.core.session.ASLSession;
|
||||
import org.gcube.common.core.utils.logging.GCUBELog;
|
||||
import org.gcube.portal.custom.communitymanager.OrganizationsUtil;
|
||||
import org.gcube.portlets.admin.wfdocslibrary.shared.PermissionType;
|
||||
import org.gcube.portlets.admin.wfdocslibrary.shared.Step;
|
||||
import org.gcube.portlets.admin.wfdocslibrary.shared.WfRole;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.liferay.portal.kernel.exception.PortalException;
|
||||
import com.liferay.portal.kernel.exception.SystemException;
|
||||
|
@ -17,7 +18,6 @@ import com.liferay.portal.model.Organization;
|
|||
import com.liferay.portal.model.ResourceConstants;
|
||||
import com.liferay.portal.model.Role;
|
||||
import com.liferay.portal.model.User;
|
||||
import com.liferay.portal.service.CompanyLocalServiceUtil;
|
||||
import com.liferay.portal.service.OrganizationLocalServiceUtil;
|
||||
import com.liferay.portal.service.PermissionLocalServiceUtil;
|
||||
import com.liferay.portal.service.ResourceLocalServiceUtil;
|
||||
|
@ -35,7 +35,8 @@ public class DocLibraryUtil {
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static GCUBELog log = new GCUBELog(DocLibraryUtil.class);
|
||||
private static final Logger log = LoggerFactory.getLogger(DocLibraryUtil.class);
|
||||
|
||||
|
||||
/**
|
||||
* write the Report File (payload) into Liferay DocLibrary in the workflowdocs folder
|
||||
|
|
|
@ -15,14 +15,14 @@ import javax.servlet.http.HttpServletResponse;
|
|||
|
||||
import org.gcube.application.framework.core.session.ASLSession;
|
||||
import org.gcube.application.framework.core.session.SessionManager;
|
||||
import org.gcube.common.homelibrary.home.HomeLibrary;
|
||||
import org.gcube.common.homelibrary.home.workspace.Workspace;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.FolderItem;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.FolderItemType;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.items.Report;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.items.ReportTemplate;
|
||||
import org.gcube.common.homelibrary.util.encryption.EncryptionUtil;
|
||||
import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper;
|
||||
import org.gcube.portlets.user.homelibrary.home.HomeLibrary;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.Workspace;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Report;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ReportTemplate;
|
||||
import org.gcube.portlets.user.homelibrary.util.encryption.EncryptionUtil;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class DownloadEncryptedReport extends HttpServlet {
|
||||
|
@ -37,7 +37,7 @@ public class DownloadEncryptedReport extends HttpServlet {
|
|||
String fileName = null;
|
||||
InputStream data = null;
|
||||
try {
|
||||
Workspace workspace = HomeLibrary.getUserWorkspace(getASLSession(request));
|
||||
Workspace workspace = HomeLibrary.getUserWorkspace(getASLSession(request).getUsername());
|
||||
item = (FolderItem)workspace.getItem(request.getParameter("itemId"));
|
||||
|
||||
if (item.getFolderItemType() == FolderItemType.REPORT) {
|
||||
|
|
|
@ -14,7 +14,8 @@ import javax.servlet.http.HttpSession;
|
|||
|
||||
import org.gcube.application.framework.core.session.ASLSession;
|
||||
import org.gcube.application.framework.core.session.SessionManager;
|
||||
import org.gcube.common.core.utils.logging.GCUBEClientLog;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* <code> ImagesUploadServlet </code> class is the server code delgated to receinve the byte stream and store i
|
||||
|
@ -25,7 +26,8 @@ import org.gcube.common.core.utils.logging.GCUBEClientLog;
|
|||
|
||||
public class ImagesUploadServlet extends HttpServlet {
|
||||
|
||||
static GCUBEClientLog _log = new GCUBEClientLog(ImagesUploadServlet.class);
|
||||
|
||||
private static final Logger _log = LoggerFactory.getLogger(ImagesUploadServlet.class);
|
||||
|
||||
final String returnOKMessage = "OK";
|
||||
|
||||
|
|
|
@ -5,9 +5,10 @@ import java.util.List;
|
|||
import org.gcube.application.framework.core.session.ASLSession;
|
||||
import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager;
|
||||
import org.gcube.applicationsupportlayer.social.NotificationsManager;
|
||||
import org.gcube.common.core.utils.logging.GCUBEClientLog;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem;
|
||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceFolder;
|
||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -15,7 +16,8 @@ import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem;
|
|||
*
|
||||
*/
|
||||
public class NotificationsThread implements Runnable {
|
||||
private static GCUBEClientLog _log = new GCUBEClientLog(NotificationsThread.class);
|
||||
private static final Logger _log = LoggerFactory.getLogger(NotificationsThread.class);
|
||||
|
||||
private static final String WORKSPACE_PORTLET_ID = "org.gcube.portlets.user.workspace.server.GWTWorkspaceServiceImpl";
|
||||
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ import java.util.ArrayList;
|
|||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.Vector;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
@ -32,7 +31,24 @@ import org.gcube.application.framework.core.session.ASLSession;
|
|||
import org.gcube.application.framework.core.session.SessionManager;
|
||||
import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager;
|
||||
import org.gcube.applicationsupportlayer.social.NotificationsManager;
|
||||
import org.gcube.common.core.utils.logging.GCUBEClientLog;
|
||||
import org.gcube.common.homelibrary.home.HomeLibrary;
|
||||
import org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException;
|
||||
import org.gcube.common.homelibrary.home.exceptions.InternalErrorException;
|
||||
import org.gcube.common.homelibrary.home.workspace.Workspace;
|
||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceFolder;
|
||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceItemType;
|
||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder;
|
||||
import org.gcube.common.homelibrary.home.workspace.exceptions.ItemAlreadyExistException;
|
||||
import org.gcube.common.homelibrary.home.workspace.exceptions.ItemNotFoundException;
|
||||
import org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.FolderItem;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.FolderItemType;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.items.ExternalImage;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.items.Report;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.items.ReportTemplate;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.items.gcube.ImageDocument;
|
||||
import org.gcube.common.homelibrary.home.workspace.folder.items.ts.TimeSeries;
|
||||
import org.gcube.portal.custom.communitymanager.OrganizationsUtil;
|
||||
import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper;
|
||||
import org.gcube.portlets.admin.wfdocslibrary.client.WfDocsLibrary;
|
||||
|
@ -47,27 +63,6 @@ import org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries;
|
|||
import org.gcube.portlets.d4sreporting.common.shared.RepeatableSequence;
|
||||
import org.gcube.portlets.d4sreporting.common.shared.Table;
|
||||
import org.gcube.portlets.d4sreporting.common.shared.TableCell;
|
||||
import org.gcube.portlets.user.exporter.shared.SaveReportFileException;
|
||||
import org.gcube.portlets.user.exporter.shared.SaveReportFileExistException;
|
||||
import org.gcube.portlets.user.exporter.shared.TypeExporter;
|
||||
import org.gcube.portlets.user.homelibrary.home.HomeLibrary;
|
||||
import org.gcube.portlets.user.homelibrary.home.exceptions.HomeNotFoundException;
|
||||
import org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.Workspace;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItemType;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceSharedFolder;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItemType;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalImage;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Report;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ReportTemplate;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.ImageDocument;
|
||||
import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ts.TimeSeries;
|
||||
import org.gcube.portlets.user.reportgenerator.client.ReportConstants;
|
||||
import org.gcube.portlets.user.reportgenerator.client.ReportService;
|
||||
import org.gcube.portlets.user.reportgenerator.server.servlet.loggers.CreateReportLogEntry;
|
||||
|
@ -76,6 +71,11 @@ import org.gcube.portlets.user.reportgenerator.server.servlet.loggers.OpenWorkfl
|
|||
import org.gcube.portlets.user.reportgenerator.server.servlet.loggers.SaveWorkflowLogEntry;
|
||||
import org.gcube.portlets.user.reportgenerator.shared.SessionInfo;
|
||||
import org.gcube.portlets.user.reportgenerator.shared.UserBean;
|
||||
import org.gcube.portlets.widgets.exporter.shared.SaveReportFileException;
|
||||
import org.gcube.portlets.widgets.exporter.shared.SaveReportFileExistException;
|
||||
import org.gcube.portlets.widgets.exporter.shared.TypeExporter;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
||||
import com.liferay.portal.model.UserModel;
|
||||
|
@ -93,7 +93,7 @@ import com.liferay.portlet.documentlibrary.model.DLFileEntry;
|
|||
@SuppressWarnings("serial")
|
||||
public class ReportServiceImpl extends RemoteServiceServlet implements ReportService {
|
||||
|
||||
public static GCUBEClientLog _log = new GCUBEClientLog(ReportServiceImpl.class);
|
||||
private static final Logger _log = LoggerFactory.getLogger(ReportServiceImpl.class);
|
||||
/**
|
||||
* used for debugging in eclipse
|
||||
*/
|
||||
|
@ -601,7 +601,7 @@ public class ReportServiceImpl extends RemoteServiceServlet implements ReportSe
|
|||
* @throws HomeNotFoundException
|
||||
*/
|
||||
protected Workspace getWorkspaceArea() throws WorkspaceFolderNotFoundException, InternalErrorException, HomeNotFoundException {
|
||||
return HomeLibrary.getUserWorkspace(getASLSession());
|
||||
return HomeLibrary.getUserWorkspace(getASLSession().getUsername());
|
||||
}
|
||||
|
||||
|
||||
|
@ -1517,7 +1517,7 @@ public class ReportServiceImpl extends RemoteServiceServlet implements ReportSe
|
|||
try {
|
||||
File file = new File(filePath);
|
||||
|
||||
Workspace workspace = HomeLibrary.getUserWorkspace(getASLSession());
|
||||
Workspace workspace = HomeLibrary.getUserWorkspace(getASLSession().getUsername());
|
||||
_log.info("Saving in Workspace of " + workspace.getOwner().getPortalLogin());
|
||||
WorkspaceFolder folder = (workspaceFolderId != null)?
|
||||
(WorkspaceFolder)workspace.getItem(workspaceFolderId):workspace.getRoot();
|
||||
|
|
|
@ -12,7 +12,8 @@ import java.util.zip.ZipFile;
|
|||
import java.util.zip.ZipOutputStream;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.gcube.common.core.utils.logging.GCUBELog;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -21,8 +22,7 @@ import org.gcube.common.core.utils.logging.GCUBELog;
|
|||
*/
|
||||
public class ZipUtil {
|
||||
|
||||
|
||||
public static GCUBELog logger = new GCUBELog(ZipUtil.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(ZipUtil.class);
|
||||
|
||||
/**
|
||||
* @param zipFileName zipFileName
|
||||
|
|
Reference in New Issue