public class JobServiceImpl extends Object implements JobService
JobService.| Constructor and Description |
|---|
JobServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Job> |
getActiveJobsForPayType(String hrPayType,
org.joda.time.LocalDate asOfDate) |
List<Job> |
getActiveLeaveJobs(String principalId,
org.joda.time.LocalDate asOfDate)
Get list of active jobs eligible for leave for given principal and date
|
List<Job> |
getAllActiveLeaveJobs(String principalId,
org.joda.time.LocalDate asOfDate)
Get list of all active jobs eligible for leave for given principal and date range
|
List<Job> |
getAllInActiveLeaveJobsInRange(String principalId,
org.joda.time.LocalDate endDate) |
BigDecimal |
getFteSumForAllActiveLeaveEligibleJobs(String principalId,
org.joda.time.LocalDate asOfDate)
Returns FTE for all active LM eligible jobs.
|
BigDecimal |
getFteSumForJobs(List<? extends JobContract> jobs)
Get sum of fte of given jobs
|
List<Job> |
getInactiveLeaveJobs(Long jobNumber,
String principalId,
org.joda.time.LocalDate endDate) |
Job |
getJob(String hrJobId)
Get job by the unique id
|
Job |
getJob(String principalId,
Long jobNumber,
org.joda.time.LocalDate asOfDate)
Provides a job by specific job number, principal ID and as of Date combination.
|
Job |
getJob(String principalId,
Long jobNumber,
org.joda.time.LocalDate 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,
org.joda.time.LocalDate asOfDate)
Provides a list of current jobs that are valid relative to the provided effective date.
|
List<Job> |
getJobs(String userPrincipalId,
String principalId,
String firstName,
String lastName,
String jobNumber,
String dept,
String positionNbr,
String payType,
org.joda.time.LocalDate fromEffdt,
org.joda.time.LocalDate toEffdt,
String active,
String showHistory) |
Job |
getMaxJob(String principalId)
Get the max jobnumber job for this principal
|
Job |
getMaxTimestampJob(String principalId) |
Job |
getNextInactiveJob(Job job) |
Job |
getPrimaryJob(String principalId,
org.joda.time.LocalDate payPeriodEndDate)
For a given principal ID, the job that is marked "primary" is returned
here.
|
List<String> |
getPrincipalIdsInPosition(String positionNumber,
org.joda.time.LocalDate asOfDate)
Returns all of the principal ids actively particpating in a job in the given position number
|
BigDecimal |
getStandardHoursSumForJobs(List<? extends JobContract> jobs)
Get sum of standard hours of given jobs
|
Job |
saveOrUpdate(Job job)
Updates or saves a job
|
List<Job> |
saveOrUpdate(List<Job> jobList)
Updates or saves a list of jobs
|
void |
setJobDao(JobDao jobDao) |
protected List<Job> |
toImmutable(List<JobBo> bos) |
public JobServiceImpl()
public Job saveOrUpdate(Job job)
JobServicesaveOrUpdate in interface JobServicepublic List<Job> saveOrUpdate(List<Job> jobList)
JobServicesaveOrUpdate in interface JobServicepublic List<Job> getJobs(String principalId, org.joda.time.LocalDate asOfDate)
JobServicegetJobs in interface JobServicepublic Job getJob(String principalId, Long jobNumber, org.joda.time.LocalDate asOfDate)
JobServicegetJob in interface JobServicepublic Job getPrimaryJob(String principalId, org.joda.time.LocalDate payPeriodEndDate)
JobServicegetPrimaryJob in interface JobServiceprincipalId - The principal under investigationpayPeriodEndDate - Run the request as of this date.public Job getJob(String principalId, Long jobNumber, org.joda.time.LocalDate asOfDate, boolean chkDetails)
JobServicegetJob in interface JobServicepublic List<Job> getActiveJobsForPayType(String hrPayType, org.joda.time.LocalDate asOfDate)
getActiveJobsForPayType in interface JobServicepublic Job getJob(String hrJobId)
JobServicegetJob in interface JobServicepublic Job getMaxJob(String principalId)
JobServicegetMaxJob in interface JobServicepublic List<Job> getJobs(String userPrincipalId, String principalId, String firstName, String lastName, String jobNumber, String dept, String positionNbr, String payType, org.joda.time.LocalDate fromEffdt, org.joda.time.LocalDate toEffdt, String active, String showHistory)
getJobs in interface JobServicepublic int getJobCount(String principalId, Long jobNumber, String dept)
getJobCount in interface JobServicepublic List<Job> getActiveLeaveJobs(String principalId, org.joda.time.LocalDate asOfDate)
JobServicegetActiveLeaveJobs in interface JobServicepublic BigDecimal getFteSumForJobs(List<? extends JobContract> jobs)
JobServicegetFteSumForJobs in interface JobServicepublic BigDecimal getFteSumForAllActiveLeaveEligibleJobs(String principalId, org.joda.time.LocalDate asOfDate)
JobServicegetFteSumForAllActiveLeaveEligibleJobs in interface JobServicepublic BigDecimal getStandardHoursSumForJobs(List<? extends JobContract> jobs)
JobServicegetStandardHoursSumForJobs in interface JobServicepublic List<Job> getAllActiveLeaveJobs(String principalId, org.joda.time.LocalDate asOfDate)
JobServicegetAllActiveLeaveJobs in interface JobServicepublic List<Job> getInactiveLeaveJobs(Long jobNumber, String principalId, org.joda.time.LocalDate endDate)
getInactiveLeaveJobs in interface JobServicepublic List<Job> getAllInActiveLeaveJobsInRange(String principalId, org.joda.time.LocalDate endDate)
getAllInActiveLeaveJobsInRange in interface JobServicepublic Job getMaxTimestampJob(String principalId)
getMaxTimestampJob in interface JobServicepublic List<String> getPrincipalIdsInPosition(String positionNumber, org.joda.time.LocalDate asOfDate)
JobServicegetPrincipalIdsInPosition in interface JobServicepublic Job getNextInactiveJob(Job job)
getNextInactiveJob in interface JobServiceprotected List<Job> toImmutable(List<JobBo> bos)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.