From 3fa375b294352afe2ddfd2a40faae12cab57c1bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 19 Sep 2017 21:27:39 +0200 Subject: [PATCH] Continued a bit: - added allReceipts() business method - allUserReceipts() and similar methods should always return List to make all remote interfaces consistent MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../FinancialReceiptSessionBeanRemote.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java index da03bca..f88b019 100644 --- a/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java +++ b/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java @@ -17,7 +17,7 @@ package org.mxchange.jfinancials.model.receipt; import java.io.Serializable; -import java.util.Collection; +import java.util.List; import javax.ejb.Remote; import org.mxchange.jfinancials.exceptions.ReceiptAlreadyAddedException; import org.mxchange.jusercore.model.user.User; @@ -31,13 +31,20 @@ import org.mxchange.jusercore.model.user.User; public interface FinancialReceiptSessionBeanRemote extends Serializable { /** - * Returns a collection of all user's receipts + * Returns a list of all receipts + *

+ * @return A list of all user's receipts + */ + List allReceipts (); + + /** + * Returns a list of all user's receipts *

* @param user User instance to get all receipts for *

- * @return A collection of all user's receipts + * @return A list of all user's receipts */ - Collection allUsersReceipts (final User user); + List allUsersReceipts (final User user); /** * Adds given receipt and returns the updated version. If the receipt has -- 2.39.5