From: Roland Haeder Date: Fri, 18 Sep 2015 12:56:43 +0000 (+0200) Subject: added remote interface for creating receipts in various formats + dependency on new... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=77abb414bfaf9281746d20ad97770c7062a33313;p=jproduct-lib.git added remote interface for creating receipts in various formats + dependency on new project "jshop-receipt" Signed-off-by:Roland Häder --- diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index afb43eb..5f4906c 100644 Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index a80de46..a750a50 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -929,6 +929,14 @@ is divided into following sections: + + + + + + + + @@ -1422,6 +1430,14 @@ is divided into following sections: + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index 69dc043..a94071a 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -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 diff --git a/nbproject/project.properties b/nbproject/project.properties index ad2dcee..80c859b 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -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} diff --git a/nbproject/project.xml b/nbproject/project.xml index 69a1265..133b678 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -23,6 +23,14 @@ clean dist + + jshop-receipt + jar + + dist + clean + dist + diff --git a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java new file mode 100644 index 0000000..3e3380e --- /dev/null +++ b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java @@ -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 . + */ +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); +}