Commit 05cd3958 by chenith Committed by Harsh Shah

Updated job applications sorting by rank.

parent 308a11cd
...@@ -165,7 +165,8 @@ public class JobApplication extends BaseJobApplication ...@@ -165,7 +165,8 @@ public class JobApplication extends BaseJobApplication
} }
// TODO: Fix these hard coded values // TODO: Fix these hard coded values
public int getOverallSuitability() @Override
public Integer getOverallSuitability()
{ {
return 85; return 85;
} }
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<TRANSIENT name="IsSelected" type="Boolean" defaultValue="Boolean.FALSE"/> <TRANSIENT name="IsSelected" type="Boolean" defaultValue="Boolean.FALSE"/>
<TRANSIENT name="AppProcessOption" type="AppProcessOption" attribHelper="EnumeratedAttributeHelper"/> <TRANSIENT name="AppProcessOption" type="AppProcessOption" attribHelper="EnumeratedAttributeHelper"/>
<TRANSIENT name="OverallSuitability" type="Integer"/>
<TABLE name="tl_job_application" tablePrefix="object" polymorphic="FALSE"> <TABLE name="tl_job_application" tablePrefix="object" polymorphic="FALSE">
......
...@@ -148,12 +148,11 @@ public class Utils ...@@ -148,12 +148,11 @@ public class Utils
transform = JobApplication.pipesJobApplication().toSubmittedDate(); transform = JobApplication.pipesJobApplication().toSubmittedDate();
comparator = CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR); comparator = CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR);
} }
// TODO : sort by rank else if(appSortOption==AppSortOption.RANK)
// else if(appSortOption==AppSortOption.RANK) {
// { transform = JobApplication.pipesJobApplication().toOverallSuitability();
// transform = JobApplication.pipesJobApplication().toSubmittedDate(); comparator = CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR);
// comparator = CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR); }
// }
else if(appSortOption==AppSortOption.ALPHA_A_Z) else if(appSortOption==AppSortOption.ALPHA_A_Z)
{ {
transform = JobApplication.pipesJobApplication().toCandidate().toUser().toFirstName(); transform = JobApplication.pipesJobApplication().toCandidate().toUser().toFirstName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment