]> git.mxchange.org Git - addressbook-war.git/commitdiff
added method allPublicUsers(). This can be called from public pages, too.
authorRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 12:14:34 +0000 (14:14 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 12:14:34 +0000 (14:14 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/addressbook/beans/user/UserWebBean.java
src/java/org/mxchange/addressbook/beans/user/UserWebController.java

index 650d6540122f439136581e13932db888da52d174..64846978aea7d963d36a9b002d47485bf68eb92e 100644 (file)
@@ -17,6 +17,7 @@
 package org.mxchange.addressbook.beans.user;
 
 import java.text.MessageFormat;
+import java.util.Collections;
 import java.util.Date;
 import java.util.GregorianCalendar;
 import java.util.List;
@@ -241,6 +242,12 @@ public class UserWebBean implements UserWebController {
                this.emailAddressList.add(user.getUserContact().getContactEmailAddress());
        }
 
+       @Override
+       public List<User> allPublicUsers () {
+               // Return it
+               return Collections.unmodifiableList(this.publicUserList);
+       }
+
        @Override
        public void clearData () {
                // Clear all data
index 91f6ec10dae0799702d9cc610088ec4d65e6e424..e1e153c49bcce588caacd2da27226b5548bd19a1 100644 (file)
@@ -18,6 +18,7 @@ package org.mxchange.addressbook.beans.user;
 
 import java.io.Serializable;
 import java.util.Date;
+import java.util.List;
 import org.mxchange.jcontacts.contact.gender.Gender;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jphone.phonenumbers.smsprovider.SmsProvider;
@@ -39,6 +40,13 @@ public interface UserWebController extends Serializable {
         */
        public void addUserNameEmailAddress (final User user);
 
+       /**
+        * All public user profiles
+        * <p>
+        * @return A list of all public user profiles
+        */
+       public List<User> allPublicUsers ();
+
        /**
         * Clears all data in this bean
         */