]> git.mxchange.org Git - addressbook-war.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 09:55:18 +0000 (11:55 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 09:55:18 +0000 (11:55 +0200)
- added stuff for user list
- renamed message keys
- updated jar(s)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/juser-lib.jar
src/java/org/mxchange/addressbook/beans/user/UserWebBean.java
src/java/org/mxchange/addressbook/beans/user/UserWebController.java
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/login/login_own_addressbooks.xhtml
web/login/login_shared_addressbooks.xhtml
web/login/login_user_list.xhtml

index 58f2ee90b29321699f2f266df483624bbb90532d..8baa23438388e930056991e3fedbe68cfe3603d1 100644 (file)
Binary files a/lib/juser-lib.jar and b/lib/juser-lib.jar differ
index 09db6e22cf41dff3d68bc7715a9657645273dabc..9aaa709a63d516389641665f1d5b5e7f8a82e9dc 100644 (file)
@@ -193,6 +193,11 @@ public class UserWebBean implements UserWebController {
         */
        private Integer zipCode;
 
+       /**
+        * A list of all public user profiles
+        */
+       private List<User> publicUserList;
+
        /**
         * Default constructor
         */
@@ -648,6 +653,9 @@ public class UserWebBean implements UserWebController {
 
                // Get full email address list for reducing EJB calls
                this.emailAddressList = this.userBean.getEmailAddressList();
+
+               // Initialize user list
+               this.publicUserList = this.userBean.allPublicUsers();
        }
 
        @Override
@@ -655,6 +663,11 @@ public class UserWebBean implements UserWebController {
                return ((this.emailAddressList instanceof List) && (this.emailAddressList.contains(user.getUserContact().getContactEmailAddress())));
        }
 
+       @Override
+       public boolean isPublicUserRegistered () {
+               return ((this.publicUserList instanceof List) && (!this.publicUserList.isEmpty()));
+       }
+
        @Override
        public boolean isRequiredPersonalDataSet () {
                return ((this.getUserName() != null)
index 2d88e45e983f9a511190453024d332a218490434..f5df38c9246df8707e8416d55e02e2dc64b587f5 100644 (file)
@@ -430,4 +430,12 @@ public interface UserWebController extends Serializable {
         * @return Whether it is already used
         */
        public boolean isUserNameRegistered (final User user);
+
+       /**
+        * Checks whether a public user account is registered. This means that at
+        * least one user profile has its flag "public user profile" enabled.
+        * <p>
+        * @return Whether at least one user has a public profile
+        */
+       public boolean isPublicUserRegistered ();
 }
index 1a87bd56488d1a800be45dc8f5dc7199814c45f8..7b2d9d282fe04357dcaf86ae61863225385a14da 100644 (file)
@@ -157,7 +157,7 @@ GUEST_YES_READ_TERMS_CONDITIONS_2=gelesen und verstanden und nehme sie hiermit a
 TERMS_CONDITIONS=Allgemeine Gesch\u00e4ftsbestimmungen
 PAGE_TITLE_LOGIN_AREA=Benuzterbereich
 TABLE_HEADER_LIST_OWN_ADDRESSBOOKS=Meine eigenen Adressb\u00fccher:
-TABLE_SUMMARY_LIST_OWN_ADDRESSBOOKS=Diese Tabelle listet alle von Ihnen angelegten Adressb\u00fccher sortiert nach Id-Nummer auf.
+TABLE_SUMMARY_LOGIN_LIST_OWN_ADDRESSBOOKS=Diese Tabelle listet alle von Ihnen angelegten Adressb\u00fccher sortiert nach Id-Nummer auf.
 LINK_LOGIN_ADD_ADDITIONAL_ADDRESSBOOK=Weiteres Adressbuch hinzuf\u00fcgen
 LINK_LOGIN_ADD_FIRST_ADDRESSBOOK=Erstes Adressbuch anlegen
 LINK_LOGIN_ADD_ADDITIONAL_ADDRESSBOOK_TITLE=Legen Sie ein weiteres Adressbuch an. So organisieren Sie Ihre Kontakte besser.
@@ -196,5 +196,7 @@ PAGE_TITLE_LOGIN_SHARED_ADDRESSBOOKS=Mit anderen geteilte Adressb\u00fccher
 CONTENT_TITLE_LOGIN_SHARED_ADDRESSBOOKS=Meine mit anderen Benutzern geteilte Adressb\u00fccher:
 LINK_LOGIN_START_SHARING_ADDRESSBOOKS=Jetzt Ihre Adressb\u00fccher mit anderen Mitgliedern teilen!
 LOGIN_TABLE_HEADER_SHARED_ADDRESSBOOKS=Meine mit anderen Benutzern geteilte Adressb\u00fccher
-TABLE_SUMMARY_SHARED_ADDRESSBOOKS=Diese Tabelle listed alle von Ihnen mit anderen Benutzern geteilte Adressb\u00fccher auf.
+TABLE_SUMMARY_LOGIN_SHARED_ADDRESSBOOKS=Diese Tabelle listed alle von Ihnen mit anderen Benutzern geteilte Adressb\u00fccher auf.
 LOGIN_USER_HAS_NOT_SHARED_ADDRESSBOOKS=Derzeit teilen Sie keine Adressb\u00fccher mit anderen Benutzern.
+LOGIN_TABLE_HEADER_USER_LIST=Alle Benutzer auflisten
+TABLE_SUMMARY_LOGIN_USER_LIST=Diese Tabelle listet alle registrierten Benutzer aus, mit denen Sie Ihre Adressb\u00fccher teilen k\u00f6nnen.
index 4ea8d2f4c3c9a43043d7016746e37ac6aaa2285a..d9124c031627d6be6b1c6ffd3cdf4743ece17c52 100644 (file)
@@ -157,7 +157,7 @@ GUEST_YES_READ_TERMS_CONDITIONS_2=and I accept them with this.
 TERMS_CONDITIONS=Terms & Conditions
 PAGE_TITLE_LOGIN_AREA=User area
 TABLE_HEADER_LIST_OWN_ADDRESSBOOKS=My own address books:
-TABLE_SUMMARY_LIST_OWN_ADDRESSBOOKS=This table lists all of your created address books sorted by id nummer.
+TABLE_SUMMARY_LOGIN_LIST_OWN_ADDRESSBOOKS=This table lists all of your created address books sorted by id nummer.
 LINK_LOGIN_ADD_ADDITIONAL_ADDRESSBOOK=Add additional address book
 LINK_LOGIN_ADD_FIRST_ADDRESSBOOK=Create first address book
 LINK_LOGIN_ADD_ADDITIONAL_ADDRESSBOOK_TITLE=You can create an additional address book here. This way you can organize your contacts.
@@ -196,5 +196,7 @@ PAGE_TITLE_LOGIN_SHARED_ADDRESSBOOKS=With others shared address books
 CONTENT_TITLE_LOGIN_SHARED_ADDRESSBOOKS=Mine with other users shared address books:
 LINK_LOGIN_START_SHARING_ADDRESSBOOKS=Start now sharing your address books with other users!
 LOGIN_TABLE_HEADER_SHARED_ADDRESSBOOKS=My with other users shared address books
-TABLE_SUMMARY_SHARED_ADDRESSBOOKS=This table lists all your with other users shared address books.
+TABLE_SUMMARY_LOGIN_SHARED_ADDRESSBOOKS=This table lists all your with other users shared address books.
 LOGIN_USER_HAS_NOT_SHARED_ADDRESSBOOKS=Currently you don't share any address books with other users.
+LOGIN_TABLE_HEADER_USER_LIST=List all users
+TABLE_SUMMARY_LOGIN_USER_LIST=This table lists all registered users you can share your address books with.
index 9f7c6b4aedacdfd810cb8aba7666f5b66c75e016..b69f47db8d209ddc7319a1972dabbb5306df7ec9 100644 (file)
@@ -20,7 +20,7 @@
                                </div>
 
                                <div class="para">
-                                       <h:dataTable id="table_own_addressbooks" var="addressbook" value="#{addressbookController.allAddressbooks()}" styleClass="table" summary="#{msg.TABLE_SUMMARY_LIST_OWN_ADDRESSBOOKS}" rendered="#{addressbookController.hasCreatedAddressbooks()}">
+                                       <h:dataTable id="table_own_addressbooks" var="addressbook" value="#{addressbookController.allAddressbooks()}" styleClass="table" summary="#{msg.TABLE_SUMMARY_LOGIN_LIST_OWN_ADDRESSBOOKS}" rendered="#{addressbookController.hasCreatedAddressbooks()}">
                                                <h:column>
                                                        <f:facet name="header">#{msg.ADDRESSBOOK_ID}</f:facet>
 
index 8796fef33c9ac58262749f23422ec7223f2f6133..6dbc57d146a0c92f26e635d4bfa29f2c440bdf63 100644 (file)
@@ -19,7 +19,7 @@
                                        #{msg.LOGIN_TABLE_HEADER_SHARED_ADDRESSBOOKS}
                                </div>
 
-                               <h:dataTable id="sharedAddressbooks" summary="#{msg.TABLE_SUMMARY_SHARED_ADDRESSBOOKS}" var="shares" value="#{addressbookController.allShares()}" rendered="#{shareController.isSharingAddressbooks()}">
+                               <h:dataTable id="sharedAddressbooks" summary="#{msg.TABLE_SUMMARY_LOGIN_SHARED_ADDRESSBOOKS}" var="shares" value="#{addressbookController.allShares()}" rendered="#{shareController.isSharingAddressbooks()}">
                                </h:dataTable>
 
                                <h:outputText class="notice" value="#{msg.LOGIN_USER_HAS_NOT_SHARED_ADDRESSBOOKS}" rendered="#{shareController.isSharingAddressbooks() == false}" />
index 2126006a27364c8807cfc0d371be0d376603516f..28b68bef497951af4c15b506fde2dc180ae8ea72 100644 (file)
                </ui:define>
 
                <ui:define name="content">
-                       Here goes your content.
+                       <div class="table">
+                               <div class="table_header">
+                                       #{msg.LOGIN_TABLE_HEADER_USER_LIST}
+                               </div>
+
+                               <h:dataTable id="userList" summary="#{msg.TABLE_SUMMARY_LOGIN_USER_LIST}" var="user" value="#{userController.allPublicUsers()}" rendered="#{userController.isPublicUserRegistered()}">
+                               </h:dataTable>
+                       </div>
                </ui:define>
        </ui:composition>
 </html>