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
05cd3958
Commit
05cd3958
authored
Aug 02, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated job applications sorting by rank.
parent
308a11cd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
BaseJobApplication.java
cmsWebApp/src/performa/orm/BaseJobApplication.java
+0
-0
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+2
-1
JobApplication.xml
cmsWebApp/src/performa/orm/JobApplication.xml
+1
-0
Utils.java
cmsWebApp/src/performa/utils/Utils.java
+5
-6
No files found.
cmsWebApp/src/performa/orm/BaseJobApplication.java
View file @
05cd3958
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/JobApplication.java
View file @
05cd3958
...
...
@@ -165,7 +165,8 @@ public class JobApplication extends BaseJobApplication
}
// TODO: Fix these hard coded values
public
int
getOverallSuitability
()
@Override
public
Integer
getOverallSuitability
()
{
return
85
;
}
...
...
cmsWebApp/src/performa/orm/JobApplication.xml
View file @
05cd3958
...
...
@@ -11,6 +11,7 @@
<TRANSIENT
name=
"IsSelected"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TRANSIENT
name=
"AppProcessOption"
type=
"AppProcessOption"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"OverallSuitability"
type=
"Integer"
/>
<TABLE
name=
"tl_job_application"
tablePrefix=
"object"
polymorphic=
"FALSE"
>
...
...
cmsWebApp/src/performa/utils/Utils.java
View file @
05cd3958
...
...
@@ -148,12 +148,11 @@ public class Utils
transform
=
JobApplication
.
pipesJobApplication
().
toSubmittedDate
();
comparator
=
CollectionUtils
.
reverse
(
CollectionUtils
.
DEFAULT_COMPARATOR
);
}
// TODO : sort by rank
// else if(appSortOption==AppSortOption.RANK)
// {
// transform = JobApplication.pipesJobApplication().toSubmittedDate();
// comparator = CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR);
// }
else
if
(
appSortOption
==
AppSortOption
.
RANK
)
{
transform
=
JobApplication
.
pipesJobApplication
().
toOverallSuitability
();
comparator
=
CollectionUtils
.
reverse
(
CollectionUtils
.
DEFAULT_COMPARATOR
);
}
else
if
(
appSortOption
==
AppSortOption
.
ALPHA_A_Z
)
{
transform
=
JobApplication
.
pipesJobApplication
().
toCandidate
().
toUser
().
toFirstName
();
...
...
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