org.kuali.hr.lm.util
Class LeaveBlockAggregate

java.lang.Object
  extended by org.kuali.hr.lm.util.LeaveBlockAggregate

public class LeaveBlockAggregate
extends Object


Field Summary
 List<List<LeaveBlock>> dayLeaveBlockList
           
 
Constructor Summary
LeaveBlockAggregate(List<LeaveBlock> leaveBlocks, CalendarEntries leaveCalendarEntry)
           
LeaveBlockAggregate(List<LeaveBlock> leaveBlocks, CalendarEntries leaveCalendarEntry, LeaveCalendar leaveCalendar)
          Provides the option to refer to the time zone adjusted time for the current user.
LeaveBlockAggregate(List<LeaveBlock> leaveBlocks, CalendarEntries leaveCalendarEntry, List<org.joda.time.Interval> dayIntervals)
          build leaveBlockAggregate with given leaveBlocks, calendarEntry and dayIntervals dayIntervals with full week span is for Time Calendar
 
Method Summary
 List<List<LeaveBlock>> getDayLeaveBlockList()
           
 List<LeaveBlock> getFlattenedLeaveBlockList()
           
 LeaveCalendar getLeaveCalendar()
           
 CalendarEntries getleaveCalendarEntry()
           
 List<List<LeaveBlock>> getWeekLeaveBlocks(int week)
          Provides a way to access all of the leave blocks for a given week.
 int numberOfAggregatedWeeks()
           
 void setLeaveCalendar(LeaveCalendar leaveCalendar)
           
 void setleaveCalendarEntry(CalendarEntries leaveCalendarEntry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dayLeaveBlockList

public List<List<LeaveBlock>> dayLeaveBlockList
Constructor Detail

LeaveBlockAggregate

public LeaveBlockAggregate(List<LeaveBlock> leaveBlocks,
                           CalendarEntries leaveCalendarEntry,
                           LeaveCalendar leaveCalendar)
Provides the option to refer to the time zone adjusted time for the current user.

Parameters:
LeaveBlocks -
leaveCalendarEntry -
leaveCalendar -

LeaveBlockAggregate

public LeaveBlockAggregate(List<LeaveBlock> leaveBlocks,
                           CalendarEntries leaveCalendarEntry)

LeaveBlockAggregate

public LeaveBlockAggregate(List<LeaveBlock> leaveBlocks,
                           CalendarEntries leaveCalendarEntry,
                           List<org.joda.time.Interval> dayIntervals)
build leaveBlockAggregate with given leaveBlocks, calendarEntry and dayIntervals dayIntervals with full week span is for Time Calendar

Parameters:
LeaveBlocks -
leaveCalendarEntry -
dayIntervals -
Method Detail

getFlattenedLeaveBlockList

public List<LeaveBlock> getFlattenedLeaveBlockList()

getWeekLeaveBlocks

public List<List<LeaveBlock>> getWeekLeaveBlocks(int week)
Provides a way to access all of the leave blocks for a given week. Outer list is 0 indexed list representing days in a week. Inner List are all of the time blocks for that day. Ex. List> week0 = getWeekLeaveBlocks(0); List day0 = week0.get(0);

Parameters:
week -
Returns:

numberOfAggregatedWeeks

public int numberOfAggregatedWeeks()
Returns:
the total number of weeks that this object represents.

getDayLeaveBlockList

public List<List<LeaveBlock>> getDayLeaveBlockList()

getleaveCalendarEntry

public CalendarEntries getleaveCalendarEntry()

setleaveCalendarEntry

public void setleaveCalendarEntry(CalendarEntries leaveCalendarEntry)

getLeaveCalendar

public LeaveCalendar getLeaveCalendar()

setLeaveCalendar

public void setLeaveCalendar(LeaveCalendar leaveCalendar)


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