]> git.mxchange.org Git - addressbook-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:58:31 +0000 (19:58 +0200)
src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java
src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionController.java

index 4d6b19e193112446fa26ce7d4eea5bda314fc9e1..86ef0aa702ba9dc68c886aa42e8aa09004f91fd8 100644 (file)
@@ -447,6 +447,11 @@ public class AddressbookAdminUserWebSessionBean implements AddressbookAdminUserW
                this.zipCode = zipCode;
        }
 
+       @Override
+       public boolean hasUsers () {
+               return (!this.allUsers().isEmpty());
+       }
+
        /**
         * Post-initialization of this class
         */
index 9b8ab0deed51977f56946f149672b937993cdced..26b2fcc209085e955762a81554807aa55e52fa0c 100644 (file)
@@ -52,6 +52,13 @@ public interface AddressbookAdminUserWebSessionController extends Serializable {
         */
        List<User> allUsers ();
 
+       /**
+        * Checks whether users are registered
+        * <p>
+        * @return Whether users are registered
+        */
+       boolean hasUsers ();
+
        /**
         * Getter for birth day
         * <p>