Class BOAppointmentState
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
Business object representing an appointment state
- Since:
- 9.2
- See Also:
- GCApi:
- bo
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the appointment state description.getId()Returns the appointment state id.static booleanChecks if the given appointment state is closed or cancelled.static booleanisOpenOrPlannedAppointment(Long state) Checks if the given appointment state is open or planned.voidsetDescription(String description) Sets the appointment state description.voidSets the appointment state id.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
-
BOAppointmentState
public BOAppointmentState()
-
-
Method Details
-
getId
Returns the appointment state id.- Returns:
- the the appointment state id
-
setId
Sets the appointment state id.- Parameters:
id- the appointment state id
-
getDescription
Returns the appointment state description.- Returns:
- the description
-
setDescription
Sets the appointment state description.- Parameters:
description- the description
-
isOpenOrPlannedAppointment
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
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
-