Package overit.geocallapp.wfm.bundler.bl
Class Bundle
java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.bundler.bl.Bundle
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
An aggregator of multiple work order operations which allows to manage them
as a single entity during the scheduling process.
It consists of:
It consists of:
- an header
BOBundleHeaderthat contains the common characteristics of the bundle - a list of
BOBundleOperationwhich represents the links between the entity and the related work order operation
- a list of
BOBundleSkillthat contains the skill needed by the bundle - a list of
BOBundleSkillDivisionthat contains the skill division needed by the bundle
- Since:
- 10.1
- See Also:
- GCApi:
- bo
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOperation(BOBundleOperation bundleOperation) Adds an operation to the bundle operations list.booleanaddSkill(BOBundleSkill bundleSkill) Adds a bundle skill.booleanaddSkillDivision(BOBundleSkillDivision bundleSkillDivision) Adds a bundle skill division.Returns the activeBOBundleOperationrelated to the given work order operation id.Returns the bundle operations that are in an active state.Returns the id of every work order operation related the current bundle that is not inBOBundleOperationStatus.Values.CLOSEDorBOBundleOperationStatus.Values.CANCELLEDstate.Returns the bundle criterion.Returns the bundle header.getId()Returns the id of theBOBundleHeader.Returns the bundle operations that are not cancelled.Returns the ids of all the work order operation related to the current bundle and not inBOBundleOperationStatus.Values.CANCELLEDstate.getOperationById(Long id) Returns theBOBundleOperationrelated the given id.Returns the ids of theBOBundleOperation.Returns the bundle operations.Returns the aggregated bundle requirements.getSkillById(Long id) Returns theBOBundleSkillrelated the given id.getSkillBySkillId(Long skillId) Returns theBOBundleSkillrelated to the given {skill id.Returns theBOBundleSkillDivisionrelated the given id.getSkillDivisionBySkillDivisionId(Long skillDivisionId) Returns theBOBundleSkillDivisionrelated to the given skill division id.Returns the bundle skill divisions.Returns the list of bundle skills.Returns the sorted bundle operations that are not in a cancelled state.Returns the list of work order operation ids that are related to the currentBundle.voidRemoves the all skill divisions.voidRemoves the all skills.booleanremoveSkill(Long bundleSkillId) Removes a bundle skill.booleanremoveSkillDivision(Long bundleSkillDivisionId) Removes a bundle skill division.voidsetCriterion(BOBundleCriterion criterion) Sets the bundle criterion.voidsetHeader(BOBundleHeader header) Sets the bundle header.voidsetOperations(List<BOBundleOperation> operations) Sets the list of bundle operations.voidsetRequirements(AggregateBundleRequirement requirements) Sets the aggregated bundle requirements.voidsetSkillDivisions(List<BOBundleSkillDivision> skillDivisions) Sets the bundle skill divisions.voidsetSkills(List<BOBundleSkill> skills) Sets the list of bundle skills.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
-
Bundle
public Bundle()Instantiates a new bundle.
-
-
Method Details
-
getHeader
Returns the bundle header.- Returns:
- the header
- See Also:
-
setHeader
Sets the bundle header.- Parameters:
header- theBOBundleHeader- See Also:
-
getOperations
Returns the bundle operations.- Returns:
- a list of
BOBundleOperation - See Also:
-
setOperations
Sets the list of bundle operations.- Parameters:
operations- the given list ofBOBundleOperation- See Also:
-
addOperation
Adds an operation to the bundle operations list.- Parameters:
bundleOperation- the bundle operation to add- Returns:
trueif theBOBundleOperationis added to the operation list
-
getSkills
Returns the list of bundle skills.- Returns:
- a list of
BOBundleSkills - See Also:
-
getSkillById
Returns theBOBundleSkillrelated the given id.- Parameters:
id- the neededBOBundleSkillid- Returns:
- the corresponding
BOBundleSkill
-
getSkillBySkillId
Returns theBOBundleSkillrelated to the given {skill id.- Parameters:
skillId- the {skill id- Returns:
- the corresponding
BOBundleSkill
-
setSkills
Sets the list of bundle skills.- Parameters:
skills- the given list ofBOBundleSkill- See Also:
-
addSkill
Adds a bundle skill.- Parameters:
bundleSkill- the bundle skill to add- Returns:
trueif theBOBundleSkillis added to the skill list
-
removeSkill
Removes a bundle skill.- Parameters:
bundleSkillId- the identifier of the bundle skill to remove- Returns:
trueif theBOBundleSkillis removed from the skill list
-
removeAllSkills
public void removeAllSkills()Removes the all skills. -
getSkillDivisions
Returns the bundle skill divisions.- Returns:
- a list of
BOBundleSkillDivision - See Also:
-
getSkillDivisionById
Returns theBOBundleSkillDivisionrelated the given id.- Parameters:
id- the neededBOBundleSkillDivisionid- Returns:
- the corresponding
BOBundleSkillDivision
-
getSkillDivisionBySkillDivisionId
Returns theBOBundleSkillDivisionrelated to the given skill division id.- Parameters:
skillDivisionId- the skill division id- Returns:
- the corresponding
BOBundleSkillDivision
-
setSkillDivisions
Sets the bundle skill divisions.- Parameters:
skillDivisions- the given list ofBOBundleSkillDivision- See Also:
-
addSkillDivision
Adds a bundle skill division.- Parameters:
bundleSkillDivision- the bundle skill division to add- Returns:
trueif theBOBundleSkillDivisionis added to the skill division list
-
removeSkillDivision
Removes a bundle skill division.- Parameters:
bundleSkillDivisionId- the identifier of the bundle skill division to remove- Returns:
trueif theBOBundleSkillDivisionis removed from the skill division list
-
removeAllSkillDivisions
public void removeAllSkillDivisions()Removes the all skill divisions. -
getCriterion
Returns the bundle criterion.- Returns:
- the criterion
- See Also:
-
setCriterion
Sets the bundle criterion.- Parameters:
criterion- theBOBundleCriterion- See Also:
-
getId
Returns the id of theBOBundleHeader.- Returns:
- the
BOBundleHeaderid
-
getOperationIds
Returns the ids of theBOBundleOperation.- Returns:
- the
BOBundleOperationids
-
getOperationById
Returns theBOBundleOperationrelated the given id.- Parameters:
id- the neededBOBundleOperationid- Returns:
- the corresponding
BOBundleOperation, null if no suchBOBundleOperationexists
-
getActiveOperationByWorkOrderOperationId
Returns the activeBOBundleOperationrelated to the given work order operation id.- Parameters:
woId- the work order operation id- Returns:
- the corresponding
BOBundleOperation, null if no suchBOBundleOperationexists
-
getActiveOperations
Returns the bundle operations that are in an active state.- Returns:
- a list of active
BOBundleOperation
-
getSortedNotCancelledOperations
Returns the sorted bundle operations that are not in a cancelled state.- Returns:
- a list of not cancelled
BOBundleOperation
-
getNotCancelledOperations
Returns the bundle operations that are not cancelled.- Returns:
- a list of not cancelled
BOBundleOperation
-
getWorkOrderOperationsIds
Returns the list of work order operation ids that are related to the currentBundle.- Returns:
- a list of work order operation ids
-
getActiveWorkOrderOperationIds
Returns the id of every work order operation related the current bundle that is not inBOBundleOperationStatus.Values.CLOSEDorBOBundleOperationStatus.Values.CANCELLEDstate.- Returns:
- a list of work order operation ids
-
getNotCancelledWorkOrderOperationIds
Returns the ids of all the work order operation related to the current bundle and not inBOBundleOperationStatus.Values.CANCELLEDstate.- Returns:
- a list of work order operation ids
-
getRequirements
Returns the aggregated bundle requirements. This includes mandatory, preferred, and excluded resources and teams for the bundle.- Returns:
- the
AggregateBundleRequirement - See Also:
-
setRequirements
Sets the aggregated bundle requirements.- Parameters:
requirements- theAggregateBundleRequirement- See Also:
-