org.kuali.hr.job.service
Class JobServiceImpl

java.lang.Object
  extended by org.kuali.hr.job.service.JobServiceImpl
All Implemented Interfaces:
JobService

public class JobServiceImpl
extends Object
implements JobService

Represents an implementation of JobService.


Constructor Summary
JobServiceImpl()
           
 
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 payPeriodEndDate)
          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
 void setJobDao(JobDao jobDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobServiceImpl

public JobServiceImpl()
Method Detail

saveOrUpdate

public void saveOrUpdate(Job job)
Description copied from interface: JobService
Updates or saves a job

Specified by:
saveOrUpdate in interface JobService

saveOrUpdate

public void saveOrUpdate(List<Job> jobList)
Description copied from interface: JobService
Updates or saves a list of jobs

Specified by:
saveOrUpdate in interface JobService

setJobDao

public void setJobDao(JobDao jobDao)

getJobs

public List<Job> getJobs(String principalId,
                         Date asOfDate)
Description copied from interface: JobService
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().

Specified by:
getJobs in interface JobService
Returns:

getJob

public Job getJob(String principalId,
                  Long jobNumber,
                  Date asOfDate)
Description copied from interface: JobService
Provides a job by specific job number, principal ID and as of Date combination.

Specified by:
getJob in interface JobService

getPrimaryJob

public Job getPrimaryJob(String principalId,
                         Date payPeriodEndDate)
Description copied from interface: JobService
For a given principal ID, the job that is marked "primary" is returned here.

Specified by:
getPrimaryJob in interface JobService
Parameters:
principalId - The principal under investigation
payPeriodEndDate - Run the request as of this date.
Returns:

getJob

public Job getJob(String principalId,
                  Long jobNumber,
                  Date asOfDate,
                  boolean chkDetails)
Description copied from interface: JobService
Provides a job by specific job number, principal ID and as of Date combination, and check details will throw error if required.

Specified by:
getJob in interface JobService

getActiveJobsForPosition

public List<Job> getActiveJobsForPosition(String positionNbr,
                                          Date asOfDate)
Specified by:
getActiveJobsForPosition in interface JobService
Returns:

getActiveJobsForPayType

public List<Job> getActiveJobsForPayType(String hrPayType,
                                         Date asOfDate)
Specified by:
getActiveJobsForPayType in interface JobService
Returns:

getJob

public Job getJob(String hrJobId)
Description copied from interface: JobService
Get job by the unique id

Specified by:
getJob in interface JobService
Returns:

getMaxJob

public Job getMaxJob(String principalId)
Description copied from interface: JobService
Get the max jobnumber job for this principal

Specified by:
getMaxJob in interface JobService
Returns:

getJobs

public 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)
Specified by:
getJobs in interface JobService

getJobCount

public int getJobCount(String principalId,
                       Long jobNumber,
                       String dept)
Specified by:
getJobCount in interface JobService

getStandardHoursSumForJobs

public BigDecimal getStandardHoursSumForJobs(List<Job> jobs)
Description copied from interface: JobService
Get sum of standard hours of given jobs

Specified by:
getStandardHoursSumForJobs in interface JobService
Returns:


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