public class TkTimeBlockAggregate extends Object implements TkTimeBlockAggregateContract
Constructor and Description |
---|
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
CalendarEntry payCalendarEntry)
Defaults to using SYSTEM time zone.
|
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
CalendarEntry payCalendarEntry,
Calendar payCalendar)
Defaults to using SYSTEM time zone.
|
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
CalendarEntry payCalendarEntry,
Calendar payCalendar,
boolean useUserTimeZone)
Provides the option to refer to the time zone adjusted time for the current
user.
|
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
CalendarEntry payCalendarEntry,
Calendar payCalendar,
boolean useUserTimeZone,
org.joda.time.DateTimeZone userTimeZone) |
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
CalendarEntry payCalendarEntry,
Calendar payCalendar,
boolean useUserTimeZone,
List<org.joda.time.Interval> dayIntervals) |
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
List<LeaveBlock> leaveBlocks,
CalendarEntry payCalendarEntry)
Defaults to using SYSTEM time zone.
|
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
List<LeaveBlock> leaveBlocks,
CalendarEntry payCalendarEntry,
Calendar payCalendar)
Defaults to using SYSTEM time zone.
|
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
List<LeaveBlock> leaveBlocks,
CalendarEntry payCalendarEntry,
Calendar payCalendar,
boolean useUserTimeZone)
Provides the option to refer to the time zone adjusted time for the current
user.
|
TkTimeBlockAggregate(List<TimeBlock> timeBlocks,
List<LeaveBlock> leaveBlocks,
CalendarEntry payCalendarEntry,
Calendar payCalendar,
boolean useUserTimeZone,
List<org.joda.time.Interval> dayIntervals) |
Modifier and Type | Method and Description |
---|---|
static TkTimeBlockAggregate |
combineTimeAndLeaveAggregates(TkTimeBlockAggregate tbAggregate,
LeaveBlockAggregate lbAggregate) |
List<List<LeaveBlock>> |
getDayLeaveBlockList()
The list of day LeaveBlock objects associated with the TkTimeBlockAggregate
|
List<List<TimeBlock>> |
getDayTimeBlockList()
The list of day TimeBlock objects associated with the TkTimeBlockAggregate
|
List<LeaveBlock> |
getFlattenedLeaveBlockList()
The list of LeaveBlock objects associated with the TkTimeBlockAggregate
|
List<TimeBlock> |
getFlattenedTimeBlockList()
The list of TimeBlock objects associated with the TkTimeBlockAggregate
|
List<FlsaWeek> |
getFlsaWeeks(org.joda.time.DateTimeZone zone,
int flsaDayConstant,
boolean isFlsaDayPassed)
When consuming these weeks, you must be aware that you could be on a
virtual day, ie noon to noon schedule and have your FLSA time start
before the virtual day start,
but still have a full 7 days for your week.
|
List<List<FlsaWeek>> |
getFlsaWeeks(org.joda.time.DateTimeZone zone,
String principalId)
TODO: Put a better comment
The list of flsa weeks associated with the TkTimeBlockAggregate
|
Calendar |
getPayCalendar()
The Calendar object associated with the TkTimeBlockAggregate
|
CalendarEntry |
getPayCalendarEntry()
The CalendarEntry object associated with the TkTimeBlockAggregate
|
List<List<LeaveBlock>> |
getWeekLeaveBlocks(int week)
Provides a way to access all of the leave blocks for a given week.
|
List<List<TimeBlock>> |
getWeekTimeBlocks(int week)
Provides a way to access all of the time blocks for a given week.
|
int |
numberOfAggregatedWeeks()
The number of aggregated weeks associated with the TkTimeBlockAggregate
|
void |
setDayTimeBlockList(List<List<TimeBlock>> dayTimeBlockList) |
void |
setPayCalendar(Calendar payCalendar) |
void |
setPayCalendarEntry(CalendarEntry payCalendarEntry) |
public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, CalendarEntry payCalendarEntry)
timeBlocks
- payCalendarEntry
- public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, CalendarEntry payCalendarEntry, Calendar payCalendar)
timeBlocks
- payCalendarEntry
- payCalendar
- public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, CalendarEntry payCalendarEntry, Calendar payCalendar, boolean useUserTimeZone)
timeBlocks
- payCalendarEntry
- payCalendar
- useUserTimeZone
- public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, CalendarEntry payCalendarEntry, Calendar payCalendar, boolean useUserTimeZone, org.joda.time.DateTimeZone userTimeZone)
public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, CalendarEntry payCalendarEntry, Calendar payCalendar, boolean useUserTimeZone, List<org.joda.time.Interval> dayIntervals)
public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, List<LeaveBlock> leaveBlocks, CalendarEntry payCalendarEntry)
timeBlocks
- leaveBlocks
- payCalendarEntry
- public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, List<LeaveBlock> leaveBlocks, CalendarEntry payCalendarEntry, Calendar payCalendar)
timeBlocks
- leaveBlocks
- payCalendarEntry
- payCalendar
- public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, List<LeaveBlock> leaveBlocks, CalendarEntry payCalendarEntry, Calendar payCalendar, boolean useUserTimeZone)
timeBlocks
- payCalendarEntry
- payCalendar
- useUserTimeZone
- public TkTimeBlockAggregate(List<TimeBlock> timeBlocks, List<LeaveBlock> leaveBlocks, CalendarEntry payCalendarEntry, Calendar payCalendar, boolean useUserTimeZone, List<org.joda.time.Interval> dayIntervals)
public List<TimeBlock> getFlattenedTimeBlockList()
TkTimeBlockAggregateContract
the list of flattened time blocks of a TkTimeBlockAggregate
getFlattenedTimeBlockList
in interface TkTimeBlockAggregateContract
public List<LeaveBlock> getFlattenedLeaveBlockList()
TkTimeBlockAggregateContract
the list of flattened leave blocks of a TkTimeBlockAggregate
getFlattenedLeaveBlockList
in interface TkTimeBlockAggregateContract
public List<List<TimeBlock>> getWeekTimeBlocks(int week)
getWeekTimeBlocks
in interface TkTimeBlockAggregateContract
week
- public List<List<LeaveBlock>> getWeekLeaveBlocks(int week)
getWeekLeaveBlocks
in interface TkTimeBlockAggregateContract
week
- public List<FlsaWeek> getFlsaWeeks(org.joda.time.DateTimeZone zone, int flsaDayConstant, boolean isFlsaDayPassed)
getFlsaWeeks
in interface TkTimeBlockAggregateContract
zone
- The TimeZone to use when constructing this relative sorting.public List<List<FlsaWeek>> getFlsaWeeks(org.joda.time.DateTimeZone zone, String principalId)
TkTimeBlockAggregateContract
the list of flsa weeks of a TkTimeBlockAggregate
getFlsaWeeks
in interface TkTimeBlockAggregateContract
public int numberOfAggregatedWeeks()
TkTimeBlockAggregateContract
numberOfAggregatedWeeks
in interface TkTimeBlockAggregateContract
public List<List<TimeBlock>> getDayTimeBlockList()
TkTimeBlockAggregateContract
dayTimeBlockList of a TkTimeBlockAggregate
getDayTimeBlockList
in interface TkTimeBlockAggregateContract
public List<List<LeaveBlock>> getDayLeaveBlockList()
TkTimeBlockAggregateContract
dayLeaveBlockList of a TkTimeBlockAggregate
getDayLeaveBlockList
in interface TkTimeBlockAggregateContract
public CalendarEntry getPayCalendarEntry()
TkTimeBlockAggregateContract
payCalendarEntry of a TkTimeBlockAggregate
getPayCalendarEntry
in interface TkTimeBlockAggregateContract
public void setPayCalendarEntry(CalendarEntry payCalendarEntry)
public Calendar getPayCalendar()
TkTimeBlockAggregateContract
payCalendar of a TkTimeBlockAggregate
getPayCalendar
in interface TkTimeBlockAggregateContract
public void setPayCalendar(Calendar payCalendar)
public void setDayTimeBlockList(List<List<TimeBlock>> dayTimeBlockList)
public static TkTimeBlockAggregate combineTimeAndLeaveAggregates(TkTimeBlockAggregate tbAggregate, LeaveBlockAggregate lbAggregate)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.