org.kuali.hr.lm.util
Class LeaveBlockAggregate
java.lang.Object
org.kuali.hr.lm.util.LeaveBlockAggregate
public class LeaveBlockAggregate
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dayLeaveBlockList
public List<List<LeaveBlock>> dayLeaveBlockList
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
-
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.