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

public class BOWorkShift extends DynO
Business object representing a work shift.
Since:
9.2
See Also:
GCApi:
bo
  • Constructor Details

    • BOWorkShift

      public BOWorkShift()
  • Method Details

    • getId

      public Long getId()
      Returns the work shift id.
      Returns:
      the the work shift id
    • setId

      public void setId(Long id)
      Sets the work shift id.
      Parameters:
      id - the work shift id
    • getResource

      public Long getResource()
      Returns the id of the work shift resource.
      Returns:
      the resource id
      See Also:
    • setResource

      public void setResource(Long resource)
      Sets the id of the work shift resource.
      Parameters:
      resource - the resource id
      See Also:
    • getBeginDate

      public Date getBeginDate()
      Returns the work shift begin date.
      Returns:
      the begin date
    • setBeginDate

      public void setBeginDate(Date beginDate)
      Sets the work shift begin date.
      Parameters:
      beginDate - the begin date
    • getEndDate

      public Date getEndDate()
      Returns the work shift end date.
      Returns:
      the end date
    • setEndDate

      public void setEndDate(Date endDate)
      Sets the work shift end date.
      Parameters:
      endDate - the end date
    • getWorkShiftType

      public Long getWorkShiftType()
      Returns the id of the work shift type.
      Returns:
      the work shift type id
      See Also:
    • setWorkShiftType

      public void setWorkShiftType(Long workShiftType)
      Sets the id of the work shift type.
      Parameters:
      workShiftType - the work shift type id
      See Also:
    • getOperationCenter

      public Long getOperationCenter()
      Returns the id of the work shift operation center.
      Returns:
      the operation center id
      See Also:
    • setOperationCenter

      public void setOperationCenter(Long operationCenter)
      Sets the id of the work shift operation center.
      Parameters:
      operationCenter - the operation center id
      See Also:
    • getBreakBegin

      public Date getBreakBegin()
      Returns the break begin of the work shift.
      Returns:
      the break begin
    • setBreakBegin

      public void setBreakBegin(Date breakBegin)
      Sets the break begin of the work shift.
      Parameters:
      breakBegin - the break begin
    • getBreakEnd

      public Date getBreakEnd()
      Returns the break end of the work shift.
      Returns:
      the break end
    • setBreakEnd

      public void setBreakEnd(Date breakEnd)
      Sets the break end of the work shift.
      Parameters:
      breakEnd - the break end
    • getUnavailabilityBegin

      public Date getUnavailabilityBegin()
      Returns the unavailability begin of the work shift.
      Returns:
      the unavailability begin
    • setUnavailabilityBegin

      public void setUnavailabilityBegin(Date unavailabilityBegin)
      Sets the unavailability begin of the work shift.
      Parameters:
      unavailabilityBegin - the unavailability begin
    • getUnavailabilityEnd

      public Date getUnavailabilityEnd()
      Returns the unavailability end of the work shift.
      Returns:
      the unavailability end
    • setUnavailabilityEnd

      public void setUnavailabilityEnd(Date unavailabilityEnd)
      Sets the unavailability end of the work shift.
      Parameters:
      unavailabilityEnd - the unavailability end
    • getNormalizedStartDate

      public Date getNormalizedStartDate()
      Returns the normalized start date of the work shift.
      Returns:
      the normalized start date
    • setNormalizedStartDate

      public void setNormalizedStartDate(Date normalizedStartDate)
      Sets the normalized start date of the work shift.
      Parameters:
      normalizedStartDate - the normalized start date
    • getNormalizedEndDate

      public Date getNormalizedEndDate()
      Returns the normalized end date of the work shift.
      Returns:
      the normalized end date
    • setNormalizedEndDate

      public void setNormalizedEndDate(Date normalizedEndDate)
      Sets the normalized end date of the work shift.
      Parameters:
      normalizedEndDate - the normalized end date
    • getTotalBreak

      public Long getTotalBreak()
      Returns the total break of the work shift.
      Returns:
      the total break
    • setTotalBreak

      public void setTotalBreak(Long totalBreak)
      Sets the total break of the work shift.
      Parameters:
      totalBreak - the total break
    • getTotalUnavailability

      public Long getTotalUnavailability()
      Returns the total unavailability of the work shift.
      Returns:
      the total unavailability
    • setTotalUnavailability

      public void setTotalUnavailability(Long totalUnavailability)
      Sets the total unavailability of the work shift.
      Parameters:
      totalUnavailability - the total unavailability
    • getOvertimeMinute

      public Long getOvertimeMinute()
      Returns the overtime of the work shift.
      Returns:
      the overtime
    • setOvertimeMinute

      public void setOvertimeMinute(Long overtimeMinute)
      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

      public Long getTotalDuration()
      Returns the total duration (mins) of the work shift.
      Returns:
      the total duration
    • getTotalAvailability

      public Long getTotalAvailability()
      Returns the total availability (mins) of the work shift.
      Returns:
      the total availability
    • getCrewShell

      public Boolean getCrewShell()
      Checks if it is a crew shell workshift
      Returns:
      true if it is a crew shell workshift
    • setCrewShell

      public void setCrewShell(Boolean crewShell)
      Sets true if it is a crew shell workshift
      Parameters:
      crewShell - true if it is a crew shell workshift, false otherwise
    • getDeleteAction

      public Long getDeleteAction()
      Return the delete action of the workshift
      Returns:
      the delete action
    • setDeleteAction

      public void setDeleteAction(Long deleteAction)
      Sets the delete action of the workshift
      Parameters:
      deleteAction - the delete action
    • getInitialOperationCenter

      public Long getInitialOperationCenter()
      Return the initial operation center of the workshift
      Returns:
      the initial operation center
    • setInitialOperationCenter

      public void setInitialOperationCenter(Long initialOperationCenter)
      Sets the initial operation center of the workshift
      Parameters:
      initialOperationCenter - the delete action
    • getCurrentOperationCenter

      public Long getCurrentOperationCenter()
      Return the current operation center of the workshift
      Returns:
      the current operation center
    • setCurrentOperationCenter

      public void setCurrentOperationCenter(Long currentOperationCenter)
      Sets the current operation center of the workshift
      Parameters:
      currentOperationCenter - the delete action
    • getContainerWorkshift

      public Long getContainerWorkshift()
      Return the workshift of the container (for example crew shell workshift)
      Returns:
      the workshift of the container
    • setContainerWorkshift

      public void setContainerWorkshift(Long containerWorkshift)
      Sets the workshift of the container (for example crew shell workshift)
      Parameters:
      containerWorkshift - the workshift of the container