org.kuali.hr.time.timesummary.service
Class TimeSummaryServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.timesummary.service.TimeSummaryServiceImpl
All Implemented Interfaces:
TimeSummaryService

public class TimeSummaryServiceImpl
extends Object
implements TimeSummaryService


Constructor Summary
TimeSummaryServiceImpl()
           
 
Method Summary
 List<EarnGroupSection> getEarnGroupSections(TkTimeBlockAggregate tkTimeBlockAggregate, int numEntries, List<Boolean> dayArrangements, Date asOfDate)
          Aggregates timeblocks into the appropriate earngroup-> earncode -> assignment rows
 List<String> getHeaderForSummary(CalendarEntries cal, List<Boolean> dayArrangements)
          Handles the generation of the display header for the time summary.
protected  List<String> getSummaryHeader(CalendarEntries payCalEntry)
          Generate a list of string describing this pay calendar entry for the summary
 TimeSummary getTimeSummary(TimesheetDocument timesheetDocument)
          Fetch TimeSummary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSummaryServiceImpl

public TimeSummaryServiceImpl()
Method Detail

getTimeSummary

public TimeSummary getTimeSummary(TimesheetDocument timesheetDocument)
Description copied from interface: TimeSummaryService
Fetch TimeSummary

Specified by:
getTimeSummary in interface TimeSummaryService
Returns:

getEarnGroupSections

public List<EarnGroupSection> getEarnGroupSections(TkTimeBlockAggregate tkTimeBlockAggregate,
                                                   int numEntries,
                                                   List<Boolean> dayArrangements,
                                                   Date asOfDate)
Aggregates timeblocks into the appropriate earngroup-> earncode -> assignment rows

Parameters:
tkTimeBlockAggregate -
numEntries -
dayArrangements -
asOfDate -
Returns:

getSummaryHeader

protected List<String> getSummaryHeader(CalendarEntries payCalEntry)
Generate a list of string describing this pay calendar entry for the summary

Parameters:
payCalEntry -
Returns:

getHeaderForSummary

public List<String> getHeaderForSummary(CalendarEntries cal,
                                        List<Boolean> dayArrangements)
Handles the generation of the display header for the time summary.

Specified by:
getHeaderForSummary in interface TimeSummaryService
Parameters:
cal - The PayCalendarEntries object we are using to derive information.
dayArrangements - Container passed in to store the position of week / period aggregate sums
Returns:
An in-order string of days for this period that properly accounts for FLSA week boundaries in the pay period.


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