org.kuali.hr.job.service
Interface JobService

All Known Implementing Classes:
JobServiceImpl

public interface JobService


Method Summary
 List<Job> getActiveJobsForPayType(String hrPayType, Date asOfDate)
           
 List<Job> getActiveJobsForPosition(String positionNbr, Date asOfDate)
           
 List<Job> getActiveLeaveJobs(String principalId, Date asOfDate)
          Get list of active jobs eligible for leave for given principal and date
 List<Job> getAllActiveLeaveJobs(String principalId, Date asOfDate)
          Get list of all active jobs eligible for leave for given principal and date range
 List<Job> getAllInActiveLeaveJobsInRange(String principalId, Date startDate, Date endDate)
           
 BigDecimal getFteSumForAllActiveLeaveEligibleJobs(String PrincipalId, Date 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, Date startDate, Date endDate)
           
 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 getMaxTimestampJob(String principalId)
           
 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

saveOrUpdate

@CacheEvict(value="KPME/Job",
            allEntries=true)
void saveOrUpdate(Job job)
Updates or saves a job

Parameters:
job -

saveOrUpdate

@CacheEvict(value="KPME/Job",
            allEntries=true)
void saveOrUpdate(List<Job> jobList)
Updates or saves a list of jobs

Parameters:
jobList -

getJobs

@Cacheable(value="KPME/Job",
           key="\'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
List<Job> getJobs(String principalId,
                            Date asOfDate)
Provides a list of current jobs that are valid relative to the provided effective date. Timestamp of row creation is taken into account when two rows with the same job number have the same effective date. Assignments are NOT populated on this object. We may want to consider removing getAssignments().

Parameters:
principalId -
asOfDate -
Returns:

getJob

@Cacheable(value="KPME/Job",
           key="\'principalId=\' + #p0 + \'|\' + \'jobNumber=\' + #p1 + \'|\' + \'asOfDate=\' + #p2")
Job getJob(String principalId,
                     Long jobNumber,
                     Date asOfDate)
Provides a job by specific job number, principal ID and as of Date combination.


getJob

@Cacheable(value="KPME/Job",
           key="\'principalId=\' + #p0 + \'|\' + \'jobNumber=\' + #p1 + \'|\' + \'asOfDate=\' + #p2 + \'|\' + \'chkDetails=\' + #p3")
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.


getPrimaryJob

@Cacheable(value="KPME/Job",
           key="\'{getPrimaryJob}\' + \'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
Job getPrimaryJob(String principalId,
                            Date asOfDate)
For a given principal ID, the job that is marked "primary" is returned here.

Parameters:
principalId - The principal under investigation
asOfDate - Run the request as of this date.
Returns:

getActiveJobsForPosition

@Cacheable(value="KPME/Job",
           key="\'positionNbr=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
List<Job> getActiveJobsForPosition(String positionNbr,
                                             Date asOfDate)
Parameters:
positionNbr -
asOfDate -
Returns:

getActiveJobsForPayType

@Cacheable(value="KPME/Job",
           key="\'hrPayType=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
List<Job> getActiveJobsForPayType(String hrPayType,
                                            Date asOfDate)
Parameters:
hrPayType -
asOfDate -
Returns:

getJob

@Cacheable(value="KPME/Job",
           key="\'hrJobId=\' + #p0")
Job getJob(String hrJobId)
Get job by the unique id

Parameters:
hrJobId -
Returns:

getMaxJob

@Cacheable(value="KPME/Job",
           key="\'principalId=\' + #p0")
Job getMaxJob(String principalId)
Get the max jobnumber job for this principal

Parameters:
principalId -
Returns:

getJobs

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)

getJobCount

int getJobCount(String principalId,
                Long jobNumber,
                String dept)

getActiveLeaveJobs

List<Job> getActiveLeaveJobs(String principalId,
                             Date asOfDate)
Get list of active jobs eligible for leave for given principal and date

Parameters:
principalId -
asOfDate -
Returns:

getFteSumForJobs

BigDecimal getFteSumForJobs(List<Job> jobs)
Get sum of fte of given jobs

Parameters:
jobs -
Returns:

getFteSumForAllActiveLeaveEligibleJobs

BigDecimal getFteSumForAllActiveLeaveEligibleJobs(String PrincipalId,
                                                  Date asOfDate)
Returns FTE for all active LM eligible jobs.

Parameters:
PrincipalId -
Returns:

getStandardHoursSumForJobs

BigDecimal getStandardHoursSumForJobs(List<Job> jobs)
Get sum of standard hours of given jobs

Parameters:
jobs -
Returns:

getAllActiveLeaveJobs

List<Job> getAllActiveLeaveJobs(String principalId,
                                Date asOfDate)
Get list of all active jobs eligible for leave for given principal and date range

Parameters:
principalId -
asOfDate -
Returns:

getInactiveLeaveJobs

List<Job> getInactiveLeaveJobs(Long jobNumber,
                               Date startDate,
                               Date endDate)

getAllInActiveLeaveJobsInRange

List<Job> getAllInActiveLeaveJobsInRange(String principalId,
                                         Date startDate,
                                         Date endDate)

getMaxTimestampJob

Job getMaxTimestampJob(String principalId)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.