Class AssetsUtils

java.lang.Object
overit.geocallapp.wfm.orchestrator.assets.AssetsUtils

public class AssetsUtils extends Object
  • Field Details

  • Method Details

    • deserializeCharacteristicValue

      public static Object deserializeCharacteristicValue(Long dataType, String value) throws DAValidateException
      Throws:
      DAValidateException
    • deserializeValue

      protected static Object deserializeValue(Long dataType, String value) throws ParseException, DAValidateException
      Throws:
      ParseException
      DAValidateException
    • serializeCharacteristicValue

      public static String serializeCharacteristicValue(Long dataType, Object value)
    • processTechnicalObjectNotifications

      public static void processTechnicalObjectNotifications(Long technicalObjectId, PoolKit poolKit, boolean isUpdate) throws DAException, DAValidateException
      Notifies the system about the insertion or update of a technical object. This method determines whether the technical object is an Asset or an Account and triggers the appropriate notification events.
      Parameters:
      technicalObjectId - The ID of the technical object that was inserted or updated
      poolKit - The pool kit to use for database operations
      isUpdate - A flag indicating whether the operation is an update (true) or an insert (false)
      Throws:
      DAException - If a data access error occurs
      DAValidateException - If validation fails during the notification process
    • processAddressInsertNotifications

      public static void processAddressInsertNotifications(Long addressId, PoolKit poolKit) throws DAException, DAValidateException
      Notifies the system about an address insertion. This method loads the address by ID and triggers the appropriate notification events. If the address is associated with a technical object, it also notifies about that relationship.
      Parameters:
      addressId - the ID of the address that was inserted
      poolKit - the pool kit to use for database operations
      Throws:
      DAException - if a data access error occurs
      DAValidateException - if validation fails during the notification process
      Since:
      21.0
    • processAddressInsertNotifications

      public static void processAddressInsertNotifications(Long addressId, PooledConnection connection) throws DAException, DAValidateException
      Notifies the system about an address insertion.
      Parameters:
      addressId - the ID of the address that was inserted
      connection - the connection to use for database operations
      Throws:
      DAException - if a data access error occurs
      DAValidateException - if validation fails
      Since:
      21.0