org.kuali.hr.lm.accrual.service
Interface AccrualService

All Known Implementing Classes:
AccrualServiceImpl

public interface AccrualService


Method Summary
 RateRangeAggregate buildRateRangeAggregate(String principalId, Date startDate, Date endDate)
          build a RateRangeAggregate with given parameters
 void calculateFutureAccrualUsingPlanningMonth(String principalId, Date asOfDate)
          calculate future accrual for given principal id
 Date getNextAccrualIntervalDate(String earnInterval, Date aDate)
          get the accrual interval date of the next accrual period with given parameters
 Date getPreviousAccrualIntervalDate(String earnInterval, Date aDate)
          get the accrual interval date of the previous accrual period with given parameters
 int getWorkDaysInAccrualInterval(String earnInterval, Date aDate)
          calculate # of work days in an accrual period
 boolean isDateAtEarnInterval(Date aDate, String earnInterval)
          determine if the given date is at the earn interval
 boolean isEmpoyeementFutureStatusChanged(String principalId, Date startDate, Date endDate)
          determine if the employee's future status is changed during the range of given Calendar Entry
 void runAccrual(List<String> principalIds)
           
 void runAccrual(String principalId)
           
 void runAccrual(String principalId, Date startDate, Date endDate, boolean recordRanData)
           
 void runAccrual(String principalId, Date startDate, Date endDate, boolean recordRanData, String runAsPrincipalId)
           
 boolean statusChangedSinceLastRun(String principalId)
           
 

Method Detail

runAccrual

void runAccrual(String principalId)

runAccrual

void runAccrual(String principalId,
                Date startDate,
                Date endDate,
                boolean recordRanData)

runAccrual

void runAccrual(String principalId,
                Date startDate,
                Date endDate,
                boolean recordRanData,
                String runAsPrincipalId)

runAccrual

void runAccrual(List<String> principalIds)

isDateAtEarnInterval

boolean isDateAtEarnInterval(Date aDate,
                             String earnInterval)
determine if the given date is at the earn interval

Parameters:
aDate -
earnInterval -
Returns:
boolean

buildRateRangeAggregate

RateRangeAggregate buildRateRangeAggregate(String principalId,
                                           Date startDate,
                                           Date endDate)
build a RateRangeAggregate with given parameters

Parameters:
principalId -
startDate -
endDate -
Returns:
boolean

isEmpoyeementFutureStatusChanged

boolean isEmpoyeementFutureStatusChanged(String principalId,
                                         Date startDate,
                                         Date endDate)
determine if the employee's future status is changed during the range of given Calendar Entry

Parameters:
principalId -
startDate -
endDate -
Returns:
boolean

calculateFutureAccrualUsingPlanningMonth

void calculateFutureAccrualUsingPlanningMonth(String principalId,
                                              Date asOfDate)
calculate future accrual for given principal id

Parameters:
principalId -
asOfDate -

getPreviousAccrualIntervalDate

Date getPreviousAccrualIntervalDate(String earnInterval,
                                    Date aDate)
get the accrual interval date of the previous accrual period with given parameters

Parameters:
earnInterval -
aDate -
Returns:

getNextAccrualIntervalDate

Date getNextAccrualIntervalDate(String earnInterval,
                                Date aDate)
get the accrual interval date of the next accrual period with given parameters

Parameters:
earnInterval -
aDate -
Returns:

getWorkDaysInAccrualInterval

int getWorkDaysInAccrualInterval(String earnInterval,
                                 Date aDate)
calculate # of work days in an accrual period

Parameters:
earnInterval -
aDate -
Returns:
int

statusChangedSinceLastRun

boolean statusChangedSinceLastRun(String principalId)


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