Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
cdc765be
Commit
cdc765be
authored
Sep 13, 2017
by
chenith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated client logo in applicant portal.
Login verification updated applicant/admin.
parent
c78e137f
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
105 additions
and
54 deletions
+105
-54
SendVerificationMailFP.java
cmsWebApp/src/performa/form/SendVerificationMailFP.java
+51
-23
Job.java
cmsWebApp/src/performa/orm/Job.java
+16
-0
common.css
cmsWebApp/webroot/css/common.css
+4
-0
job_title_bar.jsp
...bApp/webroot/extensions/adminportal/inc/job_title_bar.jsp
+1
-1
application_outline.jsp
...ebroot/extensions/applicantportal/application_outline.jsp
+8
-9
job_match_assessment.jsp
...broot/extensions/applicantportal/job_match_assessment.jsp
+2
-1
job_overview.jsp
...ebApp/webroot/extensions/applicantportal/job_overview.jsp
+3
-3
selection_criteria.jsp
...webroot/extensions/applicantportal/selection_criteria.jsp
+2
-1
sign_in.jsp
cmsWebApp/webroot/extensions/applicantportal/sign_in.jsp
+10
-10
submit_application.jsp
...webroot/extensions/applicantportal/submit_application.jsp
+2
-1
verify_identity.jsp
...pp/webroot/extensions/applicantportal/verify_identity.jsp
+4
-4
workplace_culture.jsp
.../webroot/extensions/applicantportal/workplace_culture.jsp
+2
-1
No files found.
cmsWebApp/src/performa/form/SendVerificationMailFP.java
View file @
cdc765be
...
...
@@ -43,7 +43,7 @@ public class SendVerificationMailFP extends SaveFP
CompanyUser
companyUser
=
company
.
getAddedByUser
();
SecUser
secUser
=
companyUser
.
getUser
();
BusinessObjectParser
.
assertFieldCondition
(!
isEmailFound
(
process
.
getTransaction
(),
secUser
.
getEmail
()),
secUser
,
SecUser
.
FIELD_Email
,
"emailExists"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(!
is
CompanyUser
EmailFound
(
process
.
getTransaction
(),
secUser
.
getEmail
()),
secUser
,
SecUser
.
FIELD_Email
,
"emailExists"
,
exceptions
,
true
,
request
);
}
else
{
...
...
@@ -64,16 +64,38 @@ public class SendVerificationMailFP extends SaveFP
if
(
company
!=
null
)
{
CompanyUser
companyUser
=
company
.
getAddedByUser
();
SecUser
secUser
=
companyUser
.
getUser
();
CompanyUser
companyUser
=
company
.
getAddedByUser
();
SecUser
secUser
=
companyUser
.
getUser
();
SecUser
availableSecUser
=
SecUser
.
searchNAME
(
objTran
,
secUser
.
getEmail
());
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Started to send varification email."
,
companyUser
);
secUser
.
setUserName
(
secUser
.
getEmail
().
toLowerCase
());
secUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
DEFAULT_PASSWORD
);
secUser
.
addRole
(
Utils
.
getRole
(
Utils
.
ROLE_CLIENT
,
objTran
));
if
(
availableSecUser
!=
null
)
{
if
(
availableSecUser
.
getExtension
(
CompanyUser
.
REFERENCE_CompanyUser
)!=
null
)
{
Debug
.
assertion
(
false
,
"user available"
,
availableSecUser
);
}
else
{
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"SecUser available"
,
availableSecUser
);
availableSecUser
.
addToExtensions
(
companyUser
);
//remove new sec user obj
secUser
.
removeFromExtensions
(
companyUser
);
secUser
.
delete
();
}
}
else
{
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"New user created :: "
,
secUser
);
secUser
.
setUserName
(
secUser
.
getEmail
().
toLowerCase
());
secUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
DEFAULT_PASSWORD
);
secUser
.
addRole
(
Utils
.
getRole
(
Utils
.
ROLE_CLIENT
,
objTran
));
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"New user created :: "
,
secUser
);
}
sendVerificationMail
(
companyUser
,
request
);
...
...
@@ -81,7 +103,7 @@ public class SendVerificationMailFP extends SaveFP
}
else
{
String
email
=
job
.
getEmail
();
String
email
=
job
.
getEmail
();
Debug
.
assertion
(
email
!=
null
,
"Email not avaialble"
);
...
...
@@ -89,22 +111,28 @@ public class SendVerificationMailFP extends SaveFP
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Started to send varification email."
,
job
,
email
);
SecUser
secUser
=
SecUser
.
searchNAME
(
objTran
,
email
);
Debug
.
assertion
(
secUser
==
null
,
"user available"
,
email
);
SecUser
secUser
=
SecUser
.
searchNAME
(
objTran
,
email
);
if
(
secUser
!=
null
)
{
Debug
.
assertion
(
secUser
.
getExtension
(
Candidate
.
REFERENCE_Candidate
)==
null
,
"user available"
,
email
,
secUser
);
}
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Inside SendVerificationMailFP for send account verification mail for "
,
email
);
if
(
secUser
==
null
)
{
secUser
=
SecUser
.
createSecUser
(
objTran
);
SecUser
newSecUser
=
SecUser
.
createSecUser
(
objTran
);
newSecUser
.
setUserName
(
email
);
newSecUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
DEFAULT_PASSWORD
);
newSecUser
.
addRole
(
Utils
.
getRole
(
Utils
.
ROLE_APPLICANT
,
objTran
));
Candidate
candidate
=
newSecUser
.
getExtensionOrCreate
(
Candidate
.
REFERENCE_Candidate
);
secUser
.
setUserName
(
email
);
secUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
DEFAULT_PASSWORD
);
secUser
.
addRole
(
Utils
.
getRole
(
Utils
.
ROLE_APPLICANT
,
objTran
));
}
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"New user created :: "
,
newSecUser
);
Candidate
candidate
=
secUser
.
getExtensionOrCreate
(
Candidate
.
REFERENCE_Candidate
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"New user created :: "
,
secUser
);
sendVerificationMail
(
candidate
,
job
,
request
);
...
...
@@ -206,13 +234,13 @@ public class SendVerificationMailFP extends SaveFP
}
private
Boolean
isEmailFound
(
ObjectTransaction
objTran
,
String
email
)
private
Boolean
is
CompanyUser
EmailFound
(
ObjectTransaction
objTran
,
String
email
)
{
if
(
email
!=
null
)
{
SecUser
user
=
SecUser
.
searchNAME
(
objTran
,
email
.
toLowerCase
());
if
(
user
!=
null
)
//&& user.getExtension(CompanyUser.REFERENCE_CompanyUser)!=null
if
(
user
!=
null
&&
user
.
getExtension
(
CompanyUser
.
REFERENCE_CompanyUser
)!=
null
)
{
return
Boolean
.
TRUE
;
}
...
...
cmsWebApp/src/performa/orm/Job.java
View file @
cdc765be
...
...
@@ -413,4 +413,19 @@ public class Job extends BaseJob
return
Boolean
.
FALSE
;
}
//to check company logo availability
public
Boolean
isClientLogoAvailable
()
{
if
(
getClient
()!=
null
&&
getClient
().
getClientLogo
()!=
null
&&
getCompanyUser
()!=
null
&&
getCompanyUser
().
getCompany
().
getHasClientSupport
()==
Boolean
.
TRUE
)
{
return
Boolean
.
TRUE
;
}
return
Boolean
.
FALSE
;
}
}
\ No newline at end of file
cmsWebApp/webroot/css/common.css
View file @
cdc765be
...
...
@@ -5079,4 +5079,7 @@ label, label .label-title span {
margin-right
:
6px
;
position
:
relative
;
top
:
-1px
;
}
.no-height
{
height
:
0
;
}
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/inc/job_title_bar.jsp
View file @
cdc765be
...
...
@@ -18,7 +18,7 @@
<div class="officer-name">
<div class="chief-officer">
<%
if(job.
getClient() != null
)
if(job.
isClientLogoAvailable()
)
{
int logoWidth = 27;
%>
...
...
cmsWebApp/webroot/extensions/applicantportal/application_outline.jsp
View file @
cdc765be
...
...
@@ -76,18 +76,17 @@
}
process.setAttribute("JobApplication", jobApplication);
if(job.isClientLogoAvailable())
{
int logoWidth = 45;
%>
<div class="welcome-aust-logo">
<%
if(job.getClient() != null)
{
int logoWidth = 45;
%>
<tagfile:img src="<%= ThumbnailUtils.filterImage(DiskFileBinaryContent.getRelativeURL(job.getClient().getClientLogo()), "KEEP", new ScaleWithin (logoWidth, 0)) %>" />
<%
}
%>
<tagfile:img src="<%= ThumbnailUtils.filterImage(DiskFileBinaryContent.getRelativeURL(job.getClient().getClientLogo()), "KEEP", new ScaleWithin (logoWidth, 0)) %>" />
</div>
<%
}
%>
<div class="welcome-title">Welcome <oneit:toString value="<%= candidate.getFirstName() %>"/>, here's your application outline</div>
<div class="appli-aust-title">
<oneit:toString value="<%= job.getJobTitle() %>" mode="EscapeHTML"/>
...
...
cmsWebApp/webroot/extensions/applicantportal/job_match_assessment.jsp
View file @
cdc765be
...
...
@@ -91,7 +91,7 @@
<div class="main-application-outline">
<div class="selection-aust-logo">
<%
if(job.
getClient() != null
)
if(job.
isClientLogoAvailable()
)
{
int logoWidth = 45;
%>
...
...
@@ -100,6 +100,7 @@
}
%>
<span><oneit:toString value="<%= job.getJobTitle() %>" mode="EscapeHTML"/></span>
<div class="clearfix no-height"></div>
</div>
<div class="show-mobile-title">
<div class="mobile-title-page">Your Work Style</div>
...
...
cmsWebApp/webroot/extensions/applicantportal/job_overview.jsp
View file @
cdc765be
...
...
@@ -28,17 +28,17 @@
</style>
<div class="main-position-overview">
<div class="aust-logo">
<%
if(job.
getClient() != null
)
if(job.
isClientLogoAvailable()
)
{
int logoWidth = 45;
%>
<div class="aust-logo">
<tagfile:img src="<%= ThumbnailUtils.filterImage(DiskFileBinaryContent.getRelativeURL(job.getClient().getClientLogo()), "KEEP", new ScaleWithin (logoWidth, 0)) %>" />
</div>
<%
}
%>
</div>
<div class="overview-title">
<oneit:toString value="<%= job.getJobTitle() %>" mode="EscapeHTML"/>
</div>
...
...
cmsWebApp/webroot/extensions/applicantportal/selection_criteria.jsp
View file @
cdc765be
...
...
@@ -46,7 +46,7 @@
<div class="main-application-outline">
<div class="selection-aust-logo">
<%
if(job.
getClient() != null
)
if(job.
isClientLogoAvailable()
)
{
int logoWidth = 45;
%>
...
...
@@ -55,6 +55,7 @@
}
%>
<span><oneit:toString value="<%= job.getJobTitle() %>" mode="EscapeHTML"/></span>
<div class="clearfix no-height"></div>
</div>
<div class="show-mobile-title">
<div class="mobile-title-page">Requirements</div>
...
...
cmsWebApp/webroot/extensions/applicantportal/sign_in.jsp
View file @
cdc765be
...
...
@@ -79,17 +79,17 @@
</style>
<div class="main-verify-identity">
<
div class="verify-aust-logo">
<%
if(job.getClient() != null)
{
int logoWidth = 45;
%
>
<
%
if(job.isClientLogoAvailable())
{
int logoWidth = 45;
%>
<div class="verify-aust-logo"
>
<tagfile:img src="<%= ThumbnailUtils.filterImage(DiskFileBinaryContent.getRelativeURL(job.getClient().getClientLogo()), "KEEP", new ScaleWithin (logoWidth, 0)) %>" />
<%
}
%>
</div
>
</div>
<%
}
%
>
<div class="pl-verify">Please verify your identity before applying to:</div>
<div class="verify-i-title">
<oneit:toString value="<%= job.getJobTitle() %>" mode="EscapeHTML"/>
...
...
cmsWebApp/webroot/extensions/applicantportal/submit_application.jsp
View file @
cdc765be
...
...
@@ -18,7 +18,7 @@
<div class="main-application-outline">
<div class="selection-aust-logo">
<%
if(job.
getClient() != null
)
if(job.
isClientLogoAvailable()
)
{
int logoWidth = 45;
%>
...
...
@@ -27,6 +27,7 @@
}
%>
<span><oneit:toString value="<%= job.getJobTitle() %>" mode="EscapeHTML"/></span>
<div class="clearfix no-height"></div>
</div>
<div class="mobile-successfull-show display-none">Thank you <span><img class="mob-smile-face" src="images/smile-face.png" /></span></div>
<div class="section-page-area complete-back">
...
...
cmsWebApp/webroot/extensions/applicantportal/verify_identity.jsp
View file @
cdc765be
...
...
@@ -100,17 +100,17 @@
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="main-verify-identity">
<div class="verify-aust-logo">
<%
if(job.
getClient() != null
)
if(job.
isClientLogoAvailable()
)
{
int logoWidth = 45;
%>
<tagfile:img src="<%= ThumbnailUtils.filterImage(DiskFileBinaryContent.getRelativeURL(job.getClient().getClientLogo()), "KEEP", new ScaleWithin (logoWidth, 0)) %>" />
<div class="verify-aust-logo">
<tagfile:img src="<%= ThumbnailUtils.filterImage(DiskFileBinaryContent.getRelativeURL(job.getClient().getClientLogo()), "KEEP", new ScaleWithin (logoWidth, 0)) %>" />
</div>
<%
}
%>
</div>
<div class="pl-confirm text-center">Please confirm your details to continue</div>
<div class="main-box-layout main-verify-step-2">
<div class="form-group text-left">
...
...
cmsWebApp/webroot/extensions/applicantportal/workplace_culture.jsp
View file @
cdc765be
...
...
@@ -69,7 +69,7 @@
<div class="main-application-outline">
<div class="selection-aust-logo">
<%
if(job.
getClient() != null
)
if(job.
isClientLogoAvailable()
)
{
int logoWidth = 45;
%>
...
...
@@ -78,6 +78,7 @@
}
%>
<span><oneit:toString value="<%= job.getJobTitle() %>" mode="EscapeHTML"/></span>
<div class="clearfix no-height"></div>
</div>
<div class="show-mobile-title">
<div class="mobile-title-page">Culture</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment