Package overit.geocallapp.wfm.assets.bl
Class AssetUtils
java.lang.Object
overit.geocallapp.wfm.assets.bl.AssetUtils
Utility class that contains some utility methods for the asset module.
- Since:
- 21.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidnotifyAssetDetach(Long assetId, PoolKit poolKit) Notifies the system about an asset being detached from its parent.static voidnotifyAssetInsert(Long assetId, PoolKit poolKit) Notifies the system about an asset insertion.static voidnotifyAssetUpdate(Long assetId, PoolKit poolKit) Notifies the system about an asset update.static voidnotifyAssetUpdate(Long assetId, PooledConnection connection) Notifies the system about an asset update.static voidnotifyAssetUpdate(String assetCode, PooledConnection connection) Notifies the system about an asset update.static List<BOAssetStatus> Searches for asset statuses based on the provided filter.
-
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 updatedpoolKit- the pool kit to use for database operations- Throws:
DAException- if a data access error occursDAValidateException- 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 updatedconnection- the connection to use for database operations- Throws:
DAException- if a data access error occursDAValidateException- 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 updatedconnection- the connection to use for database operations- Throws:
DAException- if a data access error occursDAValidateException- 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 insertedpoolKit- the pool kit to use for database operations- Throws:
DAException- if a data access error occursDAValidateException- 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 detachedpoolKit- the pool kit to use for database operations- Throws:
DAException- if a data access error occursDAValidateException- 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
BOAssetStatusobjects representing the asset statuses - Throws:
DAException- if a data access error occursDAValidateException- if validation fails- Since:
- 21.0
-