From 5850729547f304390a4c8320055b79ae14efc3c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 20 Sep 2017 22:40:51 +0200 Subject: [PATCH] Continued: - add remote interface for administrative purposes for receipts - also the first business method is included (same signature as in general interface but later with different validation) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- ...inancialAdminReceiptSessionBeanRemote.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java new file mode 100644 index 0000000..c4438dc --- /dev/null +++ b/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * 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.jfinancials.model.receipt; + +import java.io.Serializable; +import javax.ejb.Remote; +import org.mxchange.jfinancials.exceptions.ReceiptAlreadyAddedException; + +/** + * A remote interface for administrative EJBs for receipts + *

+ * @author Roland Häder + */ +@Remote +public interface FinancialAdminReceiptSessionBeanRemote extends Serializable { + + /** + * Adds given receipt and returns the updated version. If the receipt has + * already been found, a proper exception is being thrown. + *

+ * @param receipt Receipt being added + *

+ * @return Updated receipt + *

+ * @throws ReceiptAlreadyAddedException If the receipt has already been + * added + */ + BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException; + +} -- 2.39.5