public interface AccrualService
Modifier and Type | Method and Description |
---|---|
RateRangeAggregateContract |
buildRateRangeAggregate(String principalId,
org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate)
build a RateRangeAggregate with given parameters
|
void |
calculateFutureAccrualUsingPlanningMonth(String principalId,
org.joda.time.LocalDate asOfDate,
String string)
calculate future accrual for given principal id
|
BigDecimal |
getAccruedBalanceForPrincipal(String principalId,
AccrualCategoryContract accrualCategory,
org.joda.time.LocalDate asOfDate)
Retreives the principal's balance on the current calendar for the given accrual category through the date supplied.
|
BigDecimal |
getApprovedBalanceForPrincipal(String principalId,
AccrualCategoryContract accrualCategory,
org.joda.time.LocalDate asOfDate) |
org.joda.time.DateTime |
getNextAccrualIntervalDate(String earnInterval,
org.joda.time.DateTime aDate)
get the accrual interval date of the next accrual period with given parameters
|
org.joda.time.DateTime |
getNextIntervalDate(org.joda.time.DateTime aDate,
String earnInterval,
String payCalName,
Map<String,List<CalendarEntry>> aMap) |
org.joda.time.DateTime |
getPreviousAccrualIntervalDate(String earnInterval,
org.joda.time.DateTime aDate)
get the accrual interval date of the previous accrual period with given parameters
|
int |
getWorkDaysInAccrualInterval(String earnInterval,
org.joda.time.DateTime aDate)
calculate # of work days in an accrual period
|
boolean |
isDateAtEarnInterval(org.joda.time.LocalDate aDate,
String earnInterval)
determine if the given date is at the earn interval
|
boolean |
isEmpoyeementFutureStatusChanged(String principalId,
org.joda.time.DateTime startDate,
org.joda.time.DateTime 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,
org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate,
boolean recordRanData) |
void |
runAccrual(String principalId,
org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate,
boolean recordRanData,
String runAsPrincipalId) |
void |
runAccrualForLeavePlan(LeavePlanContract aLeavePlan,
org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate,
boolean recordRanData) |
boolean |
statusChangedSinceLastRun(String principalId) |
void runAccrual(String principalId)
void runAccrual(String principalId, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, boolean recordRanData)
void runAccrual(String principalId, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, boolean recordRanData, String runAsPrincipalId)
void runAccrual(List<String> principalIds)
void runAccrualForLeavePlan(LeavePlanContract aLeavePlan, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, boolean recordRanData)
boolean isDateAtEarnInterval(org.joda.time.LocalDate aDate, String earnInterval)
aDate
- earnInterval
- RateRangeAggregateContract buildRateRangeAggregate(String principalId, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate)
principalId
- startDate
- endDate
- boolean isEmpoyeementFutureStatusChanged(String principalId, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate)
principalId
- startDate
- endDate
- void calculateFutureAccrualUsingPlanningMonth(String principalId, org.joda.time.LocalDate asOfDate, String string)
principalId
- asOfDate
- string
- org.joda.time.DateTime getPreviousAccrualIntervalDate(String earnInterval, org.joda.time.DateTime aDate)
earnInterval
- aDate
- org.joda.time.DateTime getNextAccrualIntervalDate(String earnInterval, org.joda.time.DateTime aDate)
earnInterval
- aDate
- int getWorkDaysInAccrualInterval(String earnInterval, org.joda.time.DateTime aDate)
earnInterval
- aDate
- boolean statusChangedSinceLastRun(String principalId)
BigDecimal getAccruedBalanceForPrincipal(String principalId, AccrualCategoryContract accrualCategory, org.joda.time.LocalDate asOfDate)
principalId
- The id of the principalaccrualCategory
- The accrual category the balance is being requested ofasOfDate
- Exception
BigDecimal getApprovedBalanceForPrincipal(String principalId, AccrualCategoryContract accrualCategory, org.joda.time.LocalDate asOfDate)
org.joda.time.DateTime getNextIntervalDate(org.joda.time.DateTime aDate, String earnInterval, String payCalName, Map<String,List<CalendarEntry>> aMap)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.