org.kuali.hr.time.accrual.service
Interface TimeOffAccrualService

All Known Implementing Classes:
TimeOffAccrualServiceImpl

public interface TimeOffAccrualService


Method Summary
 TimeOffAccrual getTimeOffAccrual(Long laTimeOffAccrualId)
          Fetch time off accrual as of a particular unique id
 int getTimeOffAccrualCount(String accrualCategory, Date effectiveDate, String principalId, String lmAccrualId)
          get the count of TimeOffAccrual by given parameters\
 List<TimeOffAccrual> getTimeOffAccruals(String principalId, Date asOfDate)
           
 List<TimeOffAccrual> getTimeOffAccruals(String principalId, String accrualCategory)
           
 List<Map<String,Object>> getTimeOffAccrualsCalc(String principalId, Date asOfDate)
          Get a list of maps that represents a persons accrual balances
 List<String> validateAccrualHoursLimit(String pId, List<TimeBlock> tbList, Date asOfDate)
           
 List<String> validateAccrualHoursLimit(TimesheetDocument timesheetDocument)
          Validate the accrual hours for the time blocks of the given TimesheetDocument and returns a JSONArray of warning messages
 List<String> validateAccrualHoursLimitByEarnCode(TimesheetDocument timesheetDocument, String selectEarnCode)
          Validate the accrual hours for the time blocks by earncode of the given TimesheetDocument and returns a JSONArray of warning messages
 

Method Detail

getTimeOffAccrualsCalc

@Cacheable(value="KPME/TimeOffAccrual",
           key="\'{getTimeOffAccrualsCalc}\' + \'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
List<Map<String,Object>> getTimeOffAccrualsCalc(String principalId,
                                                          Date asOfDate)
Get a list of maps that represents a persons accrual balances

Parameters:
principalId -
asOfDate -
Returns:

validateAccrualHoursLimit

List<String> validateAccrualHoursLimit(TimesheetDocument timesheetDocument)
Validate the accrual hours for the time blocks of the given TimesheetDocument and returns a JSONArray of warning messages

Parameters:
timesheetDocument -
Returns:
JSONArray

validateAccrualHoursLimit

List<String> validateAccrualHoursLimit(String pId,
                                       List<TimeBlock> tbList,
                                       Date asOfDate)

validateAccrualHoursLimitByEarnCode

List<String> validateAccrualHoursLimitByEarnCode(TimesheetDocument timesheetDocument,
                                                 String selectEarnCode)
Validate the accrual hours for the time blocks by earncode of the given TimesheetDocument and returns a JSONArray of warning messages

Parameters:
timesheetDocument -
Returns:
JSONArray

getTimeOffAccrual

@Cacheable(value="KPME/TimeOffAccrual",
           key="\'laTimeOffAccrualId=\' + #p0")
TimeOffAccrual getTimeOffAccrual(Long laTimeOffAccrualId)
Fetch time off accrual as of a particular unique id

Parameters:
laTimeOffAccrualId -
Returns:

getTimeOffAccruals

@Cacheable(value="KPME/TimeOffAccrual",
           key="\'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
List<TimeOffAccrual> getTimeOffAccruals(String principalId,
                                                  Date asOfDate)

getTimeOffAccrualCount

int getTimeOffAccrualCount(String accrualCategory,
                           Date effectiveDate,
                           String principalId,
                           String lmAccrualId)
get the count of TimeOffAccrual by given parameters\

Parameters:
accrualCategory -
effectiveDate -
principalId -
lmAccrualId -
Returns:
int

getTimeOffAccruals

List<TimeOffAccrual> getTimeOffAccruals(String principalId,
                                        String accrualCategory)


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