org.kuali.hr.time.flsa
Class FlsaDay

java.lang.Object
  extended by org.kuali.hr.time.flsa.FlsaDay

public class FlsaDay
extends Object


Constructor Summary
FlsaDay(org.joda.time.LocalDateTime flsaDate, List<TimeBlock> timeBlocks, List<LeaveBlock> leaveBlocks, org.joda.time.DateTimeZone timeZone)
           
 
Method Summary
 List<LeaveBlock> getAppliedLeaveBlocks()
           
 List<TimeBlock> getAppliedTimeBlocks()
           
 Map<String,List<LeaveBlock>> getEarnCodeToLeaveBlocks()
           
 Map<String,List<TimeBlock>> getEarnCodeToTimeBlocks()
           
 void remapLeaveHourDetails()
          This method will compute the mappings present for this object: earnCodeToTimeBlocks earnCodeToHours
 void remapTimeHourDetails()
          This method will compute the mappings present for this object: earnCodeToTimeBlocks earnCodeToHours
 void setAppliedLeaveBlocks(List<LeaveBlock> appliedLeaveBlocks)
           
 void setAppliedTimeBlocks(List<TimeBlock> appliedTimeBlocks)
           
 void setEarnCodeToLeaveBlocks(Map<String,List<LeaveBlock>> earnCodeToLeaveBlocks)
           
 void setEarnCodeToTimeBlocks(Map<String,List<TimeBlock>> earnCodeToTimeBlocks)
           
 void setLeaveBlocks(List<LeaveBlock> leaveBlocks)
          Handles the breaking apart of existing leave blocks around FLSA boundaries.
 void setTimeBlocks(List<TimeBlock> timeBlocks)
          Handles the breaking apart of existing time blocks around FLSA boundaries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlsaDay

public FlsaDay(org.joda.time.LocalDateTime flsaDate,
               List<TimeBlock> timeBlocks,
               List<LeaveBlock> leaveBlocks,
               org.joda.time.DateTimeZone timeZone)
Parameters:
flsaDate - A LocalDateTime because we want to be conscious of the relative nature of this flsa/window
timeBlocks -
timeZone - The timezone we are constructing, relative.
Method Detail

setTimeBlocks

public void setTimeBlocks(List<TimeBlock> timeBlocks)
Handles the breaking apart of existing time blocks around FLSA boundaries. This method will compare the FLSA interval against the timeblock interval to determine how many hours overlap. It will then examine the time hour details

Parameters:
timeBlocks - a sorted list of time blocks.

setLeaveBlocks

public void setLeaveBlocks(List<LeaveBlock> leaveBlocks)
Handles the breaking apart of existing leave blocks around FLSA boundaries. This method will compare the FLSA interval against the leaveblock interval to determine how many hours overlap. It will then examine the leave hour details

Parameters:
leaveBlocks - a sorted list of leave blocks.

remapTimeHourDetails

public void remapTimeHourDetails()
This method will compute the mappings present for this object: earnCodeToTimeBlocks earnCodeToHours


remapLeaveHourDetails

public void remapLeaveHourDetails()
This method will compute the mappings present for this object: earnCodeToTimeBlocks earnCodeToHours


getEarnCodeToTimeBlocks

public Map<String,List<TimeBlock>> getEarnCodeToTimeBlocks()

setEarnCodeToTimeBlocks

public void setEarnCodeToTimeBlocks(Map<String,List<TimeBlock>> earnCodeToTimeBlocks)

getAppliedTimeBlocks

public List<TimeBlock> getAppliedTimeBlocks()

setAppliedTimeBlocks

public void setAppliedTimeBlocks(List<TimeBlock> appliedTimeBlocks)

getEarnCodeToLeaveBlocks

public Map<String,List<LeaveBlock>> getEarnCodeToLeaveBlocks()

setEarnCodeToLeaveBlocks

public void setEarnCodeToLeaveBlocks(Map<String,List<LeaveBlock>> earnCodeToLeaveBlocks)

getAppliedLeaveBlocks

public List<LeaveBlock> getAppliedLeaveBlocks()

setAppliedLeaveBlocks

public void setAppliedLeaveBlocks(List<LeaveBlock> appliedLeaveBlocks)


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