java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.core.bl.timesheet.timesheettask.BOTask
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

public class BOTask extends DynO
Business object representing a timesheet task. It represents all the activities carried out during the day by a user.
Since:
9.2
See Also:
GCApi:
bo
  • Constructor Details

    • BOTask

      public BOTask()
  • Method Details

    • getId

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

      public void setId(Long id)
      Sets the task id.
      Parameters:
      id - the task id
    • getTimesheet

      public Long getTimesheet()
      Returns the id of the timesheet associated to the task.
      Returns:
      the timesheet id
      See Also:
    • setTimesheet

      public void setTimesheet(Long timesheet)
      Sets the the id of the timesheet associated to the task.
      Parameters:
      timesheet - the timesheet id
      See Also:
    • getCategory

      public Long getCategory()
      Returns the task category id.
      Returns:
      the category id
      See Also:
    • setCategory

      public void setCategory(Long category)
      Sets the task category id.
      Parameters:
      category - the category id
      See Also:
    • getState

      public Long getState()
      Returns the task state id.
      Returns:
      the state id
      See Also:
    • setState

      public void setState(Long state)
      Sets the task state id.
      Parameters:
      state - the state id
      See Also:
    • getShift

      public Long getShift()
      Returns the id of the shift to which the task refers.
      Returns:
      the shift id
      See Also:
    • setShift

      public void setShift(Long shift)
      Sets the id of the shift to which the task refers.
      Parameters:
      shift - the shift id
      See Also:
    • getOnCallShift

      public Long getOnCallShift()
      Returns the id of the "on call" shift to which the task refers.
      Returns:
      the on call shift id
      See Also:
    • setOnCallShift

      public void setOnCallShift(Long onCallShift)
      Sets the id of the "on call" shift to which the task refers.
      Parameters:
      onCallShift - the on call shift id
      See Also:
    • getStartDate

      public Date getStartDate()
      Returns the task start date.
      Returns:
      the start date
    • setStartDate

      public void setStartDate(Date startDate)
      Sets the task start date.
      Parameters:
      startDate - the start date
    • getEndDate

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

      public void setEndDate(Date endDate)
      Sets the task end date.
      Parameters:
      endDate - the end date
    • getDuration

      public Long getDuration()
      Returns the task duration (mins). If the accounting is manually inserted, the duration corresponds to the value the user inserted. In all other cases, the duration is equal to the difference between the task end and task start dates.
      Returns:
      the duration
    • setDuration

      public void setDuration(Long duration)
      Sets the task duration (mins). If the accounting is manually inserted, the duration corresponds to the value the user inserted. In all other cases, the duration is equal to the difference between the task end and task start dates.
      Parameters:
      duration - the duration
    • getActualDuration

      public Long getActualDuration()
      Returns the actual duration (mins) of the task. The actual duration is equal to the difference between the task end and task start dates, without eventual overlaps with lower priority.
      Returns:
      the actual duration
    • setActualDuration

      public void setActualDuration(Long actualDuration)
      Sets the actual duration (mins) of the task. The actual duration is equal to the difference between the task end and task start dates, without eventual overlaps with lower priority.
      Parameters:
      actualDuration - the actual duration
    • getStartEventType

      public Long getStartEventType()
      Returns the start event type id of the task. The start event type takes value in case of automatic insertion.
      Returns:
      the start event type id
      See Also:
    • setStartEventType

      public void setStartEventType(Long startEventType)
      Sets the start event type id of the task. The start event type takes value in case of automatic insertion.
      Parameters:
      startEventType - the start event type id
      See Also:
    • getStartEventEntity

      public Long getStartEventEntity()
      Returns the start event entity id of the task.
      Returns:
      the start event entity id
      See Also:
    • setStartEventEntity

      public void setStartEventEntity(Long startEventEntity)
      Sets the start event entity id of the task.
      Parameters:
      startEventEntity - the start event entity id
      See Also:
    • getEndEventType

      public Long getEndEventType()
      Returns the end event type id of the task. The end event type takes value in case of automatic insertion.
      Returns:
      the end event type id
      See Also:
    • setEndEventType

      public void setEndEventType(Long endEventType)
      Sets the end event type id of the task. The end event type takes value in case of automatic insertion.
      Parameters:
      endEventType - the end event type id
      See Also:
    • getEndEventEntity

      public Long getEndEventEntity()
      Returns the end event entity id of the task.
      Returns:
      the end event entity id
      See Also:
    • setEndEventEntity

      public void setEndEventEntity(Long endEventEntity)
      Sets the end event entity id of the task.
      Parameters:
      endEventEntity - the end event entity id
      See Also:
    • getUnavailabilityReason

      public Long getUnavailabilityReason()
      Returns the unavailability reason of the task. There are two possible values:
      • its value is manually inserted by the user when an unavailability is inserted into the timesheet
      • its value is automatically inserted when an unavailability is inserted into the calendar
      Returns:
      the unavailability reason id
    • setUnavailabilityReason

      public void setUnavailabilityReason(Long unavailabilityReason)
      Sets the unavailability reason of the task. There are two possible values:
      • its value is manually inserted by the user when an unavailability is inserted into the timesheet
      • its value is automatically inserted when an unavailability is inserted into the calendar
      Parameters:
      unavailabilityReason - the unavailability reason id
    • getNote

      public String getNote()
      Returns the note of the task.
      Returns:
      the note
    • setNote

      public void setNote(String note)
      Sets the note of the task.
      Parameters:
      note - the note
    • getUpdatedByUser

      public Boolean getUpdatedByUser()
      Checks if the task has been manually edited by the user. If so, the task cannot be further modified by automatic processes.
      Returns:
      true if the task has been manually edited by the user, false otherwise
    • setUpdatedByUser

      public void setUpdatedByUser(Boolean updatedByUser)
      Sets the the task as updated by user. If @param updatedByUser is true, the task will never be further editable by automatic processes.
      Parameters:
      updatedByUser - true if the task has been manually edited by the user, false otherwise
    • getPreviousTask

      public Long getPreviousTask()
      If the original task was split into other tasks, this represents the id of the related previous task.
      Returns:
      the previous task id
    • setPreviousTask

      public void setPreviousTask(Long previousTask)
      If the original task was split into other tasks, this sets the id of the related previous task.
      Parameters:
      previousTask - the previous task id
    • getNextTask

      public Long getNextTask()
      If the original task was split into other tasks, this represents the id of the related next task.
      Returns:
      the next task id
    • setNextTask

      public void setNextTask(Long nextTask)
      If the original task was split into other tasks, this sets the id of the related next task.
      Parameters:
      nextTask - the next task id
    • addActualDuration

      public void addActualDuration(Long duration)
      Adds the specified duration (mins) to the actual duration of the task.
      Parameters:
      duration - the duration (mins) to add
    • isAutomatic

      public boolean isAutomatic()
      Returns true if the task is automatic.
      Returns:
      true if it is an automatic task, false otherwise
    • fallsIntoRange

      public boolean fallsIntoRange(Date rangeStartDate, Date rangeEndDate)
      Checks if the task falls into the input range.
      Parameters:
      rangeStartDate - range start date
      rangeEndDate - range end date
      Returns:
      true if the task falls into the input range, false otherwise
    • getUuid

      public String getUuid()