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
7b7854f8
Commit
7b7854f8
authored
Sep 21, 2017
by
Harsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NPE fix for user invitation, Restrict header/footer for verification article, Minor review changes
parent
d704fc95
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
11 deletions
+27
-11
SendUserInvitationFP.java
cmsWebApp/src/performa/form/SendUserInvitationFP.java
+4
-9
WebUtils.java
cmsWebApp/src/performa/utils/WebUtils.java
+15
-0
dynamic_content_core.jsp
cmsWebApp/webroot/dynamic_content_core.jsp
+7
-1
manage_users.jsp
cmsWebApp/webroot/extensions/adminportal/manage_users.jsp
+1
-1
my_details.jsp
cmsWebApp/webroot/extensions/adminportal/my_details.jsp
+0
-0
No files found.
cmsWebApp/src/performa/form/SendUserInvitationFP.java
View file @
7b7854f8
...
@@ -57,7 +57,6 @@ public class SendUserInvitationFP extends SaveFP
...
@@ -57,7 +57,6 @@ public class SendUserInvitationFP extends SaveFP
ObjectTransaction
objTran
=
process
.
getTransaction
();
ObjectTransaction
objTran
=
process
.
getTransaction
();
Company
company
=
(
Company
)
process
.
getAttribute
(
"Company"
);
Company
company
=
(
Company
)
process
.
getAttribute
(
"Company"
);
CompanyUser
resendUser
=
(
CompanyUser
)
request
.
getAttribute
(
"ResendUser"
);
CompanyUser
resendUser
=
(
CompanyUser
)
request
.
getAttribute
(
"ResendUser"
);
String
email
=
company
.
getUserEmail
().
toLowerCase
();
if
(
resendUser
!=
null
)
if
(
resendUser
!=
null
)
{
{
...
@@ -71,17 +70,13 @@ public class SendUserInvitationFP extends SaveFP
...
@@ -71,17 +70,13 @@ public class SendUserInvitationFP extends SaveFP
{
{
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Started to create new use"
,
company
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Started to create new use"
,
company
);
SecUser
secUser
=
null
;
SecUser
secUser
=
SecUser
.
searchNAME
(
objTran
,
company
.
getUserEmail
())
;
if
(
SecUser
.
searchNAME
(
objTran
,
company
.
getUserEmail
())!=
null
)
if
(
secUser
==
null
)
{
secUser
=
SecUser
.
searchNAME
(
objTran
,
company
.
getUserEmail
());
}
else
{
{
secUser
=
SecUser
.
createSecUser
(
objTran
);
secUser
=
SecUser
.
createSecUser
(
objTran
);
secUser
.
setUserName
(
email
);
secUser
.
setUserName
(
company
.
getUserEmail
().
toLowerCase
()
);
}
}
CompanyUser
newComUser
=
secUser
.
getExtensionOrCreate
(
CompanyUser
.
REFERENCE_CompanyUser
);
CompanyUser
newComUser
=
secUser
.
getExtensionOrCreate
(
CompanyUser
.
REFERENCE_CompanyUser
);
...
@@ -117,7 +112,7 @@ public class SendUserInvitationFP extends SaveFP
...
@@ -117,7 +112,7 @@ public class SendUserInvitationFP extends SaveFP
protected
void
sendInvitationMail
(
CompanyUser
companyUser
,
HttpServletRequest
request
)
throws
BusinessException
protected
void
sendInvitationMail
(
CompanyUser
companyUser
,
HttpServletRequest
request
)
throws
BusinessException
{
{
if
(
companyUser
.
getIsAccountVerified
()!=
Boolean
.
TRUE
)
if
(
!
companyUser
.
isTrue
(
companyUser
.
getIsAccountVerified
())
)
{
{
try
try
{
{
...
...
cmsWebApp/src/performa/utils/WebUtils.java
View file @
7b7854f8
...
@@ -141,4 +141,18 @@ public class WebUtils
...
@@ -141,4 +141,18 @@ public class WebUtils
renderMode
.
equals
(
JOB_REVIEW
)
||
renderMode
.
equals
(
JOB_REVIEW
)
||
renderMode
.
equals
(
CREATED_JOB
);
renderMode
.
equals
(
CREATED_JOB
);
}
}
public
static
boolean
showHeaderFooter
(
ObjectTransaction
objTran
,
Article
article
)
{
Article
accVerificationArticle
=
getArticleByShortCut
(
objTran
,
COMPANY_ACCOUNT_VERIFICATION
);
if
(
accVerificationArticle
!=
null
)
{
if
(
descendsFrom
(
article
,
accVerificationArticle
.
getIdentifier
()))
{
return
false
;
}
}
return
true
;
}
}
}
\ No newline at end of file
cmsWebApp/webroot/dynamic_content_core.jsp
View file @
7b7854f8
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
<%@ include file="setuprequest.jsp" %>
<%@ include file="setuprequest.jsp" %>
<%
<%
if(WebUtils.showHeaderFooter(objTran, article))
{
if(CollectionUtils.equals(portalName, WebUtils.ADMIN_PORTAL))
if(CollectionUtils.equals(portalName, WebUtils.ADMIN_PORTAL))
{
{
%>
%>
...
@@ -31,7 +33,7 @@
...
@@ -31,7 +33,7 @@
<%@ include file="extensions/applicantportal/inc/menuinclude.jsp" %>
<%@ include file="extensions/applicantportal/inc/menuinclude.jsp" %>
<%
<%
}
}
}
Map m = CollectionUtils.mapEntry(NavigationBarDF.NAV_BAR, navbar.getChildNavBarFor (article))
Map m = CollectionUtils.mapEntry(NavigationBarDF.NAV_BAR, navbar.getChildNavBarFor (article))
.mapEntry("StartLevel", new Integer (0))
.mapEntry("StartLevel", new Integer (0))
...
@@ -41,6 +43,8 @@
...
@@ -41,6 +43,8 @@
%>
%>
<oneit:dynInclude page="descendPageContent.jsp" data="<%= m %>"/>
<oneit:dynInclude page="descendPageContent.jsp" data="<%= m %>"/>
<%
<%
if(WebUtils.showHeaderFooter(objTran, article))
{
if(CollectionUtils.equals(portalName, WebUtils.ADMIN_PORTAL))
if(CollectionUtils.equals(portalName, WebUtils.ADMIN_PORTAL))
{
{
%><%@ include file="extensions/adminportal/inc/htmlfooter.jsp" %><%
%><%@ include file="extensions/adminportal/inc/htmlfooter.jsp" %><%
...
@@ -49,4 +53,5 @@
...
@@ -49,4 +53,5 @@
{
{
%><%@ include file="extensions/applicantportal/inc/htmlfooter.jsp" %><%
%><%@ include file="extensions/applicantportal/inc/htmlfooter.jsp" %><%
}
}
}
%>
%>
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/manage_users.jsp
View file @
7b7854f8
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<div class="m-user-icon"><img src="images/user-list-icon.png"></div>
<div class="m-user-icon"><img src="images/user-list-icon.png"></div>
<div class="m-user-info">
<div class="m-user-info">
<div class="m-user-name">
<div class="m-user-name">
<oneit:toString value="<%=
user.getName() %>"
mode="EscapeHTML" />
<oneit:toString value="<%=
SecUserToNameTransform.INSTANCE.transform(user) %>"
mode="EscapeHTML" />
</div>
</div>
<div class="m-user-email">
<div class="m-user-email">
<oneit:toString value="<%= user.getEmail() %>" mode="EscapeHTML" />
<oneit:toString value="<%= user.getEmail() %>" mode="EscapeHTML" />
...
...
cmsWebApp/webroot/extensions/adminportal/my_details.jsp
View file @
7b7854f8
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