java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.workorders.bl.activity.BOActivity
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

public class BOActivity extends DynO
Business object representing a generic activity.
Since:
16.0
See Also:
GCApi:
bo
  • Constructor Details

    • BOActivity

      public BOActivity()
  • Method Details

    • getId

      public Long getId()
      Gets the activity ID.
      Returns:
      the activity ID
    • setId

      public void setId(Long id)
      Sets the activity ID.
      Parameters:
      id - the activity ID
    • getCode

      public String getCode()
      Gets the activity code.
      Returns:
      the activity code
    • setCode

      public void setCode(String code)
      Sets the activity code.
      Parameters:
      code - the activity code
    • getDescription

      public LocalizedString getDescription()
      Gets the activity description.
      Returns:
      the description
    • setDescription

      public void setDescription(LocalizedString description)
      Sets the activity description.
      Parameters:
      description - the description
    • isActive

      public Boolean isActive()
      Checks if the activity is active.
      Returns:
      true if the activity is active, false otherwise
    • setActive

      public void setActive(Boolean active)
      Sets the activity active status.
      Parameters:
      active - the active status
    • isMultiDay

      public Boolean isMultiDay()
      Checks if the activity is multi-day (interruptible).
      Returns:
      true if the activity is multi-day, false otherwise
    • setMultiDay

      public void setMultiDay(Boolean multiDay)
      Sets the activity multi-day status.
      Parameters:
      multiDay - the multi-day status
    • getInterventionGroup

      public Long getInterventionGroup()
      Gets the intervention group ID.
      Returns:
      the intervention group ID
    • setInterventionGroup

      public void setInterventionGroup(Long interventionGroup)
      Sets the intervention group ID.
      Parameters:
      interventionGroup - the intervention group ID
    • getSchedulingMode

      public Long getSchedulingMode()
      Gets the scheduling mode ID.
      Returns:
      the scheduling mode ID
    • setSchedulingMode

      public void setSchedulingMode(Long schedulingMode)
      Sets the scheduling mode ID.
      Parameters:
      schedulingMode - the scheduling mode ID
    • isOnDutyOnly

      public Boolean isOnDutyOnly()
      Checks if the activity requires only on duty resources.
      Returns:
      true if the activity requires only on duty resources, false otherwise
    • setOnDutyOnly

      public void setOnDutyOnly(Boolean onDutyOnly)
      Sets the activity on duty only status.
      Parameters:
      onDutyOnly - the on duty only status
    • isOnCallExcluded

      public Boolean isOnCallExcluded()
      Checks if the activity has to be excluded if the resource is on call.
      Returns:
      true if the activity has to be excluded, false otherwise
    • setOnCallExcluded

      public void setOnCallExcluded(Boolean isOnCallExcluded)
      Sets the activity on call excluded status.
      Parameters:
      isOnCallExcluded - the on call excluded status
    • getMinimumTimeForDay

      public Long getMinimumTimeForDay()
      Gets the minimum time for day.
      Returns:
      the minimum time for day
    • setMinimumTimeForDay

      public void setMinimumTimeForDay(Long minimumTimeForDay)
      Sets the minimum time for day.
      Parameters:
      minimumTimeForDay - the minimum time for day
    • getMinimumTimeForSuspension

      public Long getMinimumTimeForSuspension()
      Gets the minimum time for suspension.
      Returns:
      the minimum time for suspension
    • setMinimumTimeForSuspension

      public void setMinimumTimeForSuspension(Long minimumTimeForSuspension)
      Sets the minimum time for suspension.
      Parameters:
      minimumTimeForSuspension - the minimum time for suspension