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
e35809c3
Commit
e35809c3
authored
Apr 10, 2019
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue job created without level
parent
2944cd44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
18 additions
and
40 deletions
+18
-40
ProcessCultureFP.java
cmsWebApp/src/performa/form/ProcessCultureFP.java
+2
-24
SaveJobFP.java
cmsWebApp/src/performa/form/SaveJobFP.java
+0
-9
AssessmentCriteriaTemplate.java
cmsWebApp/src/performa/orm/AssessmentCriteriaTemplate.java
+7
-2
AssessmentCriteriaTemplate.xml
cmsWebApp/src/performa/orm/AssessmentCriteriaTemplate.xml
+0
-2
BaseAssessmentCriteriaTemplate.java
...bApp/src/performa/orm/BaseAssessmentCriteriaTemplate.java
+0
-0
BaseJob.java
cmsWebApp/src/performa/orm/BaseJob.java
+0
-0
Job.java
cmsWebApp/src/performa/orm/Job.java
+7
-1
Job.xml
cmsWebApp/src/performa/orm/Job.xml
+0
-1
Utils.java
cmsWebApp/src/performa/utils/Utils.java
+1
-0
verify_identity.jsp
...pp/webroot/extensions/applicantportal/verify_identity.jsp
+1
-1
No files found.
cmsWebApp/src/performa/form/ProcessCultureFP.java
View file @
e35809c3
...
@@ -3,7 +3,7 @@ package performa.form;
...
@@ -3,7 +3,7 @@ package performa.form;
import
oneit.servlets.forms.*
;
import
oneit.servlets.forms.*
;
import
oneit.utils.*
;
import
oneit.utils.*
;
import
performa.orm.CultureCriteria
;
import
performa.orm.CultureCriteria
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
oneit.objstore.StorageException
;
import
oneit.objstore.StorageException
;
import
oneit.servlets.forms.SubmissionDetails
;
import
oneit.servlets.forms.SubmissionDetails
;
...
@@ -12,7 +12,6 @@ import performa.orm.Job;
...
@@ -12,7 +12,6 @@ import performa.orm.Job;
import
oneit.objstore.parser.BusinessObjectParser
;
import
oneit.objstore.parser.BusinessObjectParser
;
import
oneit.servlets.process.ProcessRedirectResult
;
import
oneit.servlets.process.ProcessRedirectResult
;
import
oneit.servlets.process.SaveFP
;
import
oneit.servlets.process.SaveFP
;
import
performa.orm.Occupation
;
public
class
ProcessCultureFP
extends
SaveFP
public
class
ProcessCultureFP
extends
SaveFP
{
{
...
@@ -20,17 +19,6 @@ public class ProcessCultureFP extends SaveFP
...
@@ -20,17 +19,6 @@ public class ProcessCultureFP extends SaveFP
@Override
@Override
public
SuccessfulResult
processForm
(
ORMProcessState
process
,
SubmissionDetails
submission
,
Map
params
)
throws
BusinessException
,
StorageException
public
SuccessfulResult
processForm
(
ORMProcessState
process
,
SubmissionDetails
submission
,
Map
params
)
throws
BusinessException
,
StorageException
{
{
Job
job
=
(
Job
)
process
.
getAttribute
(
"Job"
);
if
(
job
.
getOccupationId
()
!=
null
)
{
Occupation
occupation
=
Occupation
.
getOccupationByID
(
process
.
getTransaction
(),
Long
.
valueOf
(
job
.
getOccupationId
()));
job
.
setOccupation
(
occupation
);
job
.
setLevel
(
occupation
.
getAssessmentLevel
());
job
.
setAssessmentType
(
occupation
.
getAssessmentType
());
}
return
new
ProcessRedirectResult
((
String
)
submission
.
getRequest
().
getAttribute
(
"nextPage"
),
new
String
[
0
]);
return
new
ProcessRedirectResult
((
String
)
submission
.
getRequest
().
getAttribute
(
"nextPage"
),
new
String
[
0
]);
}
}
...
@@ -51,17 +39,7 @@ public class ProcessCultureFP extends SaveFP
...
@@ -51,17 +39,7 @@ public class ProcessCultureFP extends SaveFP
if
(
fromJobMatch
)
if
(
fromJobMatch
)
{
{
if
(
job
.
getOccupationId
()
==
null
||
Occupation
.
getOccupationByID
(
process
.
getTransaction
(),
Long
.
valueOf
(
job
.
getOccupationId
()))
==
null
)
BusinessObjectParser
.
assertFieldCondition
(
job
.
getILOJobTitle
()
!=
null
,
job
,
Job
.
SINGLEREFERENCE_ILOJobTitle
,
"mandatory"
,
exceptions
,
true
,
request
);
{
BusinessObjectParser
.
assertFieldCondition
(
job
.
getOccupation
()
!=
null
,
job
,
Job
.
SINGLEREFERENCE_Occupation
,
"mandatory"
,
exceptions
,
true
,
request
);
}
// BusinessObjectParser.assertFieldCondition(job.getLevel()!= null, job , Job.SINGLEREFERENCE_Level, "mandatory", exceptions, true, request);
//
// if(job.getLevel() != null)
// {
// BusinessObjectParser.assertFieldCondition(job.showLevelOption(job.getLevel()), job , Job.SINGLEREFERENCE_Level, "invalid", exceptions, true, request);
// }
}
}
if
(
fromCulture
)
if
(
fromCulture
)
...
...
cmsWebApp/src/performa/form/SaveJobFP.java
View file @
e35809c3
...
@@ -79,15 +79,6 @@ public class SaveJobFP extends SaveFP
...
@@ -79,15 +79,6 @@ public class SaveJobFP extends SaveFP
job
.
setDraftLocation
(
draftLocation
);
job
.
setDraftLocation
(
draftLocation
);
}
}
if
(
job
.
getOccupationId
()
!=
null
)
{
Occupation
occupation
=
Occupation
.
getOccupationByID
(
process
.
getTransaction
(),
Long
.
valueOf
(
job
.
getOccupationId
()));
job
.
setOccupation
(
occupation
);
job
.
setLevel
(
occupation
.
getAssessmentLevel
());
job
.
setAssessmentType
(
occupation
.
getAssessmentType
());
}
return
super
.
processForm
(
process
,
submission
,
params
);
return
super
.
processForm
(
process
,
submission
,
params
);
}
}
...
...
cmsWebApp/src/performa/orm/AssessmentCriteriaTemplate.java
View file @
e35809c3
...
@@ -3,7 +3,6 @@ package performa.orm;
...
@@ -3,7 +3,6 @@ package performa.orm;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.Comparator
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.List
;
import
oneit.objstore.FieldWriteability
;
import
oneit.objstore.rdbms.filters.EqualsFilter
;
import
oneit.objstore.rdbms.filters.EqualsFilter
;
import
oneit.objstore.rdbms.filters.GreaterThanFilter
;
import
oneit.objstore.rdbms.filters.GreaterThanFilter
;
import
oneit.objstore.rdbms.filters.LessThanFilter
;
import
oneit.objstore.rdbms.filters.LessThanFilter
;
...
@@ -99,7 +98,13 @@ public class AssessmentCriteriaTemplate extends BaseAssessmentCriteriaTemplate
...
@@ -99,7 +98,13 @@ public class AssessmentCriteriaTemplate extends BaseAssessmentCriteriaTemplate
protected
void
postILOJobTitleChange
()
throws
FieldException
protected
void
postILOJobTitleChange
()
throws
FieldException
{
{
Occupation
occupation
=
getILOJobTitle
()
!=
null
?
getILOJobTitle
().
getOccupation
()
:
null
;
Occupation
occupation
=
getILOJobTitle
()
!=
null
?
getILOJobTitle
().
getOccupation
()
:
null
;
setOccupation
(
occupation
);
if
(
occupation
!=
null
)
{
setOccupation
(
occupation
);
setLevel
(
occupation
.
getAssessmentLevel
());
setAssessmentType
(
occupation
.
getAssessmentType
());
}
super
.
postILOJobTitleChange
();
super
.
postILOJobTitleChange
();
}
}
...
...
cmsWebApp/src/performa/orm/AssessmentCriteriaTemplate.xml
View file @
e35809c3
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
<IMPORT
value=
"performa.orm.types.*"
/>
<IMPORT
value=
"performa.orm.types.*"
/>
<IMPORT
value=
"oneit.security.*"
/>
<IMPORT
value=
"oneit.security.*"
/>
<TRANSIENT
name=
"OccupationId"
type=
"String"
/>
<MULTIPLEREFERENCE
name=
"AssessmentCriterias"
type=
"AssessmentCriteria"
backreferenceName=
"Template"
/>
<MULTIPLEREFERENCE
name=
"AssessmentCriterias"
type=
"AssessmentCriteria"
backreferenceName=
"Template"
/>
<MULTIPLEREFERENCE
name=
"WorkFlows"
type=
"WorkFlow"
backreferenceName=
"Template"
/>
<MULTIPLEREFERENCE
name=
"WorkFlows"
type=
"WorkFlow"
backreferenceName=
"Template"
/>
...
...
cmsWebApp/src/performa/orm/BaseAssessmentCriteriaTemplate.java
View file @
e35809c3
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/BaseJob.java
View file @
e35809c3
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Job.java
View file @
e35809c3
...
@@ -724,7 +724,13 @@ public class Job extends BaseJob
...
@@ -724,7 +724,13 @@ public class Job extends BaseJob
protected
void
postILOJobTitleChange
()
throws
FieldException
protected
void
postILOJobTitleChange
()
throws
FieldException
{
{
Occupation
occupation
=
getILOJobTitle
()
!=
null
?
getILOJobTitle
().
getOccupation
()
:
null
;
Occupation
occupation
=
getILOJobTitle
()
!=
null
?
getILOJobTitle
().
getOccupation
()
:
null
;
setOccupation
(
occupation
);
if
(
occupation
!=
null
)
{
setOccupation
(
occupation
);
setLevel
(
occupation
.
getAssessmentLevel
());
setAssessmentType
(
occupation
.
getAssessmentType
());
}
super
.
postILOJobTitleChange
();
super
.
postILOJobTitleChange
();
}
}
...
...
cmsWebApp/src/performa/orm/Job.xml
View file @
e35809c3
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
<TRANSIENT
name=
"CultureTemplateName"
type=
"String"
/>
<TRANSIENT
name=
"CultureTemplateName"
type=
"String"
/>
<TRANSIENT
name=
"AppProcessOption"
type=
"AppProcessOption"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"AppProcessOption"
type=
"AppProcessOption"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"RankingCompleted"
type=
"Boolean"
/>
<TRANSIENT
name=
"RankingCompleted"
type=
"Boolean"
/>
<TRANSIENT
name=
"OccupationId"
type=
"String"
/>
<TRANSIENTSINGLE
name=
"CultureTemplate"
type=
"CultureCriteriaTemplate"
/>
<TRANSIENTSINGLE
name=
"CultureTemplate"
type=
"CultureCriteriaTemplate"
/>
<TRANSIENTSINGLE
name=
"JobTemplate"
type=
"Job"
/>
<TRANSIENTSINGLE
name=
"JobTemplate"
type=
"Job"
/>
...
...
cmsWebApp/src/performa/utils/Utils.java
View file @
e35809c3
...
@@ -614,6 +614,7 @@ public class Utils
...
@@ -614,6 +614,7 @@ public class Utils
job
.
setJobType
(
jobTemplate
.
getJobType
());
job
.
setJobType
(
jobTemplate
.
getJobType
());
job
.
setIndustry
(
jobTemplate
.
getIndustry
());
job
.
setIndustry
(
jobTemplate
.
getIndustry
());
job
.
setILOJobTitle
(
jobTemplate
.
getILOJobTitle
());
job
.
setOccupation
(
jobTemplate
.
getOccupation
());
job
.
setOccupation
(
jobTemplate
.
getOccupation
());
job
.
setRequireCV
(
jobTemplate
.
getRequireCV
());
job
.
setRequireCV
(
jobTemplate
.
getRequireCV
());
...
...
cmsWebApp/webroot/extensions/applicantportal/verify_identity.jsp
View file @
e35809c3
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
Boolean isCultureComplete = jobApplication.cultureCompleted();
Boolean isCultureComplete = jobApplication.cultureCompleted();
Boolean isAssesmentComplete = jobApplication.assessmentCompleted();
Boolean isAssesmentComplete = jobApplication.assessmentCompleted();
Article jobApplicationArticle = WebUtils.getArticleByShortCut(transaction, WebUtils.JOB_APPLICATION);
Article jobApplicationArticle = WebUtils.getArticleByShortCut(transaction, WebUtils.JOB_APPLICATION);
String nextPage = jobApplicationArticle.getLink(request);
String nextPage = jobApplicationArticle.getLink(request)
+ "?JobID="+ job.getID().toString();
;
if(!jobApplication.hasStartedApplication())
if(!jobApplication.hasStartedApplication())
{
{
...
...
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