Вы находитесь на странице: 1из 13

Email Validation in the Candidate Registration Process

GOAL:

Using iRecruitment, job seekers can visit an enterprise's job site, search for jobs, refer jobs to other individuals, and add jobs to a temporary job basket. They can self-register in iRecruitment to submit job applications to vacancies, by providing some personal information such as First Name, Last Name, Email Address and Password. When an external visitor registers, iRecruitment creates an Oracle HRMS user with the E-mail address as the username and assigns the iRecruitment External Candidate, responsibility to them.

During the self-registration process, the candidate might unknowingly enter invalid characters in the Email address field, which might disallow the candidate from reentering or logging into iRecruitment at a later point of time. Also, the candidate might miss some important communication from the company’s recruiters or hiring mangers. To eliminate these kinds of mistakes and enable candidates to take corrective actions, customer might want to validate the email address that candidates enter by displaying error messages and prompting candidates to correct the email address.

By default, the Email address entered by the candidate is not validated to check for correctness. This document explains how additional validations can be built in iRecruitment: Candidate Registration process, if restrictions or validations are to be applied on the Email Address field. For example, if the candidate has entered an invalid email address, i.e., without the @symbol or with multiple ‘@’ symbols, or a space character etc, customers might want to display an error message. Similarly, customers might want to display an error message when the candidate enters an Email ID that includes the company’s domain name for example: vision.com, as employees are recommended to use the iRecruitment Employee Candidate Responsibility, instead of the External Site: IrcVisitor.jsp.

This document explains how validation can be achieved using Oracle Applications Framework (OAF) extension technique.

SOLUTION:

Using the Oracle Applications Framework extension (Controller Object (CO) extension) technique, an error message can be displayed if the candidate enters some invalid characters and clicks the Submit button on the Candidate Registration page.

This document covers some of the additional validations that can be built in iRecruitment on the Email Address field, for some of the common mistakes encountered while entering the email address in the candidate’s self-registration process.

As an example, we will see how validations can be built when the Email Address:

1. Contains, company’s domain name for example: vision.com.

2. Does not contain ‘@’ symbol

3. Contains more than one ‘@’ symbols

4. Contains spaces

5. Starts with ‘WWW’ or ‘@’ or ‘.’ character.

Based on the customer’s requirements, other validations can also be developed similarly.

For performing CO extension, follow these steps:

1. Make a note of the CO being used on this page:

/oracle/apps/irc/candidateSelfService/webui/RegisterCO in our case

in our case 2. Extend the Controller Object Let’s name the new CO as

2. Extend the Controller Object

Let’s name the new CO as RegisterValidateEmailCO

Object Let’s name the new CO as RegisterValidateEmailCO Override 3. the processFormRequest method to

Override

3. the

processFormRequest

method

to

check

for

the

condition

required.

If the condition is true, then the system should display an error message

If the condition is false, the registration process can continue as per the existing functionality.

The condition should check if the Email Address entered, contains spaces or does not include a ‘@’ symbol, or includes > 1 ‘@’ symbol or starts with ‘www’ or ‘.’ or ‘,’ character etc.

Validation logic:

i. First, to check if the Email Address includes the word: Domain name i.e., visionthe following logic can be used.

name i.e., ‘ vision ’ the following logic can be used. ii. Next, to check if

ii. Next, to check if the Email Address includes at least one ‘@’ symbol, the following logic can be used:

least one ‘@’ symbol, the following logic can be used: iii. To check if the Email

iii. To check if the Email Address includes more than one ‘@’ symbols, the following logic can be used:

than one ‘@’ symbols, the following logic can be used: iv. To check if the Email

iv. To check if the Email Address includes white spaces, the following logic can be used:

following logic can be used: iv. To check if the Email Address includes white spaces, the

v. To check if the Email Address starts with either ‘www’ or ‘@’ or ‘.’ or spaces the following logic can be used:

or ‘.’ or spaces the following logic can be used:  This is how the Controller

This is how the Controller Object will look when all the above validation logic is built.

logic can be used:  This is how the Controller Object will look when all the

4.

Through personalization, change the controller class in the following PG:

/oracle/apps/irc/candidateSelfService/webui/VisRegisterPG

/oracle/apps/irc/candidateSelfService/webui/VisRegisterPG Enter the fully qualified class name. For example, if the
/oracle/apps/irc/candidateSelfService/webui/VisRegisterPG Enter the fully qualified class name. For example, if the

Enter the fully qualified class name. For example, if the extended class is named as RegisterValidateEmailCO, then the fully qualified name of the class that you need to entered in the personalization is:

com.customer.irc.candidateManagement.webui.RegisterValidateEmailCO

After performing the above steps, you will observe that an error message is displayed for the validations that are configured:

1. When the Email Address includes the word ‘vision’

that are configured: 1. When the Email Address includes the word ‘vision’ The following error message

The following error message is displayed:

that are configured: 1. When the Email Address includes the word ‘vision’ The following error message

2.

When the Email Address does not include @symbol

2. When the Email Address does not include ‘ @ ’ symbol The following error message

The following error message is displayed:

2. When the Email Address does not include ‘ @ ’ symbol The following error message

3.

When the Email Address includes multiple ‘@’ symbols

3. When the Email Address includes multiple ‘@’ symbols The following error message is displayed:

The following error message is displayed:

3. When the Email Address includes multiple ‘@’ symbols The following error message is displayed:

4.

When the Email Address includes white spaces

4. When the Email Address includes white spaces The following error message is displayed:

The following error message is displayed:

4. When the Email Address includes white spaces The following error message is displayed:

5.

When the Email Address entered starts with: ‘www’, ‘@’ or, ‘.’

5. When the Email Address entered starts with: ‘www’, ‘@’ or, ‘.’ The following error message

The following error message is displayed:

5. When the Email Address entered starts with: ‘www’, ‘@’ or, ‘.’ The following error message
Email Validation in the Candidate Registration Process August 2010 Author: Sarma Balantrapu Oracle Corporation World

Email Validation in the Candidate Registration Process August 2010 Author: Sarma Balantrapu

Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065 U.S.A.

Worldwide Inquiries:

Phone: +1.650.506.7000

Fax: +1.650.506.7200

oracle.com

Copyright © 2010 Oracle. All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission. Oracle, JD Edwards, and PeopleSoft, are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.