]> git.mxchange.org Git - jjobs-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:22 +0000 (19:58 +0200)
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionController.java

index 20c93b78d36515b55ae706a8efd23f360f02166c..a78551f1179456ca04fbcf11309b28321be9eb06 100644 (file)
@@ -447,6 +447,11 @@ public class JobsAdminUserWebSessionBean implements JobsAdminUserWebSessionContr
                this.zipCode = zipCode;
        }
 
+       @Override
+       public boolean hasUsers () {
+               return (!this.allUsers().isEmpty());
+       }
+
        /**
         * Post-initialization of this class
         */
index dfb13f210f24e89059f6d5ef6d8bdcec35d8b701..24c2dca096b5d6d34507025324665f7de25f79bc 100644 (file)
@@ -52,6 +52,13 @@ public interface JobsAdminUserWebSessionController extends Serializable {
         */
        List<User> allUsers ();
 
+       /**
+        * Checks whether users are registered
+        * <p>
+        * @return Whether users are registered
+        */
+       boolean hasUsers ();
+
        /**
         * Getter for birth day
         * <p>