Class BOBundleRequirementType
java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.bundler.bl.bundleRequirement.BOBundleRequirementType
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
Enumeration representing the type of bundle requirement.
Defines the type of requirement for resources and teams that can be assigned to bundles.
This enum maps to the work order requirement type entity in the database.
- Since:
- 22.0
- See Also:
-
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 TypeMethodDescriptionstatic BOBundleRequirementTypeGets the requirement type by database ID.getId()Gets the ID for this requirement type.booleanChecks if this requirement type is excluded.booleanChecks if this requirement type is mandatory.booleanChecks if this requirement type is preferred.booleanChecks if this requirement type is for a resource.booleanisTeam()Checks if this requirement type is for a team.voidSets the ID for this requirement type.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
-
BOBundleRequirementType
public BOBundleRequirementType()
-
-
Method Details
-
getId
Gets the ID for this requirement type.- Returns:
- the database ID
-
setId
Sets the ID for this requirement type.- Parameters:
id- the database ID
-
isResource
public boolean isResource()Checks if this requirement type is for a resource.- Returns:
- true if this is a resource requirement type
-
isTeam
public boolean isTeam()Checks if this requirement type is for a team.- Returns:
- true if this is a team requirement type
-
isMandatory
public boolean isMandatory()Checks if this requirement type is mandatory.- Returns:
- true if this is a mandatory requirement type
-
isPreferred
public boolean isPreferred()Checks if this requirement type is preferred.- Returns:
- true if this is a preferred requirement type
-
isExcluded
public boolean isExcluded()Checks if this requirement type is excluded.- Returns:
- true if this is an excluded requirement type
-
fromId
Gets the requirement type by database ID.- Parameters:
id- the database ID- Returns:
- the requirement type, or null if not found
-