public UIAccountInputSet() {
}
public UIAccountInputSet(String name) throws Exception {
super(name);
addUIFormInput(new UIFormStringInput(USERNAME, "userName", null).addValidator(MandatoryValidator.class).addValidator(
UserConfigurableValidator.class, UserConfigurableValidator.USERNAME));
addUIFormInput(new UIFormStringInput(PASSWORD1X, "password", null).setType(UIFormStringInput.PASSWORD_TYPE)
.addValidator(MandatoryValidator.class).addValidator(PasswordStringLengthValidator.class, 6, 30));
addUIFormInput(new UIFormStringInput(PASSWORD2X, "password", null).setType(UIFormStringInput.PASSWORD_TYPE)
.addValidator(MandatoryValidator.class).addValidator(PasswordStringLengthValidator.class, 6, 30));
addUIFormInput(new UIFormStringInput("firstName", "firstName", null).addValidator(StringLengthValidator.class, 1, 45)
.addValidator(MandatoryValidator.class).addValidator(PersonalNameValidator.class));
addUIFormInput(new UIFormStringInput("lastName", "lastName", null).addValidator(StringLengthValidator.class, 1, 45)
.addValidator(MandatoryValidator.class).addValidator(PersonalNameValidator.class));
// TODO: GTNPORTAL-2358 switch bindingField fullName to displayName once displayName will be available in Organization
// API
addUIFormInput(new UIFormStringInput("displayName", "fullName", null).addValidator(StringLengthValidator.class, 0, 90)
.addValidator(UserConfigurableValidator.class, "displayname",
UserConfigurableValidator.KEY_PREFIX + "displayname", false));
addUIFormInput(new UIFormStringInput("email", "email", null).addValidator(MandatoryValidator.class).addValidator(
UserConfigurableValidator.class, UserConfigurableValidator.EMAIL));
}