Class BundleEntitiesCache
java.lang.Object
overit.geocallapp.wfm.orchestrator.workorders.bl.bundler.BundleEntitiesCache
- All Implemented Interfaces:
Serializable
Cache utility for
Bundle events.- Since:
- 10.1
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActivitySkillConfiguration(Long activityId, Long operationCenter, Long cardinality, PoolKit poolKit) Returns theBOActivitySkillConfigurationwhich corresponds to the given activity, operation center and team cardinality.getAddress(Long addressId, PoolKit poolKit) Returns theBOAddresswhich corresponds to the given id.getAppointments(Long workOrderOperation, PoolKit poolKit) Returns the list ofBOAppointmentrelated to the a list of work order operations.Returns theBOAssetwhich corresponds to the given id.getOperationActivity(Long operationActivity, PoolKit poolKit) Returns theBOActivitywhich corresponds to the given id.getOperationCenter(Long operationCenter, PoolKit poolKit) Returns theBOOperationCenterwhich corresponds to the given id.Returns theBOSkillwhich corresponds to the given id.getSkillConfiguration(Long skillConfiguration, PoolKit poolKit) Returns theBOSkillConfigurationwhich corresponds to the given id.getSkillConfigurationDivisions(Long skillConfiguration, PoolKit poolKit) Returns theBOSkillConfigurationDivisionsearching them into the cache by the correspondingBOSkillConfigurationid.getSkillConfigurationSkills(Long skillConfiguration, PoolKit poolKit) Returns theBOSkillConfigurationSkillsearching them into the cache by the correspondingBOSkillConfigurationid.getSkillDivision(Long skillDivision, PoolKit poolKit) Returns theBOSkillDivisionwhich corresponds to the given id.getSkillDivisionSkills(Long skillDivision, PoolKit poolKit) Returns theBOSkillDivisionSkillsearching them into the cache by the correspondingBOSkillDivisionid.Returns theBOUserwhich corresponds to the given id.getWorkOrder(Long workOrder, PoolKit poolKit) Returns theBOWorkOrderHeaderwhich corresponds to the given id.Returns theBOWorkOrderTypewhich corresponds to the given id.voidinitializeAppointments(List<Long> woOperationIds, PoolKit poolKit) Initialize appointments starting from the list of work order operations.protected List<BOAppointment> loadAppointments(List<Long> woOperationIds, PoolKit poolKit) Loads the list of all theBOAppointments related to the a list of work order operations.
-
Field Details
-
LOG
-
KEY_SEPARATOR
- See Also:
-
-
Constructor Details
-
BundleEntitiesCache
public BundleEntitiesCache()
-
-
Method Details
-
getUser
Returns theBOUserwhich corresponds to the given id. -
getWorkOrder
Returns theBOWorkOrderHeaderwhich corresponds to the given id.- Parameters:
workOrder- theBOWorkOrderHeaderidpoolKit- thePoolKit- Returns:
- the corresponding
BOWorkOrderHeader
-
getOperationActivity
Returns theBOActivitywhich corresponds to the given id.- Parameters:
operationActivity- theBOActivityidpoolKit- thePoolKit- Returns:
- the corresponding
BOActivity
-
getActivitySkillConfiguration
public BOActivitySkillConfiguration getActivitySkillConfiguration(Long activityId, Long operationCenter, Long cardinality, PoolKit poolKit) Returns theBOActivitySkillConfigurationwhich corresponds to the given activity, operation center and team cardinality.- Parameters:
activityId- theBOActivityidoperationCenter- theBOOperationCenteridcardinality- the team cardinality idpoolKit- thePoolKit- Returns:
- the corresponding
BOActivitySkillConfiguration
-
getSkillConfiguration
Returns theBOSkillConfigurationwhich corresponds to the given id.- Parameters:
skillConfiguration- theBOSkillConfigurationidpoolKit- thePoolKit- Returns:
- the corresponding
BOSkillConfiguration
-
getSkillConfigurationSkills
public List<BOSkillConfigurationSkill> getSkillConfigurationSkills(Long skillConfiguration, PoolKit poolKit) Returns theBOSkillConfigurationSkillsearching them into the cache by the correspondingBOSkillConfigurationid.- Parameters:
skillConfiguration- theBOSkillConfigurationidpoolKit- thePoolKit- Returns:
- the list of needed
BOSkillConfigurationSkill - See Also:
-
getSkillConfigurationDivisions
public List<BOSkillConfigurationDivision> getSkillConfigurationDivisions(Long skillConfiguration, PoolKit poolKit) Returns theBOSkillConfigurationDivisionsearching them into the cache by the correspondingBOSkillConfigurationid.- Parameters:
skillConfiguration- theBOSkillConfigurationidpoolKit- thePoolKit- Returns:
- the list of needed
BOSkillConfigurationDivision - See Also:
-
getSkill
Returns theBOSkillwhich corresponds to the given id. -
getSkillDivision
Returns theBOSkillDivisionwhich corresponds to the given id.- Parameters:
skillDivision- theBOSkillDivisionidpoolKit- thePoolKit- Returns:
- the
BOSkillDivision
-
getSkillDivisionSkills
Returns theBOSkillDivisionSkillsearching them into the cache by the correspondingBOSkillDivisionid.- Parameters:
skillDivision- theBOSkillDivisionidpoolKit- thePoolKit- Returns:
- the list of needed
BOSkillDivisionSkill - See Also:
-
initializeAppointments
Initialize appointments starting from the list of work order operations.- Parameters:
woOperationIds- list ofBOWorkOrderOperationidspoolKit- thePoolKit
-
getAppointments
Returns the list ofBOAppointmentrelated to the a list of work order operations.- Parameters:
workOrderOperation- theBOWorkOrderOperationidpoolKit- thePoolKit- Returns:
- a list of BO appointment elements of type BOAppointment
- See Also:
-
loadAppointments
protected List<BOAppointment> loadAppointments(List<Long> woOperationIds, PoolKit poolKit) throws DAValidateException, DAException Loads the list of all theBOAppointments related to the a list of work order operations.- Parameters:
woOperationIds- list ofBOWorkOrderOperationidspoolKit- thePoolKit- Returns:
- a list of
BOAppointment - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getOperationCenter
Returns theBOOperationCenterwhich corresponds to the given id.- Parameters:
operationCenter- theBOOperationCenteridpoolKit- thePoolKit- Returns:
- the corresponding
BOOperationCenter
-
getWoType
Returns theBOWorkOrderTypewhich corresponds to the given id.- Parameters:
typeId- theBOWorkOrderTypeidpoolKit- thePoolKit- Returns:
- the corresponding
BOWorkOrderType
-
getAddress
Returns theBOAddresswhich corresponds to the given id. -
getAsset
Returns theBOAssetwhich corresponds to the given id.
-