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
d37664a9
Commit
d37664a9
authored
Sep 28, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show only essential culture fit factors for areas of concern
parent
74e03eff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+2
-2
AnalysisEngine.java
cmsWebApp/src/performa/utils/AnalysisEngine.java
+6
-1
No files found.
cmsWebApp/src/performa/orm/JobApplication.java
View file @
d37664a9
...
@@ -262,7 +262,7 @@ public class JobApplication extends BaseJobApplication
...
@@ -262,7 +262,7 @@ public class JobApplication extends BaseJobApplication
{
{
try
try
{
{
setCultureFit
(
AnalysisEngine
.
getCultureFit
(
getCandidate
().
getCultureCriteriaAnswersSet
(),
getJob
()));
setCultureFit
(
AnalysisEngine
.
getCultureFit
(
getCandidate
().
getCultureCriteriaAnswersSet
(),
getJob
()
,
false
));
}
}
catch
(
FieldException
ex
)
catch
(
FieldException
ex
)
{
{
...
@@ -553,7 +553,7 @@ public class JobApplication extends BaseJobApplication
...
@@ -553,7 +553,7 @@ public class JobApplication extends BaseJobApplication
public
List
<
Tuple
.
T2
>
getCultureAreaOfConcerns
()
public
List
<
Tuple
.
T2
>
getCultureAreaOfConcerns
()
{
{
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>
cultureFitData
=
(
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>)
getCultureFit
(
);
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>
cultureFitData
=
AnalysisEngine
.
getCultureFit
(
getCandidate
().
getCultureCriteriaAnswersSet
(),
getJob
(),
true
);
List
<
Tuple
.
T2
>
result
=
new
ArrayList
();
List
<
Tuple
.
T2
>
result
=
new
ArrayList
();
for
(
CultureClass
cClass
:
cultureFitData
.
keySet
())
for
(
CultureClass
cClass
:
cultureFitData
.
keySet
())
...
...
cmsWebApp/src/performa/utils/AnalysisEngine.java
View file @
d37664a9
...
@@ -231,7 +231,7 @@ public class AnalysisEngine
...
@@ -231,7 +231,7 @@ public class AnalysisEngine
}
}
//Tuple.T2<Long, Set<Tuple.T3>> ---> T2<Score, List<T3 <WeightingScore, CultureElement, Narrative>>
//Tuple.T2<Long, Set<Tuple.T3>> ---> T2<Score, List<T3 <WeightingScore, CultureElement, Narrative>>
public
static
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>
getCultureFit
(
Set
<
CultureCriteriaAnswer
>
cultureCriteriaAnswers
,
Job
job
)
public
static
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>
getCultureFit
(
Set
<
CultureCriteriaAnswer
>
cultureCriteriaAnswers
,
Job
job
,
boolean
areaOfConcern
)
{
{
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"AnalysisEngine --> getCultureFit called"
);
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"AnalysisEngine --> getCultureFit called"
);
...
@@ -256,6 +256,11 @@ public class AnalysisEngine
...
@@ -256,6 +256,11 @@ public class AnalysisEngine
if
(
criteria
!=
null
&&
criteria
.
getImportance
()
!=
null
&&
criteria
.
getImportance
()
!=
Importance
.
NOT_APPLICABLE
)
if
(
criteria
!=
null
&&
criteria
.
getImportance
()
!=
null
&&
criteria
.
getImportance
()
!=
Importance
.
NOT_APPLICABLE
)
{
{
if
(
areaOfConcern
&&
(
criteria
.
getImportance
()
==
Importance
.
DESIRABLE
||
criteria
.
getImportance
()
==
Importance
.
HIGHLY_DESIRABLE
))
{
continue
;
}
CultureElementRating
rating
=
criteria
.
getCultureElementRating
();
CultureElementRating
rating
=
criteria
.
getCultureElementRating
();
if
(
rating
!=
null
&&
rating
.
getCultureElement
()
!=
null
&&
rating
.
getCultureElement
().
getCultureClass
()
!=
null
)
if
(
rating
!=
null
&&
rating
.
getCultureElement
()
!=
null
&&
rating
.
getCultureElement
().
getCultureClass
()
!=
null
)
...
...
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