From: Roland Häder Date: Tue, 19 Sep 2017 19:27:39 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3fa375b294352afe2ddfd2a40faae12cab57c1bc;p=jbonuscard-lib.git Continued a bit: - added allReceipts() business method - allUserReceipts() and similar methods should always return List to make all remote interfaces consistent Signed-off-by: Roland Häder --- 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