*/
package org.mxchange.jjobs.beans.contact;
-import de.chotime.landingpage.beans.login.LandingUserLoginWebSessionController;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.Date;
throw new FaceletException(new IllegalArgumentException("Not all personal data is set, but createContactInstance() is called.")); //NOI18N
}
- // Required personal data must be set
- assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; //NOI18N
-
- // Create new contact instance
- Contact localContact = new UserContact();
-
// Generate phone number
DialableLandLineNumber phone = new LandLineNumber(this.getPhoneCountry(), this.getPhoneAreaCode(), this.getPhoneNumber());
DialableCellphoneNumber cellphone = new CellphoneNumber(this.getCellphoneCarrier(), this.getCellphoneNumber());
//* NOISY-DEBUG: */ System.out.println(MessageFormat.format("{0}.createContactInstance: contact={1} - EXIT!", this.getClass().getSimpleName(), contact));
// Return it
- return localContact;
+ return contact;
}
@Override
this.setEmailAddress(null);
this.setEmailAddressRepeat(null);
this.setPhoneAreaCode(null);
+ this.setPhoneCountry(null);
+ this.setPhoneNumber(null);
this.setCellphoneCarrier(null);
+ this.setCellphoneNumber(null);
this.setFaxAreaCode(null);
+ this.setFaxCountry(null);
+ this.setFaxNumber(null);
// - other data
this.setBirthday(null);