Class TimesheetEntitiesAggregate
java.lang.Object
overit.geocallapp.wfm.core.bl.timesheet.TimesheetEntitiesAggregate
- All Implemented Interfaces:
Serializable
An aggregate of all the entities that are strictly related and useful for a
Timesheet.- See Also:
- GCApi:
- bo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Long, BOTaskCategory> protected BOProfileprotected Map<Long, BOReceiptType> protected Map<Long, BOShiftExceptionClass> protected BOTimesheetStateprotected Timesheetprotected Map<Long, TimesheetOnCallShift> protected Map<Long, TimesheetShift> protected BOTimesheetTypeprotected BOSchedulingUser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategory(BOTaskCategory category) voidaddOnCallShift(BOOnCallShift onCallShift) voidaddReceiptType(BOReceiptType receiptType) voidaddShift(BOWorkShift shift, List<BOReceipt> receipts) voidaddShiftExceptionClass(BOShiftExceptionClass shiftExceptionClass) voidvoidvoidstatic TimesheetEntitiesAggregatecreateTimesheetEntitiesAggregate(Timesheet timesheet) List<overit.geocallapp.wfm.util.timeline.TimeLineRange> getActiveShiftTaskRanges(Long shift) Builds a new timeline with the timesheet tasks of the given shift and extracts the ranges.List<overit.geocallapp.wfm.util.timeline.TimeLineRange> Builds a new timeline with the timesheet tasks and extracts the ranges.getMaxPriorityTask(List<BOTask> tasks) Returns the max priority task of the given list.getOnCallShift(Long onCallShift) getOverlappedTasks(overit.geocallapp.wfm.util.timeline.TimeLineRange range) Returns the list of the overlapped tasks within a range.getState()protected LonggetTaskPriority(BOTask task) protected List<overit.geocallapp.wfm.util.timeline.TimeLineRange> getTaskRanges(List<BOTask> tasks) getTasksBreak(Long shift) getTasksOnCallWorking(Long onCallShift) getTasksUnavailability(Long shift) getTasksWorking(Long shift) getTimesheetOnCallShift(Long onCallShift) getTimesheetShift(Long shift) getType()getUser()booleanprotected booleanhasExceptionClassType(Long receiptTypeId, Long classTypeId) protected booleanhasTimeImpact(Long receiptTypeId) protected booleanisAbsenceTask(BOTask task) booleanisBlockingWarning(Long warning) booleanisBlockingWarningType(Long warningType) protected booleanisBreakTask(BOTask task) protected booleanisOnCallTask(BOTask task) protected booleanisOnCallWorkingTask(BOTask task) protected booleanisUnavailabilityTask(BOTask task) protected booleanisWorkingTask(BOTask task) voidsetProfile(BOProfile profile) voidsetState(BOTimesheetState state) voidsetTimesheet(Timesheet timesheet) voidsetType(BOTimesheetType type) voidsetUser(BOSchedulingUser user)
-
Field Details
-
timesheet
-
timesheetShifts
-
timesheetOnCallShifts
-
user
-
type
-
state
-
profile
-
categories
-
receiptTypes
-
shiftExceptionClasses
-
-
Constructor Details
-
TimesheetEntitiesAggregate
public TimesheetEntitiesAggregate()
-
-
Method Details
-
createTimesheetEntitiesAggregate
-
getTimesheet
-
setTimesheet
-
getTimesheetShift
-
getTimesheetShifts
-
addShift
-
getShift
-
getShifts
-
getTimesheetOnCallShift
-
getTimesheetOnCallShifts
-
addOnCallShift
-
getOnCallShift
-
getOnCallShifts
-
getUser
-
setUser
-
getType
-
setType
-
getState
-
setState
-
getProfile
-
setProfile
-
getCategories
-
addCategory
-
clearCategories
public void clearCategories() -
getReceiptTypes
-
addReceiptType
-
clearReceiptTypes
public void clearReceiptTypes() -
getShiftExceptionClasses
-
addShiftExceptionClass
-
clearShiftExceptionClasses
public void clearShiftExceptionClasses() -
hasTimeImpact
-
isReceiptWithTimeImpact
-
hasExceptionClassType
-
isAbsenceReceipt
-
isPresenceReceipt
-
getShiftsAvailability
-
getShiftsBreak
-
getOnCallShiftsDuration
-
getTasksWorking
-
getTasksWorking
-
getTasksBreak
-
getTasksBreak
-
getTasksOnCallWorking
-
getTasksOnCallWorking
-
getTasksWithoutShiftWorking
-
isWorkingTask
-
isOnCallWorkingTask
-
isOnCallTask
-
isBreakTask
-
isAbsenceTask
-
getActiveTaskRanges
Builds a new timeline with the timesheet tasks and extracts the ranges.- Returns:
- the ranges defined by the tasks
-
getActiveShiftTaskRanges
Builds a new timeline with the timesheet tasks of the given shift and extracts the ranges.- Parameters:
shift- shift id- Returns:
- the ranges defined by then tasks of the shift
-
getTaskRanges
-
getOverlappedTasks
Returns the list of the overlapped tasks within a range.- Parameters:
range- the task range- Returns:
- the list of the overlapped tasks
-
getTaskPriority
-
getMaxPriorityTask
Returns the max priority task of the given list.
If the input list is empty or the max priority task is not unique, returns an emptyOptionalinstance.- Parameters:
tasks- the list of the tasks- Returns:
- the max priority task
-
isBlockingWarningType
-
isBlockingWarning
-
isBlockingWarning
-
hasBlockingWarnings
public boolean hasBlockingWarnings() -
getInterventionIds
-