public interface JobService
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<Job> 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 |
getPrimaryJob(String principalId,
org.joda.time.LocalDate asOfDate)
For a given principal ID, the job that is marked "primary" is returned
here.
|
List<String> |
getPrincipalIdsInPosition(String positionNbr,
org.joda.time.LocalDate asOfDate)
Returns all of the principal ids actively particpating in a job in the given position number
|
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
|
@CacheEvict(value={"http://kpme.kuali.org/core/Job","http://kpme.kuali.org/core/Assignment","http://kpme.kuali.org/core/CalendarBlockPermission"}, allEntries=true) void saveOrUpdate(Job job)
job
- @CacheEvict(value={"http://kpme.kuali.org/core/Job","http://kpme.kuali.org/core/Assignment","http://kpme.kuali.org/core/CalendarBlockPermission"}, allEntries=true) void saveOrUpdate(List<Job> jobList)
jobList
- @Cacheable(value="http://kpme.kuali.org/core/Job", key="\'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<Job> getJobs(String principalId, org.joda.time.LocalDate asOfDate)
principalId
- asOfDate
- @Cacheable(value="http://kpme.kuali.org/core/Job", key="\'principalId=\' + #p0 + \'|\' + \'jobNumber=\' + #p1 + \'|\' + \'asOfDate=\' + #p2") Job getJob(String principalId, Long jobNumber, org.joda.time.LocalDate asOfDate)
@Cacheable(value="http://kpme.kuali.org/core/Job", key="\'principalId=\' + #p0 + \'|\' + \'jobNumber=\' + #p1 + \'|\' + \'asOfDate=\' + #p2 + \'|\' + \'chkDetails=\' + #p3") Job getJob(String principalId, Long jobNumber, org.joda.time.LocalDate asOfDate, boolean chkDetails)
@Cacheable(value="http://kpme.kuali.org/core/Job", key="\'{getPrimaryJob}\' + \'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") Job getPrimaryJob(String principalId, org.joda.time.LocalDate asOfDate)
principalId
- The principal under investigationasOfDate
- Run the request as of this date.@Cacheable(value="http://kpme.kuali.org/core/Job", key="\'hrPayType=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<Job> getActiveJobsForPayType(String hrPayType, org.joda.time.LocalDate asOfDate)
hrPayType
- asOfDate
- @Cacheable(value="http://kpme.kuali.org/core/Job", key="\'hrJobId=\' + #p0") Job getJob(String hrJobId)
hrJobId
- @Cacheable(value="http://kpme.kuali.org/core/Job", key="\'principalId=\' + #p0") Job getMaxJob(String principalId)
principalId
- 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)
int getJobCount(String principalId, Long jobNumber, String dept)
List<Job> getActiveLeaveJobs(String principalId, org.joda.time.LocalDate asOfDate)
principalId
- asOfDate
- BigDecimal getFteSumForJobs(List<Job> jobs)
jobs
- BigDecimal getFteSumForAllActiveLeaveEligibleJobs(String PrincipalId, org.joda.time.LocalDate asOfDate)
PrincipalId
- BigDecimal getStandardHoursSumForJobs(List<Job> jobs)
jobs
- List<Job> getAllActiveLeaveJobs(String principalId, org.joda.time.LocalDate asOfDate)
principalId
- asOfDate
- List<Job> getInactiveLeaveJobs(Long jobNumber, String principalId, org.joda.time.LocalDate endDate)
List<Job> getAllInActiveLeaveJobsInRange(String principalId, org.joda.time.LocalDate endDate)
Job getMaxTimestampJob(String principalId)
@Cacheable(value="http://kpme.kuali.org/core/Job", key="\'positionNumber=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<String> getPrincipalIdsInPosition(String positionNbr, org.joda.time.LocalDate asOfDate)
positionNumber
- asOfDate
- Copyright © 2004–2014 The Kuali Foundation. All rights reserved.