]> git.mxchange.org Git - jproduct-lib.git/commitdiff
added remote interface for creating receipts in various formats + dependency on new...
authorRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 12:56:43 +0000 (14:56 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 13:01:54 +0000 (15:01 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jshop-core.jar
nbproject/build-impl.xml
nbproject/genfiles.properties
nbproject/project.properties
nbproject/project.xml
src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java [new file with mode: 0644]

index afb43eb72ded776a734fd6fa67759259d5de90bb..5f4906c7ffb49defc0f43891ed5564ef2af01111 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index a80de46863fdc45f4387e4a26c57c540aec47592..a750a50c773cc5c3dcd206945489f9e274e5b5d2 100644 (file)
@@ -929,6 +929,14 @@ is divided into following sections:
             <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
             <param name="transfer.not.archive.disabled" value="true"/>
         </antcall>
+        <antcall target="-maybe-call-dep">
+            <param name="call.built.properties" value="${built-jar.properties}"/>
+            <param location="${project.jshop-receipt}" name="call.subproject"/>
+            <param location="${project.jshop-receipt}/build.xml" name="call.script"/>
+            <param name="call.target" value="dist"/>
+            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
+            <param name="transfer.not.archive.disabled" value="true"/>
+        </antcall>
     </target>
     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
     <target depends="init" name="-check-automatic-build">
@@ -1422,6 +1430,14 @@ is divided into following sections:
             <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
             <param name="transfer.not.archive.disabled" value="true"/>
         </antcall>
+        <antcall target="-maybe-call-dep">
+            <param name="call.built.properties" value="${built-clean.properties}"/>
+            <param location="${project.jshop-receipt}" name="call.subproject"/>
+            <param location="${project.jshop-receipt}/build.xml" name="call.script"/>
+            <param name="call.target" value="clean"/>
+            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
+            <param name="transfer.not.archive.disabled" value="true"/>
+        </antcall>
     </target>
     <target depends="init" name="-do-clean">
         <delete dir="${build.dir}"/>
index 69dc043dda33529e8a4b07584eebef57672beedb..a94071a4e08c31c9c59c3b28a77d9e6d767ad4a6 100644 (file)
@@ -1,8 +1,8 @@
-build.xml.data.CRC32=efd9a8cc
+build.xml.data.CRC32=8f180b9e
 build.xml.script.CRC32=7a07e688
 build.xml.stylesheet.CRC32=8064a381@1.75.2.48
 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=efd9a8cc
-nbproject/build-impl.xml.script.CRC32=38303d69
+nbproject/build-impl.xml.data.CRC32=8f180b9e
+nbproject/build-impl.xml.script.CRC32=be1c6de4
 nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
index ad2dcee6f86d544c25a4b941d1f06aaba2572ec0..80c859b304a4245d2e9617a551fb6949405cbc07 100644 (file)
@@ -42,6 +42,7 @@ javac.classpath=\
     ${reference.jcore-ee-logger.dist}:\
     ${file.reference.jcoreee.jar}:\
     ${file.reference.jshop-core.jar}:\
+    ${reference.jshop-receipt.dist}:\
     ${libs.javaee-api-7.0.classpath}
 # Space-separated list of extra javac options
 javac.compilerargs=
@@ -83,8 +84,10 @@ meta.inf.dir=${src.dir}/META-INF
 mkdist.disabled=true
 platform.active=default_platform
 project.jcore-ee-logger=../jcore-ee-logger
+project.jshop-receipt=../jshop-receipt
 project.license=gpl30
 reference.jcore-ee-logger.dist=${project.jcore-ee-logger}/dist/jcore-ee-logger.jar
+reference.jshop-receipt.dist=${project.jshop-receipt}/dist/jshop-receipt.jar
 run.classpath=\
     ${javac.classpath}:\
     ${build.classes.dir}
index 69a12654731372ce1d189e3096631cad629951e9..133b678302da110b20f546adc05a0592d1b4d18f 100644 (file)
                 <clean-target>clean</clean-target>
                 <id>dist</id>
             </reference>
+            <reference>
+                <foreign-project>jshop-receipt</foreign-project>
+                <artifact-type>jar</artifact-type>
+                <script>build.xml</script>
+                <target>dist</target>
+                <clean-target>clean</clean-target>
+                <id>dist</id>
+            </reference>
         </references>
     </configuration>
 </project>
diff --git a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java
new file mode 100644 (file)
index 0000000..3e3380e
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jshopcore.model.receipt;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jshopreceipt.WrapableReceipt;
+
+/**
+ * A remote interface for official recipt creation
+ *
+ * @author Roland Haeder
+ */
+@Remote
+public interface ReceiptBeanRemote extends Serializable {
+
+       /**
+        * Returns a wrapped PDF byte stream for given access key or null if not
+        * found.
+        *
+        * @param accessKey Access key on the online PDF
+        * @return Wrapped byte stream
+        */
+       public WrapableReceipt createReceiptFromAccessKey (final String accessKey);
+}