From: Roland Haeder Date: Sun, 10 Apr 2016 17:57:28 +0000 (+0200) Subject: added hasUsers() which checks if users are registered. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b831e50077db18338a0d8d37c92d3f51a6fde227;p=jjobs-war.git added hasUsers() which checks if users are registered. --- diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java index 20c93b78..a78551f1 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java @@ -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 */ diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionController.java b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionController.java index dfb13f21..24c2dca0 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionController.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionController.java @@ -52,6 +52,13 @@ public interface JobsAdminUserWebSessionController extends Serializable { */ List allUsers (); + /** + * Checks whether users are registered + *

+ * @return Whether users are registered + */ + boolean hasUsers (); + /** * Getter for birth day *