added set id for report references
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@90500 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8daa22c5ef
commit
e3d900c9dd
|
@ -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.7.2-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
<classpathentry kind="src" output="target/reports-4.7.3-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"/>
|
||||||
|
@ -28,8 +28,8 @@
|
||||||
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
|
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="owner.project.facets" value="java"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/reports-4.7.2-SNAPSHOT/WEB-INF/classes"/>
|
<classpathentry kind="output" path="target/reports-4.7.3-SNAPSHOT/WEB-INF/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
<<<<<<<=.mine
|
<<<<<<<=.mine
|
||||||
>>>>>>>=.r71295
|
>>>>>>>=.r71295
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
lastWarOutDir=/Users/massi/Documents/workspace/reports/target/reports-4.7.2-SNAPSHOT
|
lastWarOutDir=/Users/massi/Documents/workspace/reports/target/reports-4.7.3-SNAPSHOT
|
||||||
warSrcDir=src/main/webapp
|
warSrcDir=src/main/webapp
|
||||||
warSrcDirIsOutput=false
|
warSrcDirIsOutput=false
|
||||||
|
|
8
pom.xml
8
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.7.2-SNAPSHOT</version>
|
<version>4.7.3-SNAPSHOT</version>
|
||||||
<name>gCube Reports Manager</name>
|
<name>gCube Reports Manager</name>
|
||||||
<description>
|
<description>
|
||||||
gCube Reports Portlet.
|
gCube Reports Portlet.
|
||||||
|
@ -229,12 +229,6 @@
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<version>4.7</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -390,6 +390,7 @@ public class TemplateComponent {
|
||||||
if (refs != null) {
|
if (refs != null) {
|
||||||
ArrayList<Tuple> tuple = refs.getTuples();
|
ArrayList<Tuple> tuple = refs.getTuples();
|
||||||
ClientReportReference cmSeq = new ClientReportReference(presenter, refs.getRefType(), tuple, refs.isSingleRelation());
|
ClientReportReference cmSeq = new ClientReportReference(presenter, refs.getRefType(), tuple, refs.isSingleRelation());
|
||||||
|
cmSeq.setId(sc.getId());
|
||||||
cmSeq.setMetadata(sc.getMetadata());
|
cmSeq.setMetadata(sc.getMetadata());
|
||||||
this.content = cmSeq;
|
this.content = cmSeq;
|
||||||
} else
|
} else
|
||||||
|
@ -531,6 +532,7 @@ public class TemplateComponent {
|
||||||
break;
|
break;
|
||||||
case REPORT_REFERENCE:
|
case REPORT_REFERENCE:
|
||||||
ClientReportReference cRef = (ClientReportReference) this.content;
|
ClientReportReference cRef = (ClientReportReference) this.content;
|
||||||
|
id = cRef.getId();
|
||||||
metas = cRef.getMetadata();
|
metas = cRef.getMetadata();
|
||||||
ReportReferences ref = new ReportReferences(cRef.getRefType(), cRef.getTupleList(), cRef.isSingleRelation());
|
ReportReferences ref = new ReportReferences(cRef.getRefType(), cRef.getTupleList(), cRef.isSingleRelation());
|
||||||
content = ref;
|
content = ref;
|
||||||
|
|
|
@ -23,8 +23,11 @@ import com.google.gwt.user.client.ui.VerticalPanel;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ClientReportReference extends Composite implements ClientSequence, Cloneable {
|
public class ClientReportReference extends Composite implements ClientSequence, Cloneable {
|
||||||
|
|
||||||
private final int indentationValue = 20;
|
private final int indentationValue = 20;
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
|
||||||
private List<Metadata> metas;
|
private List<Metadata> metas;
|
||||||
protected ArrayList<TemplateComponent> groupedComponents = new ArrayList<TemplateComponent>();
|
protected ArrayList<TemplateComponent> groupedComponents = new ArrayList<TemplateComponent>();
|
||||||
private VerticalPanel myPanel = new VerticalPanel();
|
private VerticalPanel myPanel = new VerticalPanel();
|
||||||
|
@ -206,4 +209,11 @@ public class ClientReportReference extends Composite implements ClientSequence,
|
||||||
public void setMetadata(List<Metadata> metas) {
|
public void setMetadata(List<Metadata> metas) {
|
||||||
this.metas = metas;
|
this.metas = metas;
|
||||||
}
|
}
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ import org.gcube.application.rsg.service.dto.ReportType;
|
||||||
import org.gcube.application.rsg.support.builder.exceptions.ReportBuilderException;
|
import org.gcube.application.rsg.support.builder.exceptions.ReportBuilderException;
|
||||||
import org.gcube.application.rsg.support.builder.impl.ReportManagerReportBuilder;
|
import org.gcube.application.rsg.support.builder.impl.ReportManagerReportBuilder;
|
||||||
import org.gcube.application.rsg.support.model.components.impl.CompiledReport;
|
import org.gcube.application.rsg.support.model.components.impl.CompiledReport;
|
||||||
|
import org.gcube.application.rsg.support.model.utils.CompiledReportUtils;
|
||||||
import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager;
|
import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager;
|
||||||
import org.gcube.applicationsupportlayer.social.NotificationsManager;
|
import org.gcube.applicationsupportlayer.social.NotificationsManager;
|
||||||
import org.gcube.common.homelibrary.home.HomeLibrary;
|
import org.gcube.common.homelibrary.home.HomeLibrary;
|
||||||
|
@ -1618,8 +1619,8 @@ public class ReportServiceImpl extends RemoteServiceServlet implements ReportSe
|
||||||
CompiledReport template = rsgClient.getTemplate(new ReportType(VMETypeIdentifier.Vme.getId()));
|
CompiledReport template = rsgClient.getTemplate(new ReportType(VMETypeIdentifier.Vme.getId()));
|
||||||
CompiledReport toSend = null;
|
CompiledReport toSend = null;
|
||||||
try {
|
try {
|
||||||
toSend = new ReportManagerReportBuilder().extract(template, model);
|
toSend = new ReportManagerReportBuilder().extract(template, model);
|
||||||
} catch (ReportBuilderException e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
//Actual RSG client interface exposes different methods (publish / publishDelta etc.) that need to be updated
|
//Actual RSG client interface exposes different methods (publish / publishDelta etc.) that need to be updated
|
||||||
|
|
Reference in New Issue