*/
private Integer zipCode;
+ /**
+ * A list of all public user profiles
+ */
+ private List<User> publicUserList;
+
/**
* Default constructor
*/
// Get full email address list for reducing EJB calls
this.emailAddressList = this.userBean.getEmailAddressList();
+
+ // Initialize user list
+ this.publicUserList = this.userBean.allPublicUsers();
}
@Override
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)
* @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 ();
}
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.
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.
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.
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.
</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>
#{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}" />
</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>