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)
JobService
saveOrUpdate
in interface JobService
public List<Job> saveOrUpdate(List<Job> jobList)
JobService
saveOrUpdate
in interface JobService
public List<Job> getJobs(String principalId, org.joda.time.LocalDate asOfDate)
JobService
getJobs
in interface JobService
public Job getJob(String principalId, Long jobNumber, org.joda.time.LocalDate asOfDate)
JobService
getJob
in interface JobService
public Job getPrimaryJob(String principalId, org.joda.time.LocalDate payPeriodEndDate)
JobService
getPrimaryJob
in interface JobService
principalId
- 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)
JobService
getJob
in interface JobService
public List<Job> getActiveJobsForPayType(String hrPayType, org.joda.time.LocalDate asOfDate)
getActiveJobsForPayType
in interface JobService
public Job getJob(String hrJobId)
JobService
getJob
in interface JobService
public Job getMaxJob(String principalId)
JobService
getMaxJob
in interface JobService
public 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 JobService
public int getJobCount(String principalId, Long jobNumber, String dept)
getJobCount
in interface JobService
public List<Job> getActiveLeaveJobs(String principalId, org.joda.time.LocalDate asOfDate)
JobService
getActiveLeaveJobs
in interface JobService
public BigDecimal getFteSumForJobs(List<? extends JobContract> jobs)
JobService
getFteSumForJobs
in interface JobService
public BigDecimal getFteSumForAllActiveLeaveEligibleJobs(String principalId, org.joda.time.LocalDate asOfDate)
JobService
getFteSumForAllActiveLeaveEligibleJobs
in interface JobService
public BigDecimal getStandardHoursSumForJobs(List<? extends JobContract> jobs)
JobService
getStandardHoursSumForJobs
in interface JobService
public List<Job> getAllActiveLeaveJobs(String principalId, org.joda.time.LocalDate asOfDate)
JobService
getAllActiveLeaveJobs
in interface JobService
public List<Job> getInactiveLeaveJobs(Long jobNumber, String principalId, org.joda.time.LocalDate endDate)
getInactiveLeaveJobs
in interface JobService
public List<Job> getAllInActiveLeaveJobsInRange(String principalId, org.joda.time.LocalDate endDate)
getAllInActiveLeaveJobsInRange
in interface JobService
public Job getMaxTimestampJob(String principalId)
getMaxTimestampJob
in interface JobService
public List<String> getPrincipalIdsInPosition(String positionNumber, org.joda.time.LocalDate asOfDate)
JobService
getPrincipalIdsInPosition
in interface JobService
public Job getNextInactiveJob(Job job)
getNextInactiveJob
in interface JobService
protected List<Job> toImmutable(List<JobBo> bos)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.