Class BOWorkShift
java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.core.bl.workshift.BOWorkShift
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
Business object representing a work shift.
- Since:
- 9.2
- See Also:
- GCApi:
- bo
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the work shift begin date.Returns the break begin of the work shift.Returns the break end of the work shift.Return the workshift of the container (for example crew shell workshift)Checks if it is a crew shell workshiftReturn the current operation center of the workshiftReturn the delete action of the workshiftReturns the work shift end date.getId()Returns the work shift id.Return the initial operation center of the workshiftReturns the normalized end date of the work shift.Returns the normalized start date of the work shift.Returns the id of the work shift operation center.Returns the overtime of the work shift.Returns the id of the work shift resource.Returns the total availability (mins) of the work shift.Returns the total break of the work shift.Returns the total duration (mins) of the work shift.Returns the total unavailability of the work shift.Returns the unavailability begin of the work shift.Returns the unavailability end of the work shift.Returns the id of the work shift type.booleanhasBreak()Checks if the work shift has a break.booleanChecks if the work shift has a planning.booleanChecks if the work shift is a traditional planning.voidsetBeginDate(Date beginDate) Sets the work shift begin date.voidsetBreakBegin(Date breakBegin) Sets the break begin of the work shift.voidsetBreakEnd(Date breakEnd) Sets the break end of the work shift.voidsetContainerWorkshift(Long containerWorkshift) Sets the workshift of the container (for example crew shell workshift)voidsetCrewShell(Boolean crewShell) Sets true if it is a crew shell workshiftvoidsetCurrentOperationCenter(Long currentOperationCenter) Sets the current operation center of the workshiftvoidsetDeleteAction(Long deleteAction) Sets the delete action of the workshiftvoidsetEndDate(Date endDate) Sets the work shift end date.voidSets the work shift id.voidsetInitialOperationCenter(Long initialOperationCenter) Sets the initial operation center of the workshiftvoidsetNormalizedEndDate(Date normalizedEndDate) Sets the normalized end date of the work shift.voidsetNormalizedStartDate(Date normalizedStartDate) Sets the normalized start date of the work shift.voidsetOperationCenter(Long operationCenter) Sets the id of the work shift operation center.voidsetOvertimeMinute(Long overtimeMinute) Sets the overtime of the work shift.voidsetResource(Long resource) Sets the id of the work shift resource.voidsetTotalBreak(Long totalBreak) Sets the total break of the work shift.voidsetTotalUnavailability(Long totalUnavailability) Sets the total unavailability of the work shift.voidsetUnavailabilityBegin(Date unavailabilityBegin) Sets the unavailability begin of the work shift.voidsetUnavailabilityEnd(Date unavailabilityEnd) Sets the unavailability end of the work shift.voidsetWorkShiftType(Long workShiftType) Sets the id of the work shift type.Methods inherited from class overit.geocall.model.DynO
addExtension, extract, extract, fields, from, from, getCriteria, getCriteriaNotExploded, getExtension, getFakeFilter, getUnknownAttributes, getUnknownCriteria, getVariant, getZone, insert, insert, isValid, make, removeCriteria, removeExtensionAttribute, setCriteria, setCriteriaNotExploded, setExtension, setFakeFilter, setUnknownAttributes, setUnknownCriteria, setVariant, setZone, toFlatMap, toFlatMap, toMap, toMap, toString, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initializeMethods inherited from interface overit.geocall.timezone.model.TimeZoned
hasZone
-
Constructor Details
-
BOWorkShift
public BOWorkShift()
-
-
Method Details
-
getId
Returns the work shift id.- Returns:
- the the work shift id
-
setId
Sets the work shift id.- Parameters:
id- the work shift id
-
getResource
Returns the id of the work shift resource.- Returns:
- the resource id
- See Also:
-
setResource
Sets the id of the work shift resource.- Parameters:
resource- the resource id- See Also:
-
getBeginDate
Returns the work shift begin date.- Returns:
- the begin date
-
setBeginDate
Sets the work shift begin date.- Parameters:
beginDate- the begin date
-
getEndDate
Returns the work shift end date.- Returns:
- the end date
-
setEndDate
Sets the work shift end date.- Parameters:
endDate- the end date
-
getWorkShiftType
Returns the id of the work shift type.- Returns:
- the work shift type id
- See Also:
-
setWorkShiftType
Sets the id of the work shift type.- Parameters:
workShiftType- the work shift type id- See Also:
-
getOperationCenter
Returns the id of the work shift operation center.- Returns:
- the operation center id
- See Also:
-
setOperationCenter
Sets the id of the work shift operation center.- Parameters:
operationCenter- the operation center id- See Also:
-
getBreakBegin
Returns the break begin of the work shift.- Returns:
- the break begin
-
setBreakBegin
Sets the break begin of the work shift.- Parameters:
breakBegin- the break begin
-
getBreakEnd
Returns the break end of the work shift.- Returns:
- the break end
-
setBreakEnd
Sets the break end of the work shift.- Parameters:
breakEnd- the break end
-
getNormalizedStartDate
Returns the normalized start date of the work shift.- Returns:
- the normalized start date
-
setNormalizedStartDate
Sets the normalized start date of the work shift.- Parameters:
normalizedStartDate- the normalized start date
-
getNormalizedEndDate
Returns the normalized end date of the work shift.- Returns:
- the normalized end date
-
setNormalizedEndDate
Sets the normalized end date of the work shift.- Parameters:
normalizedEndDate- the normalized end date
-
getTotalBreak
Returns the total break of the work shift.- Returns:
- the total break
-
setTotalBreak
Sets the total break of the work shift.- Parameters:
totalBreak- the total break
-
getOvertimeMinute
Returns the overtime of the work shift.- Returns:
- the overtime
-
setOvertimeMinute
Sets the overtime of the work shift.- Parameters:
overtimeMinute- the overtime
-
hasBreak
public boolean hasBreak()Checks if the work shift has a break.- Returns:
- true if the work shift has a break, false otherwise
-
isTraditionalPlanning
public boolean isTraditionalPlanning()Checks if the work shift is a traditional planning.- Returns:
- true if the work shift is a traditional planning, false otherwise
-
hasPlanning
public boolean hasPlanning()Checks if the work shift has a planning.- Returns:
- true if the work shift has a planning, false otherwise.
-
getTotalDuration
Returns the total duration (mins) of the work shift.- Returns:
- the total duration
-
getTotalAvailability
Returns the total availability (mins) of the work shift.- Returns:
- the total availability
-
getCrewShell
Checks if it is a crew shell workshift- Returns:
- true if it is a crew shell workshift
-
setCrewShell
Sets true if it is a crew shell workshift- Parameters:
crewShell- true if it is a crew shell workshift, false otherwise
-
getDeleteAction
Return the delete action of the workshift- Returns:
- the delete action
-
setDeleteAction
Sets the delete action of the workshift- Parameters:
deleteAction- the delete action
-
getInitialOperationCenter
Return the initial operation center of the workshift- Returns:
- the initial operation center
-
setInitialOperationCenter
Sets the initial operation center of the workshift- Parameters:
initialOperationCenter- the delete action
-
getCurrentOperationCenter
Return the current operation center of the workshift- Returns:
- the current operation center
-
setCurrentOperationCenter
Sets the current operation center of the workshift- Parameters:
currentOperationCenter- the delete action
-
getContainerWorkshift
Return the workshift of the container (for example crew shell workshift)- Returns:
- the workshift of the container
-
setContainerWorkshift
Sets the workshift of the container (for example crew shell workshift)- Parameters:
containerWorkshift- the workshift of the container
-