org.kuali.hr.time.accrual.service
Class TimeOffAccrualServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.accrual.service.TimeOffAccrualServiceImpl
All Implemented Interfaces:
TimeOffAccrualService

public class TimeOffAccrualServiceImpl
extends Object
implements TimeOffAccrualService


Field Summary
static String ACCRUAL_CATEGORY_KEY
           
static String ACCRUAL_NAME_KEY
           
static String EFF_DATE_KEY
           
static String HOURS_ACCRUED_KEY
           
static String HOURS_ADJUST_KEY
           
static String HOURS_TAKEN_KEY
           
static String TOTAL_HOURS_KEY
           
static String YEARLY_CARRYOVER_KEY
           
 
Constructor Summary
TimeOffAccrualServiceImpl()
           
 
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
 void setTimeOffAccrualDao(TimeOffAccrualDao timeOffAccrualDao)
           
 BigDecimal totalForAccrCate(String accrualCategory, List<TimeBlock> tbList, List<TimeBlock> warningTbs)
           
 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 earnCode)
          Validate the accrual hours for the time blocks by earncode of the given TimesheetDocument and returns a JSONArray of warning messages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCRUAL_CATEGORY_KEY

public static final String ACCRUAL_CATEGORY_KEY
See Also:
Constant Field Values

ACCRUAL_NAME_KEY

public static final String ACCRUAL_NAME_KEY
See Also:
Constant Field Values

YEARLY_CARRYOVER_KEY

public static final String YEARLY_CARRYOVER_KEY
See Also:
Constant Field Values

HOURS_ACCRUED_KEY

public static final String HOURS_ACCRUED_KEY
See Also:
Constant Field Values

HOURS_TAKEN_KEY

public static final String HOURS_TAKEN_KEY
See Also:
Constant Field Values

HOURS_ADJUST_KEY

public static final String HOURS_ADJUST_KEY
See Also:
Constant Field Values

TOTAL_HOURS_KEY

public static final String TOTAL_HOURS_KEY
See Also:
Constant Field Values

EFF_DATE_KEY

public static final String EFF_DATE_KEY
See Also:
Constant Field Values
Constructor Detail

TimeOffAccrualServiceImpl

public TimeOffAccrualServiceImpl()
Method Detail

setTimeOffAccrualDao

public void setTimeOffAccrualDao(TimeOffAccrualDao timeOffAccrualDao)

getTimeOffAccruals

public List<TimeOffAccrual> getTimeOffAccruals(String principalId,
                                               Date asOfDate)
Specified by:
getTimeOffAccruals in interface TimeOffAccrualService

getTimeOffAccrualsCalc

public List<Map<String,Object>> getTimeOffAccrualsCalc(String principalId,
                                                       Date asOfDate)
Description copied from interface: TimeOffAccrualService
Get a list of maps that represents a persons accrual balances

Specified by:
getTimeOffAccrualsCalc in interface TimeOffAccrualService
Returns:

validateAccrualHoursLimit

public List<String> validateAccrualHoursLimit(TimesheetDocument timesheetDocument)
Description copied from interface: TimeOffAccrualService
Validate the accrual hours for the time blocks of the given TimesheetDocument and returns a JSONArray of warning messages

Specified by:
validateAccrualHoursLimit in interface TimeOffAccrualService
Returns:
JSONArray

validateAccrualHoursLimit

public List<String> validateAccrualHoursLimit(String pId,
                                              List<TimeBlock> tbList,
                                              Date asOfDate)
Specified by:
validateAccrualHoursLimit in interface TimeOffAccrualService

validateAccrualHoursLimitByEarnCode

public List<String> validateAccrualHoursLimitByEarnCode(TimesheetDocument timesheetDocument,
                                                        String earnCode)
Description copied from interface: TimeOffAccrualService
Validate the accrual hours for the time blocks by earncode of the given TimesheetDocument and returns a JSONArray of warning messages

Specified by:
validateAccrualHoursLimitByEarnCode in interface TimeOffAccrualService
Returns:
JSONArray

totalForAccrCate

public BigDecimal totalForAccrCate(String accrualCategory,
                                   List<TimeBlock> tbList,
                                   List<TimeBlock> warningTbs)

getTimeOffAccrual

public TimeOffAccrual getTimeOffAccrual(Long laTimeOffAccrualId)
Description copied from interface: TimeOffAccrualService
Fetch time off accrual as of a particular unique id

Specified by:
getTimeOffAccrual in interface TimeOffAccrualService
Returns:

getTimeOffAccrualCount

public int getTimeOffAccrualCount(String accrualCategory,
                                  Date effectiveDate,
                                  String principalId,
                                  String lmAccrualId)
Description copied from interface: TimeOffAccrualService
get the count of TimeOffAccrual by given parameters\

Specified by:
getTimeOffAccrualCount in interface TimeOffAccrualService
Returns:
int

getTimeOffAccruals

public List<TimeOffAccrual> getTimeOffAccruals(String principalId,
                                               String accrualCategory)
Specified by:
getTimeOffAccruals in interface TimeOffAccrualService


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