ADMIN_PERSONAL_DATA_PHONE_NUMBER=Telefonnummer:
ADMIN_PERSONAL_DATA_FAX_NUMBER=Faxnummer:
ADMIN_PERSONAL_DATA_CELLPHONE_NUMBER=Handynummer:
-ADMIN_USER_DATA_EMAIL_LEGEND=Benutzernamen und Email-Adresse:
-ADMIN_USER_DATA_EMAIL_LEGEND_TITLE=Vergeben Sie hier den Benutzernamen und geben Sie die Email-Adresse ein.
+ADMIN_USER_DATA_EMAIL_LEGEND=Benutzernamen:
+ADMIN_USER_DATA_EMAIL_LEGEND_TITLE=Vergeben Sie hier den Benutzernamen.
ADMIN_USER_DATA_ENTER_USER_NAME=Benutzername (*1):
-ADMIN_USER_DATA_ENTER_EMAIL=Email-Adresse (*2):
+ADMIN_PERSONAL_DATA_ENTER_EMAIL=Email-Adresse (*2):
ADMIN_USER_DATA_USER_NAME_NOTICE=*1: Der Benutzername darf nur einmal vorhanden sein, das System pr\u00fcft dies f\u00fcr Sie.
ADMIN_USER_DATA_PASSWORD_ADD_NOTICE=Lassen Sie beide Passwortfelder leer und es wird ein Passwort per Zufall generiert. Das Passwort wird dem Benutzer nach Erstellung des Zugangs an die Email-Adresse gesendet.
ADMIN_USER_DATA_EMAIL_ADDRESS_NOTICE=*2: Die Email-Adresse darf nur einmal vorhanden sein.
LINK_ADMIN_LIST_CONTACT=Kontaktdaten auflisten
LINK_ADMIN_LIST_CONTACT_TITLE=Listet alle Kontaktdaten auf, egal wo her sie angelegt wurden.
ERROR_PARAMETER_CELLPHONE_NUMBER_USER_NOT_SET=Fehler: Parameter 'cellphoneNumber' und 'user' nicht gesetzt.
+ADMIN_ADD_CONTACT_MINIMUM_DATA=Bitte geben Sie mindestens Anrede, Vorname und Nachname an.
ADMIN_PERSONAL_DATA_PHONE_NUMBER=Phone number:
ADMIN_PERSONAL_DATA_FAX_NUMBER=Fax number:
ADMIN_PERSONAL_DATA_CELLPHONE_NUMBER=Mobile number:
-ADMIN_USER_DATA_EMAIL_LEGEND=User name and email address:
-ADMIN_USER_DATA_EMAIL_LEGEND_TITLE=Enter here a user name and email address.
+ADMIN_USER_DATA_EMAIL_LEGEND=User name:
+ADMIN_USER_DATA_EMAIL_LEGEND_TITLE=Enter here a user name.
ADMIN_USER_DATA_ENTER_USER_NAME=User name (*1):
-ADMIN_USER_DATA_ENTER_EMAIL=Email address (*2):
+ADMIN_PERSONAL_DATA_ENTER_EMAIL=Email address (*2):
ADMIN_USER_DATA_USER_NAME_NOTICE=*1: The user name must be unique which is checked by the system for you.
ADMIN_USER_DATA_PASSWORD_ADD_NOTICE=Keep both password fields empty to create a random password. The password is being sent to the user's email address after creation of the account.
ADMIN_USER_DATA_EMAIL_ADDRESS_NOTICE=*2: The email address must be unique.
LINK_ADMIN_LIST_CONTACT=List contact data
LINK_ADMIN_LIST_CONTACT_TITLE=Lists all contact data regardless where they was created.
ERROR_PARAMETER_CELLPHONE_NUMBER_USER_NOT_SET=Error: Parameter 'cellphoneNumber' and 'user' are not set.
+ADMIN_ADD_CONTACT_MINIMUM_DATA=Please enter at least gender, first name and family name.
@Override
public String addContact () {
- // Are all minimum fields set?
- if (this.getGender() == null) {
- // Throw NPE
- throw new NullPointerException("gender is null"); //NOI18N
- } else if (this.getFirstName() == null) {
- // Throw NPE
- throw new NullPointerException("firstName is null"); //NOI18N
- } else if (this.getFirstName().isEmpty()) {
- // Empty string
- throw new IllegalStateException("firstName is empty"); //NOI18N
- } else if (this.getFamilyName() == null) {
- // Throw NPE
- throw new NullPointerException("familyName is null"); //NOI18N
- } else if (this.getFamilyName().isEmpty()) {
- // Empty string
- throw new IllegalStateException("familyName is empty"); //NOI18N
- }
-
// Create new contact instance
Contact contact = this.createContactInstance();
@Override
public Contact createContactInstance () {
+ // Are all minimum fields set?
+ if (this.getGender() == null) {
+ // Throw NPE
+ throw new NullPointerException("gender is null"); //NOI18N
+ } else if (this.getFirstName() == null) {
+ // Throw NPE
+ throw new NullPointerException("firstName is null"); //NOI18N
+ } else if (this.getFirstName().isEmpty()) {
+ // Empty string
+ throw new IllegalStateException("firstName is empty"); //NOI18N
+ } else if (this.getFamilyName() == null) {
+ // Throw NPE
+ throw new NullPointerException("familyName is null"); //NOI18N
+ } else if (this.getFamilyName().isEmpty()) {
+ // Empty string
+ throw new IllegalStateException("familyName is empty"); //NOI18N
+ }
+
// Generate phone number
DialableLandLineNumber phone = new LandLineNumber(this.getPhoneCountry(), this.getPhoneAreaCode(), this.getPhoneNumber());
DialableCellphoneNumber cellphone = new CellphoneNumber(this.getCellphoneCarrier(), this.getCellphoneNumber());
#{msg.ADMIN_ADD_CONTACT_TITLE}
</div>
+ <div class="para">
+ <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
+ </div>
+
<ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
<div class="table_footer">