[fop] use legacy fop module
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 24 Jan 2019 08:44:20 +0100
changeset 37 654e9dc49c47
parent 36 81095ca78e7d
child 38 956f281f98b7
[fop] use legacy fop module
src-db/database/sourcedata/AD_MODULE.xml
src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
src/org/openbravo/platform/features/ad_reports/FopBarcodeReport.java
--- a/src-db/database/sourcedata/AD_MODULE.xml	Tue Nov 20 17:09:17 2018 +0100
+++ b/src-db/database/sourcedata/AD_MODULE.xml	Thu Jan 24 08:44:20 2019 +0100
@@ -6,7 +6,7 @@
 <!--F2E7A973F06D438B85FFFB96E69670D4-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--F2E7A973F06D438B85FFFB96E69670D4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--F2E7A973F06D438B85FFFB96E69670D4-->  <NAME><![CDATA[Platform Features Testing]]></NAME>
-<!--F2E7A973F06D438B85FFFB96E69670D4-->  <VERSION><![CDATA[0.3.0]]></VERSION>
+<!--F2E7A973F06D438B85FFFB96E69670D4-->  <VERSION><![CDATA[0.4.0]]></VERSION>
 <!--F2E7A973F06D438B85FFFB96E69670D4-->  <DESCRIPTION><![CDATA[Deploys platform features not present in core, so they can be tested]]></DESCRIPTION>
 <!--F2E7A973F06D438B85FFFB96E69670D4-->  <TYPE><![CDATA[M]]></TYPE>
 <!--F2E7A973F06D438B85FFFB96E69670D4-->  <JAVAPACKAGE><![CDATA[org.openbravo.platform.features]]></JAVAPACKAGE>
--- a/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml	Tue Nov 20 17:09:17 2018 +0100
+++ b/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml	Thu Jan 24 08:44:20 2019 +0100
@@ -1,5 +1,19 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <data>
+<!--2A5E675CB576482F9E492AD7EA846930--><AD_MODULE_DEPENDENCY>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <AD_MODULE_DEPENDENCY_ID><![CDATA[2A5E675CB576482F9E492AD7EA846930]]></AD_MODULE_DEPENDENCY_ID>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <AD_MODULE_ID><![CDATA[F2E7A973F06D438B85FFFB96E69670D4]]></AD_MODULE_ID>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <AD_DEPENDENT_MODULE_ID><![CDATA[F24A0A6A766549AEB68CDD1132CEC987]]></AD_DEPENDENT_MODULE_ID>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <STARTVERSION><![CDATA[1.0.0]]></STARTVERSION>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <ISINCLUDED><![CDATA[N]]></ISINCLUDED>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <DEPENDANT_MODULE_NAME><![CDATA[Legacy FOP Support]]></DEPENDANT_MODULE_NAME>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <DEPENDENCY_ENFORCEMENT><![CDATA[MAJOR]]></DEPENDENCY_ENFORCEMENT>
+<!--2A5E675CB576482F9E492AD7EA846930-->  <USER_EDITABLE_ENFORCEMENT><![CDATA[N]]></USER_EDITABLE_ENFORCEMENT>
+<!--2A5E675CB576482F9E492AD7EA846930--></AD_MODULE_DEPENDENCY>
+
 <!--D19D3AD7EF6A455783405A3722C80A52--><AD_MODULE_DEPENDENCY>
 <!--D19D3AD7EF6A455783405A3722C80A52-->  <AD_MODULE_DEPENDENCY_ID><![CDATA[D19D3AD7EF6A455783405A3722C80A52]]></AD_MODULE_DEPENDENCY_ID>
 <!--D19D3AD7EF6A455783405A3722C80A52-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -7,7 +21,7 @@
 <!--D19D3AD7EF6A455783405A3722C80A52-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--D19D3AD7EF6A455783405A3722C80A52-->  <AD_MODULE_ID><![CDATA[F2E7A973F06D438B85FFFB96E69670D4]]></AD_MODULE_ID>
 <!--D19D3AD7EF6A455783405A3722C80A52-->  <AD_DEPENDENT_MODULE_ID><![CDATA[7E48CDD73B7E493A8BED4F7253E7C989]]></AD_DEPENDENT_MODULE_ID>
-<!--D19D3AD7EF6A455783405A3722C80A52-->  <STARTVERSION><![CDATA[2.1.33542]]></STARTVERSION>
+<!--D19D3AD7EF6A455783405A3722C80A52-->  <STARTVERSION><![CDATA[2.1.35301]]></STARTVERSION>
 <!--D19D3AD7EF6A455783405A3722C80A52-->  <ISINCLUDED><![CDATA[N]]></ISINCLUDED>
 <!--D19D3AD7EF6A455783405A3722C80A52-->  <DEPENDANT_MODULE_NAME><![CDATA[Openbravo 3.0 Framework]]></DEPENDANT_MODULE_NAME>
 <!--D19D3AD7EF6A455783405A3722C80A52-->  <DEPENDENCY_ENFORCEMENT><![CDATA[MAJOR]]></DEPENDENCY_ENFORCEMENT>
--- a/src/org/openbravo/platform/features/ad_reports/FopBarcodeReport.java	Tue Nov 20 17:09:17 2018 +0100
+++ b/src/org/openbravo/platform/features/ad_reports/FopBarcodeReport.java	Thu Jan 24 08:44:20 2019 +0100
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2016 Openbravo SLU 
+ * All portions are Copyright (C) 2016-2019 Openbravo SLU 
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -24,11 +24,11 @@
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
-import org.openbravo.base.secureApp.HttpSecureAppServlet;
 import org.openbravo.base.secureApp.VariablesSecureApp;
+import org.openbravo.service.fop.FopSecureAppServlet;
 import org.openbravo.xmlEngine.XmlDocument;
 
-public class FopBarcodeReport extends HttpSecureAppServlet {
+public class FopBarcodeReport extends FopSecureAppServlet {
   private static final long serialVersionUID = 1L;
 
   public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException,