Permalink
Browse files

base version

  • Loading branch information...
0 parents commit 9d1c11bcfb99c49a753317ed0c4d83315fe8c46e unknown committed Jul 30, 2012
Showing with 9,806 additions and 0 deletions.
  1. +9 −0 bpmc-report-server-32b4d53/README_BIRT.txt
  2. +92 −0 bpmc-report-server-32b4d53/core/pom.xml
  3. +56 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/BirtEngineFactory.java
  4. +466 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/BirtService.java
  5. +85 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/IntegrationConfig.java
  6. +152 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/JMXServerConfig.java
  7. +541 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/JasperService.java
  8. +104 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/RenderMetaData.java
  9. +351 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/ReportFacade.java
  10. +198 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/util/BirtUtil.java
  11. +634 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/util/DOMWriter.java
  12. +67 −0 bpmc-report-server-32b4d53/core/src/main/java/org/jboss/bpm/report/util/FileWriter.java
  13. +2,545 −0 bpmc-report-server-32b4d53/core/src/main/resources/sample.rptdesign
  14. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/BirtEngineFactory.class
  15. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/BirtService$1.class
  16. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/BirtService$2.class
  17. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/BirtService$3.class
  18. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/BirtService$State.class
  19. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/BirtService.class
  20. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/IntegrationConfig.class
  21. BIN ...t-server-32b4d53/core/target/classes/org/jboss/bpm/report/JMXServerConfig$ObjectNameFactory.class
  22. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/JMXServerConfig.class
  23. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/JasperService$1.class
  24. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/JasperService$2.class
  25. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/JasperService$3.class
  26. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/JasperService$State.class
  27. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/JasperService.class
  28. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/RenderMetaData$Format.class
  29. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/RenderMetaData.class
  30. BIN ...port-server-32b4d53/core/target/classes/org/jboss/bpm/report/ReportFacade$BirtInitException.class
  31. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/ReportFacade.class
  32. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/util/BirtUtil.class
  33. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/util/DOMWriter.class
  34. BIN bpmc-report-server-32b4d53/core/target/classes/org/jboss/bpm/report/util/FileWriter.class
  35. +2,545 −0 bpmc-report-server-32b4d53/core/target/classes/sample.rptdesign
  36. +5 −0 bpmc-report-server-32b4d53/core/target/maven-archiver/pom.properties
  37. BIN bpmc-report-server-32b4d53/core/target/report-core-1.5.0-SNAPSHOT-sources.jar
  38. BIN bpmc-report-server-32b4d53/core/target/report-core-1.5.0-SNAPSHOT.jar
  39. +206 −0 bpmc-report-server-32b4d53/pom.xml
  40. +316 −0 bpmc-report-server-32b4d53/report-server.ipr
  41. +693 −0 bpmc-report-server-32b4d53/report-server.iws
  42. +63 −0 bpmc-report-server-32b4d53/server/pom.xml
  43. +57 −0 bpmc-report-server-32b4d53/server/src/main/java/org/jboss/bpm/report/ServerApplication.java
  44. +25 −0 bpmc-report-server-32b4d53/server/src/main/webapp/WEB-INF/jboss-web.xml
  45. +64 −0 bpmc-report-server-32b4d53/server/src/main/webapp/WEB-INF/web.xml
  46. +36 −0 bpmc-report-server-32b4d53/server/src/main/webapp/index.html
  47. BIN bpmc-report-server-32b4d53/server/src/main/webapp/loader.gif
  48. +49 −0 bpmc-report-server-32b4d53/server/src/main/webapp/loadffw.html
  49. BIN bpmc-report-server-32b4d53/server/target/classes/org/jboss/bpm/report/ServerApplication.class
  50. +5 −0 bpmc-report-server-32b4d53/server/target/maven-archiver/pom.properties
  51. BIN bpmc-report-server-32b4d53/server/target/report-server-sources.jar
  52. BIN bpmc-report-server-32b4d53/server/target/report-server.war
  53. BIN ...-32b4d53/server/target/report-server/WEB-INF/classes/org/jboss/bpm/report/ServerApplication.class
  54. +25 −0 bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/jboss-web.xml
  55. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/bcmail-jdk14-1.38.jar
  56. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/bcmail-jdk14-138.jar
  57. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/bcprov-jdk14-1.38.jar
  58. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/bcprov-jdk14-138.jar
  59. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/bctsp-jdk14-1.38.jar
  60. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/castor-1.2.jar
  61. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/commons-beanutils-1.8.0.jar
  62. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/commons-collections-2.1.jar
  63. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/commons-digester-2.1.jar
  64. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/commons-logging-1.1.1.jar
  65. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/dom4j-1.6.1.jar
  66. BIN ...-report-server-32b4d53/server/target/report-server/WEB-INF/lib/geronimo-stax-api_1.0_spec-1.0.jar
  67. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/gson-1.2.2.jar
  68. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/itext-2.1.7.jar
  69. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/jackson-core-asl-1.9.4.jar
  70. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/jackson-mapper-asl-1.9.4.jar
  71. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/jasperreports-4.6.0.jar
  72. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/javassist-3.6.0.GA.jar
  73. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/jaxrs-api-1.0.2.GA.jar
  74. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/jcommon-1.0.15.jar
  75. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/jdtcore-3.1.0.jar
  76. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/jfreechart-1.0.12.jar
  77. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/jsr250-api-1.0.jar
  78. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/poi-3.7.jar
  79. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/poi-ooxml-3.7.jar
  80. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/poi-ooxml-schemas-3.7.jar
  81. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/report-core-1.5.0-SNAPSHOT.jar
  82. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/report-shared-1.5.0-SNAPSHOT.jar
  83. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/resteasy-jaxrs-1.0.2.GA.jar
  84. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/scannotation-1.0.2.jar
  85. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/stax-api-1.0.1.jar
  86. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/xml-apis-1.3.02.jar
  87. BIN bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/lib/xmlbeans-2.3.0.jar
  88. +64 −0 bpmc-report-server-32b4d53/server/target/report-server/WEB-INF/web.xml
  89. +36 −0 bpmc-report-server-32b4d53/server/target/report-server/index.html
  90. BIN bpmc-report-server-32b4d53/server/target/report-server/loader.gif
  91. +49 −0 bpmc-report-server-32b4d53/server/target/report-server/loadffw.html
  92. +39 −0 bpmc-report-server-32b4d53/shared/pom.xml
  93. +108 −0 bpmc-report-server-32b4d53/shared/src/main/java/org/jboss/bpm/report/model/ReportParameter.java
  94. +110 −0 bpmc-report-server-32b4d53/shared/src/main/java/org/jboss/bpm/report/model/ReportReference.java
  95. +3 −0 bpmc-report-server-32b4d53/shared/src/main/resources/org/jboss/bpm/report/BPMReport.gwt.xml
  96. +3 −0 bpmc-report-server-32b4d53/shared/target/classes/org/jboss/bpm/report/BPMReport.gwt.xml
  97. BIN ...rt-server-32b4d53/shared/target/classes/org/jboss/bpm/report/model/ReportParameter$DataType.class
  98. BIN ...report-server-32b4d53/shared/target/classes/org/jboss/bpm/report/model/ReportParameter$Type.class
  99. BIN bpmc-report-server-32b4d53/shared/target/classes/org/jboss/bpm/report/model/ReportParameter.class
  100. BIN bpmc-report-server-32b4d53/shared/target/classes/org/jboss/bpm/report/model/ReportReference.class
  101. +5 −0 bpmc-report-server-32b4d53/shared/target/maven-archiver/pom.properties
  102. BIN bpmc-report-server-32b4d53/shared/target/report-shared-sources.jar
  103. BIN bpmc-report-server-32b4d53/shared/target/report-shared.jar
