// Default key is "unused"
String messageKey = "CONTACT_IS_UNUSED"; //NOI18N
- // Check user/recruiter
+ // Check user contact
boolean isUserContact = this.userController.isContactFound(contact);
// Check user first
// Is all data set?
if (this.getUserName() == null) {
// Throw NPE
- throw new NullPointerException("recruiterName is null"); //NOI18N
+ throw new NullPointerException("userName is null"); //NOI18N
} else if (this.getUserName().isEmpty()) {
// Is empty
- throw new IllegalStateException("recruiterName is empty."); //NOI18N
+ throw new IllegalStateException("userName is empty."); //NOI18N
}
- // Create new recruiter instance
- User recruiter = new LoginUser();
+ // Create new user instance
+ User user = new LoginUser();
// Update all data ...
- recruiter.setUserName(this.getUserName());
+ user.setUserName(this.getUserName());
// Trace message
- //* NOISY-DEBUG */ System.out.println(MessageFormat.format("{0}.createUserLogin: recruiter={1} - EXIT!", this.getClass().getSimpleName(), recruiter));
+ //* NOISY-DEBUG */ System.out.println(MessageFormat.format("{0}.createUserLogin: user={1} - EXIT!", this.getClass().getSimpleName(), user));
// Return the new instance
- return recruiter;
+ return user;
}
@Override
GUEST_AGREE_READ_TERMS_CONDITIONS_2=and I accept them with this.
LINK_GUEST_TERMS_CONDITIONS=Terms & Conditions
LINK_GUEST_PRIVACY_STATEMENTS=privacy statements
-ADMIN_ADD_OR_ENTER_CONTACT_DATA=... or enter the recruiter's contact data:
+ADMIN_ADD_OR_ENTER_CONTACT_DATA=... or enter the user's contact data:
ADMIN_PERSONAL_DATA_EMAIL_ADDRESS=Email address:
ERROR_CONTACT_ID_NOT_FOUND=Error: contact data not found
GUEST_REGISTRATION_PAGE1_TITLE=Registration page 1
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <div id="recruiter_login_content">
<h:form id="login_form">
<div class="table">
<div class="table_header">
- <h:outputText value="#{msg.GUEST_ENTER_RECRUITER_LOGIN_DATA_TITLE}" />
+ <h:outputText value="#{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}" />
</div>
<fieldset id="login_data">
- <legend title="#{msg.GUEST_ENTER_RECRUITER_LOGIN_DATA_LEGEND_TITLE}">#{msg.GUEST_ENTER_RECRUITER_LOGIN_DATA_LEGEND}</legend>
+ <legend title="#{msg.GUEST_ENTER_USER_LOGIN_DATA_LEGEND_TITLE}">#{msg.GUEST_ENTER_USER_LOGIN_DATA_LEGEND}</legend>
<div class="table_row">
<div class="table_left">
- <h:outputLabel for="recruiterName" value="#{msg.ENTER_RECRUITER_NAME}" />
+ <h:outputLabel for="userName" value="#{msg.ENTER_USER_NAME}" />
</div>
<div class="table_right">
- <h:inputText styleClass="input" id="recruiterName" value="#{recruiterController.recruiterName}" size="10" maxlength="20" required="true" requiredMessage="#{msg.LOGIN_NO_RECRUITER_NAME_MESSAGE}" />
+ <h:inputText styleClass="input" id="userName" value="#{userController.userName}" size="10" maxlength="20" required="true" requiredMessage="#{msg.LOGIN_NO_USER_NAME_MESSAGE}" />
</div>
</div>
<div class="table_row">
<div class="table_left">
- <h:outputLabel for="recruiterPassword" value="#{msg.ENTER_PASSWORD}" />
+ <h:outputLabel for="userPassword" value="#{msg.ENTER_PASSWORD}" />
</div>
<div class="table_right">
- <h:inputSecret styleClass="input" id="recruiterPassword" value="#{recruiterController.recruiterPassword}" size="10" maxlength="255" required="true" requiredMessage="#{msg.LOGIN_NO_PASSWORD_MESSAGE}" />
+ <h:inputSecret styleClass="input" id="userPassword" value="#{userController.userPassword}" size="10" maxlength="255" required="true" requiredMessage="#{msg.LOGIN_NO_PASSWORD_MESSAGE}" />
</div>
</div>
<div class="table_footer">
<h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton styleClass="submit" type="submit" action="#{recruiterLoginController.doUserLogin()}" value="#{msg.BUTTON_RECRUITER_LOGIN}" />
+ <h:commandButton styleClass="submit" type="submit" action="#{userLoginController.doUserLogin()}" value="#{msg.BUTTON_USER_LOGIN}" />
</div>
</div>
</h:form>
<div class="table_right">
<h:inputSecret styleClass="input" id="currentPassword" size="10" maxlength="255" value="#{userLoginController.userCurrentPassword}" required="true" validatorMessage="#{msg.ERROR_USER_CURRENT_PASSWORD_MISMATCHING}">
- <!-- <f:validator for="currentPassword" validatorId="RecruiterUserPasswordValidator" /> //-->
+ <!-- <f:validator for="currentPassword" validatorId="JobsUserPasswordValidator" /> //-->
</h:inputSecret>
</div>