import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
import org.mxchange.jusercore.model.user.UserUtils;
import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
+import org.mxchange.jusercore.model.user.status.UserAccountStatus;
/**
* A user bean (controller)
*/
private final UserSessionBeanRemote userBean;
- /**
- * User id
- */
- private Long userId;
-
/**
* A list of all user profiles
*/
*/
private String userPasswordRepeat;
- /**
- * Whether the user wants a public profile
- */
- private ProfileMode userProfileMode;
-
/**
* ZIP code
*/
// Create new user instance
User user = new LoginUser();
user.setUserName(this.getUserName());
- user.setUserProfileMode(this.getUserProfileMode());
+ user.setUserAccountStatus(UserAccountStatus.CONFIRMED);
+ user.setUserProfileMode(ProfileMode.INVISIBLE);
// Generate phone number
DialableLandLineNumber phone = new LandLineNumber(this.getPhoneCountry(), this.getPhoneAreaCode(), this.getPhoneNumber());
// Throw again
throw new FaceletException(ex);
}
+
+ // Clear all
+ this.clear();
}
@Override
this.street = street;
}
- @Override
- public Long getUserId () {
- return this.userId;
- }
-
- @Override
- public void setUserId (final Long userId) {
- this.userId = userId;
- }
-
@Override
public String getUserName () {
return this.userName;
this.userPasswordRepeat = userPasswordRepeat;
}
- @Override
- public ProfileMode getUserProfileMode () {
- return this.userProfileMode;
- }
-
- @Override
- public void setUserProfileMode (final ProfileMode userProfileMode) {
- this.userProfileMode = userProfileMode;
- }
-
@Override
public Integer getZipCode () {
return this.zipCode;
return user;
}
+ /**
+ * Clears this bean
+ */
+ private void clear () {
+ // Clear all
+ this.setBirthday(null);
+ this.setCellphoneCarrier(null);
+ this.setCellphoneNumber(null);
+ this.setCity(null);
+ this.setComment(null);
+ this.setCountry(null);
+ this.setEmailAddress(null);
+ this.setFamilyName(null);
+ this.setFaxAreaCode(null);
+ this.setFaxCountry(null);
+ this.setFaxNumber(null);
+ this.setFirstName(null);
+ this.setGender(null);
+ this.setHouseNumber(null);
+ this.setPhoneAreaCode(null);
+ this.setPhoneCountry(null);
+ this.setPhoneNumber(null);
+ this.setStreet(null);
+ this.setUserName(null);
+ this.setUserPassword(null);
+ this.setUserPasswordRepeat(null);
+ this.setZipCode(null);
+ }
+
}