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
794aa598
Commit
794aa598
authored
Sep 25, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review changes
parent
615d5f78
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
102 additions
and
213 deletions
+102
-213
SendCompanyUserInvitesFP.java
cmsWebApp/src/performa/form/SendCompanyUserInvitesFP.java
+8
-12
SendVerificationMailFP.java
cmsWebApp/src/performa/form/SendVerificationMailFP.java
+2
-2
SignInCandidateFP.java
cmsWebApp/src/performa/form/SignInCandidateFP.java
+1
-0
VerifyCompanyUserFP.java
cmsWebApp/src/performa/form/VerifyCompanyUserFP.java
+0
-172
BaseCompany.java
cmsWebApp/src/performa/orm/BaseCompany.java
+0
-0
Company.java
cmsWebApp/src/performa/orm/Company.java
+15
-0
Company.xml
cmsWebApp/src/performa/orm/Company.xml
+1
-0
Utils.java
cmsWebApp/src/performa/utils/Utils.java
+11
-0
WebUtils.java
cmsWebApp/src/performa/utils/WebUtils.java
+2
-0
CustomServlets_adminPortal.xml
...oot/extensions/adminportal/CustomServlets_adminPortal.xml
+0
-3
company_profile.jsp
cmsWebApp/webroot/extensions/adminportal/company_profile.jsp
+7
-7
company_profile_tabs.jsp
...broot/extensions/adminportal/inc/company_profile_tabs.jsp
+40
-0
invite_users.jsp
cmsWebApp/webroot/extensions/adminportal/invite_users.jsp
+6
-11
fieldnamesOverride.txt
...ot/extensions/adminportal/messages/fieldnamesOverride.txt
+1
-0
verify_company.jsp
cmsWebApp/webroot/extensions/adminportal/verify_company.jsp
+8
-6
No files found.
cmsWebApp/src/performa/form/SendCompanyUserInvitesFP.java
View file @
794aa598
...
@@ -23,7 +23,7 @@ import performa.utils.Utils;
...
@@ -23,7 +23,7 @@ import performa.utils.Utils;
import
performa.utils.WebUtils
;
import
performa.utils.WebUtils
;
public
class
SendCompanyUserInvitesFP
extends
ORMProcessFormProcessor
public
class
SendCompanyUserInvitesFP
extends
SaveFP
{
{
private
static
final
LoggingArea
LOG
=
LoggingArea
.
createLoggingArea
(
"SendCompanyUserInvites"
);
private
static
final
LoggingArea
LOG
=
LoggingArea
.
createLoggingArea
(
"SendCompanyUserInvites"
);
...
@@ -49,6 +49,11 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
...
@@ -49,6 +49,11 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
}
}
}
}
if
(!
company
.
isTrue
(
company
.
getIsVerified
()))
{
BusinessObjectParser
.
assertFieldCondition
(
company
.
getCompanyName
()!=
null
,
company
,
Company
.
FIELD_CompanyName
,
"mandatory"
,
exceptions
,
true
,
request
);
}
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
}
}
...
@@ -61,7 +66,6 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
...
@@ -61,7 +66,6 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
Company
company
=
(
Company
)
process
.
getAttribute
(
"Company"
);
Company
company
=
(
Company
)
process
.
getAttribute
(
"Company"
);
CompanyUser
companyUser
=
company
.
getAddedByUser
();
CompanyUser
companyUser
=
company
.
getAddedByUser
();
SecUser
secUser
=
companyUser
.
getUser
();
SecUser
secUser
=
companyUser
.
getUser
();
String
nextPage
=
(
String
)
request
.
getAttribute
(
"nextPage"
);
Boolean
socialLogin
=
CollectionUtils
.
equals
(
process
.
getAttribute
(
"socialLogin"
),
Boolean
.
TRUE
);
Boolean
socialLogin
=
CollectionUtils
.
equals
(
process
.
getAttribute
(
"socialLogin"
),
Boolean
.
TRUE
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Verifing Company User"
,
companyUser
,
secUser
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Verifing Company User"
,
companyUser
,
secUser
);
...
@@ -73,7 +77,6 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
...
@@ -73,7 +77,6 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
if
(!
socialLogin
)
if
(!
socialLogin
)
{
{
secUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
companyUser
.
getPassword
());
request
.
getSession
().
setAttribute
(
SecUser
.
SEC_USER_ID
,
secUser
);
request
.
getSession
().
setAttribute
(
SecUser
.
SEC_USER_ID
,
secUser
);
request
.
getSession
().
setAttribute
(
SessionSecUserDecorator
.
REFRESH_SECURITY
,
Boolean
.
TRUE
);
request
.
getSession
().
setAttribute
(
SessionSecUserDecorator
.
REFRESH_SECURITY
,
Boolean
.
TRUE
);
...
@@ -89,16 +92,11 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
...
@@ -89,16 +92,11 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
{
{
if
(!
CollectionUtils
.
equals
(
cUser
,
companyUser
))
if
(!
CollectionUtils
.
equals
(
cUser
,
companyUser
))
{
{
Tuple
.
T2
<
SecUser
,
Boolean
>
userdata
=
Utils
.
getSecUserForCompanyIfAvailable
(
cUser
);
SecUser
sUser
=
cUser
.
getUser
();
SecUser
sUser
=
userdata
.
get0
();
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Started to send invitaion email."
,
cUser
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Started to send invitaion email."
,
cUser
);
if
(!
userdata
.
get1
())
//check user availablility
{
sUser
.
setUserName
(
sUser
.
getEmail
().
toLowerCase
());
sUser
.
setUserName
(
sUser
.
getEmail
().
toLowerCase
());
}
sUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
CompanyUser
.
DEFAULT_PASSWORD
);
sUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
CompanyUser
.
DEFAULT_PASSWORD
);
sUser
.
addRole
(
Utils
.
getRole
(
Utils
.
ROLE_CLIENT
,
objTran
));
sUser
.
addRole
(
Utils
.
getRole
(
Utils
.
ROLE_CLIENT
,
objTran
));
...
@@ -116,9 +114,7 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
...
@@ -116,9 +114,7 @@ public class SendCompanyUserInvitesFP extends ORMProcessFormProcessor
IntercomUtils
.
createIntercomUser
(
secUser
,
"Hiring Team"
,
intercomCompany
);
IntercomUtils
.
createIntercomUser
(
secUser
,
"Hiring Team"
,
intercomCompany
);
process
.
completeAndRestart
();
return
super
.
processForm
(
process
,
submission
,
params
);
return
new
ProcessRedirectResult
(
nextPage
,
new
String
[
0
]);
}
}
...
...
cmsWebApp/src/performa/form/SendVerificationMailFP.java
View file @
794aa598
...
@@ -42,11 +42,11 @@ public class SendVerificationMailFP extends SaveFP
...
@@ -42,11 +42,11 @@ public class SendVerificationMailFP extends SaveFP
CompanyUser
companyUser
=
company
.
getAddedByUser
();
CompanyUser
companyUser
=
company
.
getAddedByUser
();
SecUser
secUser
=
companyUser
.
getUser
();
SecUser
secUser
=
companyUser
.
getUser
();
BusinessObjectParser
.
assertFieldCondition
(!
Utils
.
isCompanyUserEmailFound
(
process
.
getTransaction
(),
secUser
.
getEmail
()),
secUser
,
SecUser
.
FIELD_Email
,
"emailExists"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(!
Utils
.
emailExists
(
process
.
getTransaction
(),
secUser
.
getEmail
()),
secUser
,
SecUser
.
FIELD_Email
,
"emailExists"
,
exceptions
,
true
,
request
);
}
}
else
else
{
{
BusinessObjectParser
.
assertFieldCondition
(!
job
.
isEmailFound
(
),
job
,
Job
.
FIELD_Email
,
"emailExists"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(!
Utils
.
emailExists
(
process
.
getTransaction
(),
job
.
getEmail
()
),
job
,
Job
.
FIELD_Email
,
"emailExists"
,
exceptions
,
true
,
request
);
}
}
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
...
...
cmsWebApp/src/performa/form/SignInCandidateFP.java
View file @
794aa598
...
@@ -57,6 +57,7 @@ public class SignInCandidateFP extends LoginProcessor
...
@@ -57,6 +57,7 @@ public class SignInCandidateFP extends LoginProcessor
BusinessObjectParser
.
assertFieldCondition
(
job
.
getEmail
()!=
null
,
job
,
Job
.
FIELD_Email
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
job
.
getEmail
()!=
null
,
job
,
Job
.
FIELD_Email
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
job
.
getPassword
()!=
null
,
job
,
Job
.
FIELD_Password
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
job
.
getPassword
()!=
null
,
job
,
Job
.
FIELD_Password
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(!
Utils
.
emailExists
(
job
.
getTransaction
(),
job
.
getEmail
()),
job
,
Job
.
FIELD_Email
,
"emailExists"
,
exceptions
,
true
,
request
);
return
super
.
validate
(
submission
,
exceptions
);
return
super
.
validate
(
submission
,
exceptions
);
}
}
...
...
cmsWebApp/src/performa/form/VerifyCompanyUserFP.java
deleted
100644 → 0
View file @
615d5f78
package
performa
.
form
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
oneit.appservices.config.ConfigMgr
;
import
oneit.components.ParticipantInitialisationContext
;
import
oneit.email.ConfigurableArticleTemplateEmailer
;
import
oneit.email.ConfigurableEmailerException
;
import
oneit.logging.*
;
import
oneit.objstore.StorageException
;
import
oneit.objstore.parser.BusinessObjectParser
;
import
oneit.objstore.validator.AttributeValidator
;
import
oneit.security.SecUser
;
import
oneit.servlets.forms.*
;
import
oneit.servlets.process.*
;
import
oneit.servlets.security.SessionSecUserDecorator
;
import
oneit.utils.*
;
import
oneit.utils.parsers.FieldException
;
import
performa.intercom.utils.IntercomUtils
;
import
performa.orm.*
;
import
performa.utils.Utils
;
import
performa.utils.WebUtils
;
public
class
VerifyCompanyUserFP
extends
ORMProcessFormProcessor
{
private
static
final
LoggingArea
LOG
=
LoggingArea
.
createLoggingArea
(
"VerifyCompanyUser"
);
protected
ConfigurableArticleTemplateEmailer
emailer
;
@Override
public
void
validate
(
ORMProcessState
process
,
SubmissionDetails
submission
,
MultiException
exceptions
,
Map
params
)
throws
StorageException
{
HttpServletRequest
request
=
submission
.
getRequest
();
CompanyUser
companyUser
=
(
CompanyUser
)
process
.
getAttribute
(
"CompanyUser"
);
Boolean
socialLogin
=
(
Boolean
)
request
.
getAttribute
(
"socialLogin"
);
SecUser
secUser
=
companyUser
.
getUser
();
Company
company
=
companyUser
.
getCompany
();
if
(
socialLogin
)
{
BusinessObjectParser
.
assertFieldCondition
(
secUser
.
getEmail
()!=
null
,
secUser
,
SecUser
.
FIELD_Email
,
"invalid"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(!
Utils
.
isCompanyUserEmailFound
(
secUser
.
getTransaction
(),
secUser
.
getEmail
()),
secUser
,
SecUser
.
FIELD_Email
,
"emailExists"
,
exceptions
,
true
,
request
);
}
else
{
BusinessObjectParser
.
assertFieldCondition
(
StringUtils
.
isEmailAddress
(
secUser
.
getUserName
()),
secUser
,
SecUser
.
FIELD_Email
,
"invalid"
,
exceptions
,
true
,
request
);
}
BusinessObjectParser
.
assertFieldCondition
(
secUser
.
getFirstName
()!=
null
,
secUser
,
SecUser
.
FIELD_FirstName
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
secUser
.
getLastName
()!=
null
,
secUser
,
SecUser
.
FIELD_LastName
,
"mandatory"
,
exceptions
,
true
,
request
);
if
(!
company
.
isTrue
(
company
.
getIsVerified
()))
{
BusinessObjectParser
.
assertFieldCondition
(
company
.
getCompanyName
()!=
null
,
company
,
Company
.
FIELD_CompanyName
,
"mandatory"
,
exceptions
,
true
,
request
);
}
if
(!
socialLogin
)
{
BusinessObjectParser
.
assertFieldCondition
(
companyUser
.
getPassword
()!=
null
,
companyUser
,
CompanyUser
.
FIELD_Password
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
companyUser
.
getConfirmPassword
()!=
null
,
companyUser
,
CompanyUser
.
FIELD_ConfirmPassword
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
CollectionUtils
.
equals
(
companyUser
.
getPassword
(),
companyUser
.
getConfirmPassword
()),
companyUser
,
CompanyUser
.
FIELD_ConfirmPassword
,
"passwordNotMatch"
,
exceptions
,
true
,
request
);
//to validate password
AttributeValidator
passwordValidator
=
(
AttributeValidator
)(
ConfigMgr
.
getConfigObject
(
"CONFIG.ORMVALIDATOR"
,
"PasswordValidator"
,
null
));
try
{
//execute if not null
if
(
passwordValidator
!=
null
)
{
passwordValidator
.
validate
(
null
,
secUser
,
"Password"
,
companyUser
.
getPassword
());
}
}
catch
(
FieldException
e
)
{
exceptions
.
addException
(
new
FieldException
(
e
,
CompanyUser
.
FIELD_Password
));
}
catch
(
Exception
e
)
{
throw
NestedException
.
wrap
(
e
);
}
}
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
}
@Override
public
SuccessfulResult
processForm
(
ORMProcessState
process
,
SubmissionDetails
submission
,
Map
params
)
throws
BusinessException
,
StorageException
{
HttpServletRequest
request
=
submission
.
getRequest
();
CompanyUser
companyUser
=
(
CompanyUser
)
process
.
getAttribute
(
"CompanyUser"
);
SecUser
secUser
=
companyUser
.
getUser
();
Company
company
=
companyUser
.
getCompany
();
String
nextPage
=
(
String
)
request
.
getAttribute
(
"nextPage"
);
Boolean
socialLogin
=
(
Boolean
)
request
.
getAttribute
(
"socialLogin"
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Verifing User"
,
companyUser
,
secUser
);
if
(
CollectionUtils
.
equals
(
companyUser
.
getPassword
(),
companyUser
.
getConfirmPassword
()))
{
if
(!
company
.
isTrue
(
company
.
getIsVerified
())
&&
CollectionUtils
.
equals
(
company
.
getAddedByUser
(),
companyUser
))
{
process
.
setAttribute
(
"Company"
,
company
);
process
.
setAttribute
(
"socialLogin"
,
socialLogin
);
return
new
ProcessRedirectResult
(
nextPage
,
new
String
[
0
]);
}
else
{
nextPage
=
WebUtils
.
getArticleByShortCut
(
process
.
getTransaction
(),
WebUtils
.
ADMIN_HOME
).
getLink
(
request
);
// Create company user in intercom
performa
.
intercom
.
resources
.
Company
intercomCompany
=
IntercomUtils
.
findCompanyByID
(
company
);
IntercomUtils
.
createIntercomUser
(
secUser
,
"Hiring Team"
,
intercomCompany
);
}
if
(!
socialLogin
)
{
secUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
companyUser
.
getPassword
());
}
companyUser
.
setIsAccountVerified
(
Boolean
.
TRUE
);
sendMail
(
companyUser
,
request
);
request
.
getSession
().
setAttribute
(
SecUser
.
SEC_USER_ID
,
secUser
);
request
.
getSession
().
setAttribute
(
SessionSecUserDecorator
.
REFRESH_SECURITY
,
Boolean
.
TRUE
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Password resetted"
,
companyUser
,
secUser
);
}
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Verifing User finished"
,
companyUser
,
secUser
);
process
.
completeAndRestart
();
return
new
ProcessRedirectResult
(
nextPage
,
new
String
[
0
]);
}
@Override
public
void
init
(
ParticipantInitialisationContext
context
)
throws
InitialisationException
{
super
.
init
(
context
);
emailer
=
(
ConfigurableArticleTemplateEmailer
)
(
context
.
getSingleChild
(
"AccountCreatedEmailer"
));
}
protected
void
sendMail
(
CompanyUser
companyUser
,
HttpServletRequest
request
)
throws
BusinessException
{
try
{
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Sending Account Created mail from VerifyCompanyUserFP to :: "
,
companyUser
);
Map
defaultParams
=
CollectionUtils
.
EMPTY_MAP
;
ObjectTransform
transform
=
Utils
.
createCompoundTransform
(
defaultParams
,
companyUser
);
Utils
.
sendMail
(
emailer
,
transform
,
new
String
[]{
companyUser
.
getEmailAddressFromUser
()},
null
,
companyUser
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Sent Account Created mail successfully from "
+
VerifyCompanyUserFP
.
class
+
" to :: "
,
companyUser
);
}
catch
(
ConfigurableEmailerException
ex
)
{
LogMgr
.
log
(
LOG
,
LogLevel
.
SYSTEMERROR1
,
ex
,
"Error occured while sending mail for CompanyUser :: "
+
companyUser
);
throw
new
BusinessException
(
"We are unable to send mail. Please try again or contact Talentology for more details."
);
}
}
}
\ No newline at end of file
cmsWebApp/src/performa/orm/BaseCompany.java
View file @
794aa598
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Company.java
View file @
794aa598
package
performa
.
orm
;
package
performa
.
orm
;
import
oneit.logging.LoggingArea
;
import
oneit.logging.LoggingArea
;
import
oneit.objstore.ObjectStatus
;
import
oneit.objstore.ValidationContext
;
import
oneit.security.SecUser
;
import
oneit.security.SecUser
;
import
oneit.utils.CollectionUtils
;
import
oneit.utils.CollectionUtils
;
import
oneit.utils.parsers.FieldException
;
import
oneit.utils.parsers.FieldException
;
...
@@ -45,4 +47,16 @@ public class Company extends BaseCompany
...
@@ -45,4 +47,16 @@ public class Company extends BaseCompany
}
}
return
addUser
;
return
addUser
;
}
}
@Override
public
void
validate
(
ValidationContext
context
)
{
if
(
getStatus
()
!=
ObjectStatus
.
NEW
)
{
context
.
check
(
getHiringTeamType
()
!=
null
,
this
,
FIELD_HiringTeamType
,
"mandatory"
);
}
super
.
validate
(
context
);
}
}
}
\ No newline at end of file
cmsWebApp/src/performa/orm/Company.xml
View file @
794aa598
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<TRANSIENT
name=
"LastName"
type=
"String"
/>
<TRANSIENT
name=
"LastName"
type=
"String"
/>
<TRANSIENT
name=
"RoleType"
type=
"RoleType"
defaultValue=
"RoleType.STANDARD"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"RoleType"
type=
"RoleType"
defaultValue=
"RoleType.STANDARD"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"IsLogoDeleted"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TRANSIENT
name=
"IsLogoDeleted"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TRANSIENT
name=
"CompletedInvites"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TABLE
name=
"tl_company"
tablePrefix=
"object"
>
<TABLE
name=
"tl_company"
tablePrefix=
"object"
>
...
...
cmsWebApp/src/performa/utils/Utils.java
View file @
794aa598
...
@@ -328,6 +328,17 @@ public class Utils
...
@@ -328,6 +328,17 @@ public class Utils
}
}
public
static
Boolean
emailExists
(
ObjectTransaction
objTran
,
String
email
)
{
if
(
email
!=
null
)
{
return
SecUser
.
searchNAME
(
objTran
,
email
.
toLowerCase
())
!=
null
;
}
return
Boolean
.
FALSE
;
}
public
static
Boolean
isCompanyUserEmailFound
(
ObjectTransaction
objTran
,
String
email
)
public
static
Boolean
isCompanyUserEmailFound
(
ObjectTransaction
objTran
,
String
email
)
{
{
if
(
email
!=
null
)
if
(
email
!=
null
)
...
...
cmsWebApp/src/performa/utils/WebUtils.java
View file @
794aa598
...
@@ -45,6 +45,8 @@ public class WebUtils
...
@@ -45,6 +45,8 @@ public class WebUtils
public
static
final
String
COMPANY_ACCOUNT_VERIFICATION
=
"CompanyAccountVerification"
;
public
static
final
String
COMPANY_ACCOUNT_VERIFICATION
=
"CompanyAccountVerification"
;
public
static
final
String
MY_DETAILS
=
"MyDetails"
;
public
static
final
String
MY_DETAILS
=
"MyDetails"
;
public
static
final
String
RESET_PASSWORD
=
"ResetPassword"
;
public
static
final
String
RESET_PASSWORD
=
"ResetPassword"
;
public
static
final
String
COMPANY_PROFILE
=
"CompanyProfile"
;
public
static
final
String
INVITE_USERS
=
"InviteUsers"
;
public
static
String
getArticleLink
(
HttpServletRequest
request
,
ObjectTransaction
objTran
,
String
articleShortcut
,
String
renderMode
)
public
static
String
getArticleLink
(
HttpServletRequest
request
,
ObjectTransaction
objTran
,
String
articleShortcut
,
String
renderMode
)
...
...
cmsWebApp/webroot/extensions/adminportal/CustomServlets_adminPortal.xml
View file @
794aa598
...
@@ -32,9 +32,6 @@
...
@@ -32,9 +32,6 @@
<FORM
name=
"*.changeApplicationStatus"
factory=
"Participant"
class=
"performa.form.ChangeApplicationStatusFP"
/>
<FORM
name=
"*.changeApplicationStatus"
factory=
"Participant"
class=
"performa.form.ChangeApplicationStatusFP"
/>
<FORM
name=
"*.bulkupdate"
factory=
"Participant"
class=
"performa.form.BulkUpdateFP"
/>
<FORM
name=
"*.bulkupdate"
factory=
"Participant"
class=
"performa.form.BulkUpdateFP"
/>
<FORM
name=
"*.navigateBetweenStatus"
factory=
"Participant"
class=
"performa.form.NavigateBetweenStatusFP"
/>
<FORM
name=
"*.navigateBetweenStatus"
factory=
"Participant"
class=
"performa.form.NavigateBetweenStatusFP"
/>
<FORM
name=
"*.verifyCompanyUser"
factory=
"Participant"
class=
"performa.form.VerifyCompanyUserFP"
>
<AccountCreatedEmailer
factory=
"Participant"
class=
"oneit.email.ConfigurableArticleTemplateEmailer"
templateShortcut=
"AccountCreatedMail"
/>
</FORM>
<FORM
name=
"*.sendCompanyUserInvites"
factory=
"Participant"
class=
"performa.form.SendCompanyUserInvitesFP"
>
<FORM
name=
"*.sendCompanyUserInvites"
factory=
"Participant"
class=
"performa.form.SendCompanyUserInvitesFP"
>
<AccountCreatedEmailer
factory=
"Participant"
class=
"oneit.email.ConfigurableArticleTemplateEmailer"
templateShortcut=
"AccountCreatedMail"
/>
<AccountCreatedEmailer
factory=
"Participant"
class=
"oneit.email.ConfigurableArticleTemplateEmailer"
templateShortcut=
"AccountCreatedMail"
/>
<InvitationEmailer
factory=
"Participant"
class=
"oneit.email.ConfigurableArticleTemplateEmailer"
templateShortcut=
"InvitationMail"
/>
<InvitationEmailer
factory=
"Participant"
class=
"oneit.email.ConfigurableArticleTemplateEmailer"
templateShortcut=
"InvitationMail"
/>
...
...
cmsWebApp/webroot/extensions/adminportal/company_profile.jsp
View file @
794aa598
...
@@ -20,20 +20,20 @@
...
@@ -20,20 +20,20 @@
process.setAttribute("Company", company);
process.setAttribute("Company", company);
process.setAttribute("socialLogin", socialLogin);
process.setAttribute("socialLogin", socialLogin);
company.setCompletedProfile(Boolean.TRUE);
%>
%>
<div class="hello-company-name">Hello, <%= secUser.getFirstName() %></div>
<div class="hello-company-name">Hello, <%= secUser.getFirstName() %></div>
<div class="section-tab-view">
<div class="section-tab-view">
<div class="main-tab-form">
<ul class="nav nav-pills nav-justified">
<li class="active"><a href="#"><span>1</span><div>Company Profile</div></a></li>
<li><a href="#"><span>2</span><div>Invite Users</div></a></li>
<li><a href="#"><span>3</span><div>Create a Job</div></a></li>
</ul>
</div>
<oneit:form name="companyProfile" method="post" enctype="multipart/form-data">
<oneit:form name="companyProfile" method="post" enctype="multipart/form-data">
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<oneit:dynInclude page="/extensions/adminportal/inc/company_profile_tabs.jsp" TabNumber="1" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="section-page-area" style="text-align: left">
<div class="section-page-area" style="text-align: left">
<div class="main-sc-section">
<div class="main-sc-section">
<div class="form-group">
<div class="form-group">
...
...
cmsWebApp/webroot/extensions/adminportal/inc/company_profile_tabs.jsp
0 → 100644
View file @
794aa598
<%@ page extends="oneit.servlets.jsp.JSPInclude" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/inc/stdcms.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%
Company company = (Company) process.getAttribute("Company");
String tabNumber = (String) getData(request, "TabNumber");
String firstTab = WebUtils.getSamePageInRenderMode(request, WebUtils.COMPANY_PROFILE);
String secondTab = WebUtils.getSamePageInRenderMode(request, WebUtils.INVITE_USERS);
%>
<oneit:dynIncluded>
<div class="main-tab-form">
<ul class="nav nav-pills nav-justified">
<li class="<%= tabNumber == "1" ? "active" : ""%>">
<oneit:button value=" " name="gotoPage" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", firstTab)
.mapEntry("procParams", CollectionUtils.mapEntry("Company", company).toMap())
.toMap() %>">
<span><%= CollectionUtils.equals(company.getCompletedProfile(), Boolean.TRUE) ? "<img src=\"images/right-mark.png\" />" : "1"%></span>
<div>Company Profile</div>
</oneit:button>
</li>
<li class="<%= tabNumber == "2" ? "active" : ""%>">
<oneit:button value=" " name="gotoPage" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondTab)
.mapEntry("procParams", CollectionUtils.mapEntry("Company", company).toMap())
.toMap() %>">
<span>2</span>
<div>Invite Users</div>
</oneit:button>
</li>
<li><a href="#"><span>3</span><div>Create a Job</div></a></li>
</ul>
</div>
</oneit:dynIncluded>
cmsWebApp/webroot/extensions/adminportal/invite_users.jsp
View file @
794aa598
...
@@ -41,18 +41,12 @@
...
@@ -41,18 +41,12 @@
</script>
</script>
<div class="hire-the-right-candi" style="">You're nearly there...</div>
<div class="hire-the-right-candi" style="">You're nearly there...</div>
<oneit:form name="companyProfile" method="post" enctype="multipart/form-data">
<div class="section-tab-view">
<oneit:form name="companyProfile" method="post" enctype="multipart/form-data">
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="section-tab-view">
<oneit:dynInclude page="/extensions/adminportal/inc/company_profile_tabs.jsp" TabNumber="2" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="main-tab-form">
<ul class="nav nav-pills nav-justified">
<li class="complate"><a href="#"><span><img src="images/right-mark.svg"/></span><div>Company Profile</div></a></li>
<li class="active"><a href="#"><span>2</span><div>Invite Users</div></a></li>
<li><a href="#"><span>3</span><div>Create a Job</div></a></li>
</ul>
</div>
<div class="section-page-area" style="text-align: left">
<div class="section-page-area" style="text-align: left">
<div class="main-sc-section">
<div class="main-sc-section">
...
@@ -88,8 +82,8 @@
...
@@ -88,8 +82,8 @@
.toMap() %>"/>
.toMap() %>"/>
</div>
</div>
</div>
</div>
</
div
>
</
oneit:form
>
</
oneit:form
>
</
div
>
</oneit:dynIncluded>
</oneit:dynIncluded>
<%@ include file="inc/htmlfooter_nopriv.jsp" %>
<%@ include file="inc/htmlfooter_nopriv.jsp" %>
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/messages/fieldnamesOverride.txt
View file @
794aa598
...
@@ -33,3 +33,4 @@ Company.FirstName = First Name
...
@@ -33,3 +33,4 @@ Company.FirstName = First Name
Company.LastName = Last Name
Company.LastName = Last Name
Company.RoleType = Role
Company.RoleType = Role
Company.CompanyLogo = Company Logo
Company.CompanyLogo = Company Logo
Company.HiringTeamType = Hiring Team
cmsWebApp/webroot/extensions/adminportal/verify_company.jsp
View file @
794aa598
...
@@ -14,12 +14,12 @@
...
@@ -14,12 +14,12 @@
//to process company user verification
//to process company user verification
String id = request.getParameter("id");
String id = request.getParameter("id");
String
key
= request.getParameter("key");
String
verifyKey
= request.getParameter("key");
Boolean invalid = Boolean.TRUE;
Boolean invalid = Boolean.TRUE;
if(id!=null &&
key
!=null)
if(id!=null &&
verifyKey
!=null)
{
{
companyUser = CompanyUser.searchIdPin(transaction, Long.parseLong(id),
k
ey);
companyUser = CompanyUser.searchIdPin(transaction, Long.parseLong(id),
verifyK
ey);
if(companyUser!=null && companyUser.getIsAccountVerified()!=Boolean.TRUE)
if(companyUser!=null && companyUser.getIsAccountVerified()!=Boolean.TRUE)
{
{
...
@@ -96,21 +96,23 @@
...
@@ -96,21 +96,23 @@
<%
<%
if(!socialLogin)
if(!socialLogin)
{
{
String key = Utils.getPwdKeyOfSecUser(request, secUser, true);
%>
%>
<div class="form-group text-left">
<div class="form-group text-left">
<label>Password</label>
<label>Password</label>
<oneit:
ormInput obj="<%= companyUser %>" type="password" attributeName="Password" cssClass="form-control second-style reset-pw" required="true
"/>
<oneit:
input type="password" name="<%= key %>" class="form-control second-style reset-pw
"/>
</div>
</div>
<div class="form-group text-left">
<div class="form-group text-left">
<label>Confirm password</label>
<label>Confirm password</label>
<oneit:
ormInput obj="<%= companyUser %>" type="password" attributeName="ConfirmPassword" cssClass="form-control second-style reset-pw " required="true
"/>
<oneit:
input type="password" name="<%= key + 2 %>" class="form-control second-style reset-pw
"/>
</div>
</div>
<%
<%
}
}
%>
%>
<oneit:button value="Verify and login" name="
verifyCompanyUser
" cssClass="box-btn verify-btn"
<oneit:button value="Verify and login" name="
gotoPage
" cssClass="box-btn verify-btn"
requestAttribs="<%= CollectionUtils.mapEntry("socialLogin", socialLogin)
requestAttribs="<%= CollectionUtils.mapEntry("socialLogin", socialLogin)
.mapEntry("procParams", CollectionUtils.mapEntry("Company", companyUser.getCompany()).toMap())
.mapEntry("nextPage", nextPage).toMap() %>"/>
.mapEntry("nextPage", nextPage).toMap() %>"/>
</div>
</div>
</oneit:form>
</oneit:form>
...
...
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