]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
added hasUsers() which checks if users are registered.
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 17:57:28 +0000 (19:57 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 17:57:28 +0000 (19:57 +0200)
src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebSessionBean.java
src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebSessionController.java

index 92af11c2ca55fd2be4d32007e1f8b004a74d04dd..37dfe37b008e73178ef5d6503cfded26b90fbcdd 100644 (file)
@@ -447,6 +447,11 @@ public class PizzaAdminUserWebSessionBean implements PizzaAdminUserWebSessionCon
                this.zipCode = zipCode;
        }
 
+       @Override
+       public boolean hasUsers () {
+               return (!this.allUsers().isEmpty());
+       }
+
        /**
         * Post-initialization of this class
         */
index f2b25ad8bbda9fd3b819228d436df1f3222345ca..cb34c073092d66780366ce30d3f220345998f377 100644 (file)
@@ -52,6 +52,13 @@ public interface PizzaAdminUserWebSessionController extends Serializable {
         */
        List<User> allUsers ();
 
+       /**
+        * Checks whether users are registered
+        * <p>
+        * @return Whether users are registered
+        */
+       boolean hasUsers ();
+
        /**
         * Getter for birth day
         * <p>