java.lang.Object
overit.geocallapp.wfm.orchestrator.assets.bl.measuringelement.MeasuringElementUtils

public final class MeasuringElementUtils extends Object
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 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 BOAddress associated with the technical object
      Throws:
      DAException - if there's an error accessing the data
      DAValidateException - 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 update
      pk - the pool kit for accessing location services
      Throws:
      DAException - if there's an error accessing the data
      DAValidateException - if the address cannot be found