Class BTActivityTooltipBundlerLoad<E>
java.lang.Object
overit.geocall.bl.BusinessTask<E>
overit.geocallapp.wfm.core.ux.schedule.tooltip.task.BTActivityTooltipBundlerLoad<E>
- Type Parameters:
E- the element type
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTAccountedActivityTooltipBundlerLoad,BTBundleTooltipDataLoad,BTPlannedActivityTooltipBundlerLoad
Base implementation to build the tool-tip for the activities currently aggregated in an active
Bundle.- Since:
- 10.1
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBundlerData(ActivityTooltipData tooltipData, PoolKit poolKit) If the bundler module is active, it checks if the current activity is part of an activeBundlestarting from itsBOAppointment.protected voidBuilds the tool-tip for the current activity with itsBundleinformation.protected abstract ActivityTooltipDatagetActivityTooltipData(E event) Abstract method which retrieves the activity tool-tip data starting from the specific event.protected StringgetBundleRelatedActivities(BundleEntitiesAggregate aggregate, PoolKit poolKit) Returns the codes of theBOWorkOrderOperations related to the givenBundle.protected StringgetBundleState(BundleEntitiesAggregate aggregate, PoolKit poolKit) Returns the description of the relatedBOBundleStatus.protected StringgetBundleWorkInterval(BundleEntitiesAggregate aggregate) Returns the work interval of the givenBundle.protected BundleloadBundle(Long bundleOperationId, PoolKit poolKit) Loads the neededBundlestarting from the givenBOBundleOperationid.protected BundleEntitiesAggregateloadBundleAggregate(Long bundleOperationId, PoolKit poolKit) Loads the correspondingBundleEntitiesAggregatestarting from the givenBOBundleOperationid.protected voidprepareData(ActivityTooltipData tooltipData, BundleEntitiesAggregate aggregate, PoolKit poolKit) Prepares the data to be displayed in the tool-tip.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTActivityTooltipBundlerLoad
public BTActivityTooltipBundlerLoad()
-
-
Method Details
-
getActivityTooltipData
Abstract method which retrieves the activity tool-tip data starting from the specific event.- Parameters:
event- the specific event- Returns:
- the activity tool-tip data
-
body
Builds the tool-tip for the current activity with itsBundleinformation.- Specified by:
bodyin classBusinessTask<E>- Parameters:
event- the specific eventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
addBundlerData
protected void addBundlerData(ActivityTooltipData tooltipData, PoolKit poolKit) throws DAException, DAValidateException If the bundler module is active, it checks if the current activity is part of an activeBundlestarting from itsBOAppointment.- Parameters:
tooltipData- the tool-tip datapoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadBundleAggregate
protected BundleEntitiesAggregate loadBundleAggregate(Long bundleOperationId, PoolKit poolKit) throws DAValidateException, DAException Loads the correspondingBundleEntitiesAggregatestarting from the givenBOBundleOperationid.- Parameters:
bundleOperationId- theBOBundleOperationidpoolKit- thePoolKit- Returns:
- the loaded
BundleEntitiesAggregate - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadBundle
protected Bundle loadBundle(Long bundleOperationId, PoolKit poolKit) throws DAValidateException, DAException Loads the neededBundlestarting from the givenBOBundleOperationid.- Parameters:
bundleOperationId- the bundle operation idpoolKit- thePoolKit- Returns:
- the loaded
Bundle - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
prepareData
protected void prepareData(ActivityTooltipData tooltipData, BundleEntitiesAggregate aggregate, PoolKit poolKit) throws DAValidateException, DAException Prepares the data to be displayed in the tool-tip.- Parameters:
tooltipData- the tool-tip dataaggregate- theBundleEntitiesAggregatepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getBundleRelatedActivities
Returns the codes of theBOWorkOrderOperations related to the givenBundle.- Parameters:
aggregate- theBundleEntitiesAggregatepoolKit- thePoolKit- Returns:
- the codes of the bundle related operations
-
getBundleState
protected String getBundleState(BundleEntitiesAggregate aggregate, PoolKit poolKit) throws DAValidateException, DAException Returns the description of the relatedBOBundleStatus.- Parameters:
aggregate- theBundleEntitiesAggregatepoolKit- thePoolKit- Returns:
- the
BOBundleStatusdescription - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getBundleWorkInterval
Returns the work interval of the givenBundle.- Parameters:
aggregate- theBundleEntitiesAggregate- Returns:
- the
Bundlework interval
-