org.kuali.kpme.tklm.leave.block
Class LeaveBlockAggregate

java.lang.Object
  extended by org.kuali.kpme.tklm.leave.block.LeaveBlockAggregate
All Implemented Interfaces:
LeaveBlockAggregateContract

public class LeaveBlockAggregate
extends Object
implements LeaveBlockAggregateContract


Field Summary
 List<List<LeaveBlock>> dayLeaveBlockList
           
 
Constructor Summary
LeaveBlockAggregate(List<LeaveBlock> leaveBlocks, CalendarEntry leaveCalendarEntry)
           
LeaveBlockAggregate(List<LeaveBlock> leaveBlocks, CalendarEntry leaveCalendarEntry, LeaveCalendar leaveCalendar)
          Provides the option to refer to the time zone adjusted time for the current user.
LeaveBlockAggregate(List<LeaveBlock> leaveBlocks, CalendarEntry 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()
          The assignment class associated with the LeaveBlockRenderer
 List<LeaveBlock> getFlattenedLeaveBlockList()
          The dayLeaveBlockListist that has been sorted by timestamp for the LeaveBlockAggregateContract
 LeaveCalendar getLeaveCalendar()
          The LeaveCalendar object associated with the LeaveBlockAggregate
 CalendarEntry getleaveCalendarEntry()
          The CalendarEntry object associated with the LeaveBlockAggregate
 List<List<LeaveBlock>> getWeekLeaveBlocks(int week)
          Provides a way to access all of the leave blocks for a given week.
 int numberOfAggregatedWeeks()
          The total number of weeks that the LeaveBlockAggregate represents
 void setLeaveCalendar(LeaveCalendar leaveCalendar)
           
 void setleaveCalendarEntry(CalendarEntry 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,
                           CalendarEntry 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,
                           CalendarEntry leaveCalendarEntry)

LeaveBlockAggregate

public LeaveBlockAggregate(List<LeaveBlock> leaveBlocks,
                           CalendarEntry 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()
Description copied from interface: LeaveBlockAggregateContract
The dayLeaveBlockListist that has been sorted by timestamp for the LeaveBlockAggregateContract

a sorted dayLeaveBlockList of a LeaveBlockAggregate

Specified by:
getFlattenedLeaveBlockList in interface LeaveBlockAggregateContract
Returns:
a sorted dayLeaveBlockList for LeaveBlockAggregate

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);

Specified by:
getWeekLeaveBlocks in interface LeaveBlockAggregateContract
Parameters:
week -
Returns:

numberOfAggregatedWeeks

public int numberOfAggregatedWeeks()
Description copied from interface: LeaveBlockAggregateContract
The total number of weeks that the LeaveBlockAggregate represents

the total number of weeks of a LeaveBlockAggregate

Specified by:
numberOfAggregatedWeeks in interface LeaveBlockAggregateContract
Returns:
the total number of weeks that this object represents.

getDayLeaveBlockList

public List<List<LeaveBlock>> getDayLeaveBlockList()
The assignment class associated with the LeaveBlockRenderer

dayLeaveBlockList of an LeaveBlockRenderer

Specified by:
getDayLeaveBlockList in interface LeaveBlockAggregateContract
Returns:
dayLeaveBlockList for LeaveBlockRenderer

getleaveCalendarEntry

public CalendarEntry getleaveCalendarEntry()
Description copied from interface: LeaveBlockAggregateContract
The CalendarEntry object associated with the LeaveBlockAggregate

leaveCalendarEntry of a LeaveBlockAggregate

Specified by:
getleaveCalendarEntry in interface LeaveBlockAggregateContract
Returns:
leaveCalendarEntry for LeaveBlockAggregate

setleaveCalendarEntry

public void setleaveCalendarEntry(CalendarEntry leaveCalendarEntry)

getLeaveCalendar

public LeaveCalendar getLeaveCalendar()
Description copied from interface: LeaveBlockAggregateContract
The LeaveCalendar object associated with the LeaveBlockAggregate

leaveCalendar of a LeaveBlockAggregate

Specified by:
getLeaveCalendar in interface LeaveBlockAggregateContract
Returns:
leaveCalendar for LeaveBlockAggregate

setLeaveCalendar

public void setLeaveCalendar(LeaveCalendar leaveCalendar)


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