]> git.mxchange.org Git - jfinancials-lib.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Tue, 19 Sep 2017 19:27:39 +0000 (21:27 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 19 Sep 2017 19:27:39 +0000 (21:27 +0200)
- added allReceipts() business method
- allUserReceipts() and similar methods should always return List<POJI> to make
  all remote interfaces consistent

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java

index da03bca6181d8c6d3ab20df1a85c8eeb8607884c..f88b019c6667bfcdc34857c3033b6f5aab313775 100644 (file)
@@ -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
+        * <p>
+        * @return A list of all user's receipts
+        */
+       List<BillableReceipt> allReceipts ();
+
+       /**
+        * Returns a list of all user's receipts
         * <p>
         * @param user User instance to get all receipts for
         * <p>
-        * @return A collection of all user's receipts
+        * @return A list of all user's receipts
         */
-       Collection<? extends BillableReceipt> allUsersReceipts (final User user);
+       List<BillableReceipt> allUsersReceipts (final User user);
 
        /**
         * Adds given receipt and returns the updated version. If the receipt has