Class AssetUtils

java.lang.Object
overit.geocallapp.wfm.assets.bl.AssetUtils

public class AssetUtils extends Object
Utility class that contains some utility methods for the asset module.
Since:
21.0
  • Method Details

    • notifyAssetUpdate

      public static void notifyAssetUpdate(Long assetId, PoolKit poolKit) throws DAException, DAValidateException
      Notifies the system about an asset update.
      Parameters:
      assetId - the ID of the asset that was updated
      poolKit - the pool kit to use for database operations
      Throws:
      DAException - if a data access error occurs
      DAValidateException - if validation fails
      Since:
      21.0
    • notifyAssetUpdate

      public static void notifyAssetUpdate(Long assetId, PooledConnection connection) throws DAException, DAValidateException
      Notifies the system about an asset update.
      Parameters:
      assetId - the ID of the asset that was updated
      connection - the connection to use for database operations
      Throws:
      DAException - if a data access error occurs
      DAValidateException - if validation fails
      Since:
      21.0
    • notifyAssetUpdate

      public static void notifyAssetUpdate(String assetCode, PooledConnection connection) throws DAException, DAValidateException
      Notifies the system about an asset update.
      Parameters:
      assetCode - the code of the asset that was updated
      connection - the connection to use for database operations
      Throws:
      DAException - if a data access error occurs
      DAValidateException - if validation fails
      Since:
      21.0
    • notifyAssetInsert

      public static void notifyAssetInsert(Long assetId, PoolKit poolKit) throws DAException, DAValidateException
      Notifies the system about an asset insertion.
      Parameters:
      assetId - the ID of the asset that was inserted
      poolKit - the pool kit to use for database operations
      Throws:
      DAException - if a data access error occurs
      DAValidateException - if validation fails
      Since:
      21.0
    • notifyAssetDetach

      public static void notifyAssetDetach(Long assetId, PoolKit poolKit) throws DAException, DAValidateException
      Notifies the system about an asset being detached from its parent.
      Parameters:
      assetId - the ID of the asset that was detached
      poolKit - the pool kit to use for database operations
      Throws:
      DAException - if a data access error occurs
      DAValidateException - if validation fails
      Since:
      21.0
    • searchAssetStatuses

      public static List<BOAssetStatus> searchAssetStatuses(AssetStatusSearchFilter filter) throws DAException, DAValidateException
      Searches for asset statuses based on the provided filter.
      Parameters:
      filter - the filter to apply for the search
      Returns:
      a list of BOAssetStatus objects representing the asset statuses
      Throws:
      DAException - if a data access error occurs
      DAValidateException - if validation fails
      Since:
      21.0