@@ -0,0 +1,9 @@
+Getting BIRT
+------------
+
+You need to have the proper BIRT version installed.
+It can be downloaded here:
+http://archive.eclipse.org/birt/downloads/build_list.php
+
+
+
@@ -0,0 +1,92 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>JBoss BPM - Report Core</name>
+ <groupId>org.jboss.bpm</groupId>
+ <artifactId>report-core</artifactId>
+ <packaging>jar</packaging>
+
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss.bpm</groupId>
+ <artifactId>report-parent</artifactId>
+ <version>1.5.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <properties>
+ <birt.version>3.7.0</birt.version>
+ <emf.version>2.7.0</emf.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.bpm</groupId>
+ <artifactId>report-shared</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <!-- Other -->
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.birt</groupId>
+ <artifactId>core</artifactId>
+ <version>${birt.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.birt</groupId>
+ <artifactId>report-engine</artifactId>
+ <version>${birt.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.birt</groupId>
+ <artifactId>report-model</artifactId>
+ <version>${birt.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.resteasy</groupId>
+ <artifactId>resteasy-jaxrs</artifactId>
+ <scope>provided</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.code.gson</groupId>
+ <artifactId>gson</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.jasperreports</groupId>
+ <artifactId>jasperreports</artifactId>
+ </dependency>
+
+ </dependencies>
+</project>
@@ -0,0 +1,56 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.bpm.report;
+
+import org.eclipse.birt.report.engine.api.IReportEngine;
+import org.eclipse.birt.report.engine.api.EngineConfig;
+import org.eclipse.birt.report.engine.api.IReportEngineFactory;
+import org.eclipse.birt.core.framework.Platform;
+import org.eclipse.birt.core.exception.BirtException;
+
+/**
+* Constructs an {@link IReportEngine} from {@link org.jboss.bpm.report.IntegrationConfig}
+*
+* @author Heiko.Braun <heiko.braun@jboss.com>
+*/
+public class BirtEngineFactory
+{
+ public static IReportEngine newInstance(IntegrationConfig iConfig)
+ {
+ try
+ {
+ EngineConfig config = new EngineConfig( );
+ config.setBIRTHome(iConfig.getBirtHome());
+
+ Platform.startup( config );
+ IReportEngineFactory factory = (IReportEngineFactory) Platform
+ .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
+
+ IReportEngine engine = factory.createReportEngine( config );
+ return engine;
+ }
+ catch (BirtException e)
+ {
+ throw new RuntimeException("Failed to create birt engine", e);
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit 9d1c11b

Please sign in to comment.