From 77abb414bfaf9281746d20ad97770c7062a33313 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 18 Sep 2015 14:56:43 +0200 Subject: [PATCH] =?utf8?q?added=20remote=20interface=20for=20creating=20re?= =?utf8?q?ceipts=20in=20various=20formats=20+=20dependency=20on=20new=20pr?= =?utf8?q?oject=20"jshop-receipt"=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jshop-core.jar | Bin 35810 -> 35810 bytes nbproject/build-impl.xml | 16 +++++++ nbproject/genfiles.properties | 6 +-- nbproject/project.properties | 3 ++ nbproject/project.xml | 8 ++++ .../model/receipt/ReceiptBeanRemote.java | 39 ++++++++++++++++++ 6 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index afb43eb72ded776a734fd6fa67759259d5de90bb..5f4906c7ffb49defc0f43891ed5564ef2af01111 100644 GIT binary patch delta 584 zcmaDfo$1kZCY}IqW)?061`Y-W&HRZxnoJt`6V0bH0ofN6K;$P)AURo<(HKMl#V0o~ zbED{)Jc-c~BzKn40YvdLIYB6c$?-lMle?L?AR6sJ)O99D5GBQI4Wu@QGpn+I=sNZY zCJ=ptGXzZQ@!Vhr@i_$Y!15I$XTf}TiDzJ1U*;oNoszsLFG!uGPAOP?gT4TmK4f&9 z10>#Uy`K?8``G>jt9N(c0?P+GyRn1BXM1e`tMd)k;Q{fhBIknCb7+RAT)PX(zsLlW+C{hm&4gY#)5KpsFX7Yx5BM|dR zy(fs$ZwLTUjSWE%N@nuM1~U*-v(XPkRW=5Ks56b;AWE{S7)13o<$SjpBdu%Ku+*p%|_YygS1ychrg delta 584 zcmaDfo$1kZCY}IqW)?061`Y;>lOYp%G?`9>Of;X)1Y}=O0Fj?Gf#hUaMq>~)ok??Y z12Z>@p2?FKEkSZ;867|rKa&%LGMF6i!!fy=i3_694n$pNas*LQ%+^3^b2zgq3y7{` zk6;4PH#kGUv>wk5W)Po4AP+2GA#xVXcb9kuruAh$g4HR>i}HfhS?ZL6#W&~+faya< z$2maa-PZdVL9~zUPq2D-2QILDu(KOGNPM=}2CzEcU>zP1zdC*zD~J|O)uXEP25Y^Za1fgUme{3)VF*O_gKvZR8Ac#8C=nbMIn~FhHUsE24`qz{TqH>!{ zLDZAxG7uHhQUanbwSeUuThl?jRjmmiil;3GL}j&sd1u;EKs=*%FmFmbSmj>`FTNuc nBzLR>tVE|1tgovx4kY-hGYLfbb%B*^?E(vmc7shR@6HAQB5LA_ 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); +} -- 2.39.5