Class AssetsUtils
java.lang.Object
overit.geocallapp.wfm.orchestrator.assets.AssetsUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectdeserializeCharacteristicValue(Long dataType, String value) protected static ObjectdeserializeValue(Long dataType, String value) static voidprocessAddressInsertNotifications(Long addressId, PoolKit poolKit) Notifies the system about an address insertion.static voidprocessAddressInsertNotifications(Long addressId, PooledConnection connection) Notifies the system about an address insertion.static voidprocessTechnicalObjectNotifications(Long technicalObjectId, PoolKit poolKit, boolean isUpdate) Notifies the system about the insertion or update of a technical object.static StringserializeCharacteristicValue(Long dataType, Object value)
-
Field Details
-
BOOLEAN_TRUE
- See Also:
-
BOOLEAN_FALSE
- See Also:
-
-
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:
ParseExceptionDAValidateException
-
serializeCharacteristicValue
-
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 updatedpoolKit- The pool kit to use for database operationsisUpdate- A flag indicating whether the operation is an update (true) or an insert (false)- Throws:
DAException- If a data access error occursDAValidateException- 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 insertedpoolKit- the pool kit to use for database operations- Throws:
DAException- if a data access error occursDAValidateException- 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 insertedconnection- the connection to use for database operations- Throws:
DAException- if a data access error occursDAValidateException- if validation fails- Since:
- 21.0
-