java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.core.bl.schedule.intervention.appointment.state.BOAppointmentState
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

public class BOAppointmentState extends DynO
Business object representing an appointment state
Since:
9.2
See Also:
GCApi:
bo
  • Constructor Details

    • BOAppointmentState

      public BOAppointmentState()
  • Method Details

    • getId

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

      public void setId(Long id)
      Sets the appointment state id.
      Parameters:
      id - the appointment state id
    • getDescription

      public String getDescription()
      Returns the appointment state description.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the appointment state description.
      Parameters:
      description - the description
    • isOpenOrPlannedAppointment

      public static boolean isOpenOrPlannedAppointment(Long state)
      Checks if the given appointment state is open or planned.
      Parameters:
      state - the appointment state
      Returns:
      true if the state is FIXED or OPEN, false otherwise
    • isClosedOrCancelledAppointment

      public static boolean isClosedOrCancelledAppointment(Long state)
      Checks if the given appointment state is closed or cancelled.
      Parameters:
      state - the appointment state
      Returns:
      true if the state is CLOSED or CANCELLED, false otherwise