Class MeasuringElementUtils
java.lang.Object
overit.geocallapp.wfm.orchestrator.assets.bl.measuringelement.MeasuringElementUtils
Utility class for managing measuring element operations and relationships.
This class provides utility methods for:
- Loading addresses associated with technical objects (assets or accounts)
- Setting technical object references for measuring elements
This class cannot be instantiated and all methods are static.
- Since:
- 20.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic BOAddressloadAddress(Long technicalObjectId, PoolKit pk) Loads the address associated with a technical object (asset or account).static voidsetTechnicalObject(BOMeasuringElement measuringElement, PoolKit pk) Sets the technical object for a measuring element based on its address.
-
Method Details
-
loadAddress
public static BOAddress loadAddress(Long technicalObjectId, PoolKit pk) throws DAException, DAValidateException Loads the address associated with a technical object (asset or account).First attempts to load the technical object as an asset. If that fails, tries to load it as an account. Then retrieves the associated address.
- Parameters:
technicalObjectId- the ID of the technical object (asset or account)pk- the pool kit for accessing integration services- Returns:
- the
BOAddressassociated with the technical object - Throws:
DAException- if there's an error accessing the dataDAValidateException- if the technical object cannot be found as either an asset or account
-
setTechnicalObject
public static void setTechnicalObject(BOMeasuringElement measuringElement, PoolKit pk) throws DAException, DAValidateException Sets the technical object for a measuring element based on its address.Loads the address associated with the measuring element and sets its target as the technical object reference.
- Parameters:
measuringElement- the measuring element to updatepk- the pool kit for accessing location services- Throws:
DAException- if there's an error accessing the dataDAValidateException- if the address cannot be found
-