|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobService
Method Summary | |
---|---|
List<Job> |
getActiveJobsForPayType(String hrPayType,
Date asOfDate)
|
List<Job> |
getActiveJobsForPosition(String positionNbr,
Date asOfDate)
|
Job |
getJob(String hrJobId)
Get job by the unique id |
Job |
getJob(String principalId,
Long jobNumber,
Date asOfDate)
Provides a job by specific job number, principal ID and as of Date combination. |
Job |
getJob(String principalId,
Long jobNumber,
Date asOfDate,
boolean chkDetails)
Provides a job by specific job number, principal ID and as of Date combination, and check details will throw error if required. |
int |
getJobCount(String principalId,
Long jobNumber,
String dept)
|
List<Job> |
getJobs(String principalId,
Date asOfDate)
Provides a list of current jobs that are valid relative to the provided effective date. |
List<Job> |
getJobs(String principalId,
String firstName,
String lastName,
String jobNumber,
String dept,
String positionNbr,
String payType,
Date fromEffdt,
Date toEffdt,
String active,
String showHistory)
|
Job |
getMaxJob(String principalId)
Get the max jobnumber job for this principal |
Job |
getPrimaryJob(String principalId,
Date asOfDate)
For a given principal ID, the job that is marked "primary" is returned here. |
BigDecimal |
getStandardHoursSumForJobs(List<Job> jobs)
Get sum of standard hours of given jobs |
void |
saveOrUpdate(Job job)
Updates or saves a job |
void |
saveOrUpdate(List<Job> jobList)
Updates or saves a list of jobs |
Method Detail |
---|
@CacheEvict(value="KPME/Job", allEntries=true) void saveOrUpdate(Job job)
job
- @CacheEvict(value="KPME/Job", allEntries=true) void saveOrUpdate(List<Job> jobList)
jobList
- @Cacheable(value="KPME/Job", key="\'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<Job> getJobs(String principalId, Date asOfDate)
principalId
- asOfDate
-
@Cacheable(value="KPME/Job", key="\'principalId=\' + #p0 + \'|\' + \'jobNumber=\' + #p1 + \'|\' + \'asOfDate=\' + #p2") Job getJob(String principalId, Long jobNumber, Date asOfDate)
@Cacheable(value="KPME/Job", key="\'principalId=\' + #p0 + \'|\' + \'jobNumber=\' + #p1 + \'|\' + \'asOfDate=\' + #p2 + \'|\' + \'chkDetails=\' + #p3") Job getJob(String principalId, Long jobNumber, Date asOfDate, boolean chkDetails)
@Cacheable(value="KPME/Job", key="\'{getPrimaryJob}\' + \'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") Job getPrimaryJob(String principalId, Date asOfDate)
principalId
- The principal under investigationasOfDate
- Run the request as of this date.
@Cacheable(value="KPME/Job", key="\'positionNbr=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<Job> getActiveJobsForPosition(String positionNbr, Date asOfDate)
positionNbr
- asOfDate
-
@Cacheable(value="KPME/Job", key="\'hrPayType=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<Job> getActiveJobsForPayType(String hrPayType, Date asOfDate)
hrPayType
- asOfDate
-
@Cacheable(value="KPME/Job", key="\'hrJobId=\' + #p0") Job getJob(String hrJobId)
hrJobId
-
@Cacheable(value="KPME/Job", key="\'principalId=\' + #p0") Job getMaxJob(String principalId)
principalId
-
List<Job> getJobs(String principalId, String firstName, String lastName, String jobNumber, String dept, String positionNbr, String payType, Date fromEffdt, Date toEffdt, String active, String showHistory)
int getJobCount(String principalId, Long jobNumber, String dept)
BigDecimal getStandardHoursSumForJobs(List<Job> jobs)
jobs
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |