Class BTTimeZoneResolver<T,E extends TimeZoneResolverEvent<T>>
java.lang.Object
overit.geocall.bl.BusinessTask<E>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<E>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<E>
overit.geocallapp.utilities.core.timezone.task.BTTimeZoneResolver<T,E>
- Type Parameters:
T- the type of input data used for timezone resolutionE- the type ofTimeZoneResolverEventprocessed by this task
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTAccountTimeZoneResolver,BTAssetTimeZoneResolver,BTBundlerHeaderTimeZoneResolver,BTInterventionTimeZoneResolver,BTMeterTimeZoneResolver,BTOperationCenterTimeZoneResolver,BTResourceTimeZoneResolver,BTScenarioTimeZoneResolver,BTSharedResourceTimeZoneResolver,BTTechnicalObjectTimeZoneResolver,BTTimesheetHeaderTimeZoneResolver,BTTimesheetTimeZoneResolver,BTWorkOrderHeaderTimeZoneResolver,BTWorkOrderOperationTimeZoneResolver
public abstract class BTTimeZoneResolver<T,E extends TimeZoneResolverEvent<T>>
extends ValidPermissionBusinessTask<E>
Abstract business task for resolving
When timezone resolution is active, it delegates to the abstract
TimeZone objects with company configuration support. When timezone resolution is active, it delegates to the abstract
resolveTimeZone(TimeZoneResolverInput, PoolKit)
method for custom resolution logic. When inactive, it returns the system default timezone.- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecutes the timezone resolution logic based on company configuration.booleanIndicates that timezone resolution tasks are always valid for execution.protected abstract TimeZoneresolveTimeZone(TimeZoneResolverInput<T> input, PoolKit poolKit) Resolves the appropriateTimeZonebased on the provided input data.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTimeZoneResolver
public BTTimeZoneResolver()
-
-
Method Details
-
execute
Executes the timezone resolution logic based on company configuration.- Specified by:
executein classValidExecutionBusinessTask<E extends TimeZoneResolverEvent<T>>- Parameters:
event- theTimeZoneResolverEventcontaining the input datapoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during resolutionDAValidateException- if validation fails during resolution
-
isValidExecution
public boolean isValidExecution()Indicates that timezone resolution tasks are always valid for execution.- Returns:
- true, indicating that timezone resolution is always permitted
-
resolveTimeZone
protected abstract TimeZone resolveTimeZone(TimeZoneResolverInput<T> input, PoolKit poolKit) throws DAException, DAValidateException Resolves the appropriateTimeZonebased on the provided input data.- Parameters:
input- theTimeZoneResolverInputcontaining the data for timezone resolutionpoolKit- thePoolKit- Returns:
- the resolved
TimeZone - Throws:
DAException- if a data access error occurs during resolutionDAValidateException- if validation fails during resolution
-