Class FieldUtility
java.lang.Object
com.caplin.motif.fx.ret.common.utility.field.FieldUtility
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getAllowedActions
(com.caplin.ret.trapi.fx.FXOrder order, com.caplin.ret.trapi.fx.FXOrder parentOrder, com.m_systems.trapi.lib.record.LOMSOrderState state, boolean isPartiallyFilled, org.slf4j.Logger logger) Returns the list of allowed actions for a given order and a given statestatic String
getAllowedActions
(com.caplin.ret.trapi.fx.FXOrder order, com.caplin.ret.trapi.fx.order.OrderMonitorService orderMonitorService, com.m_systems.trapi.lib.record.LOMSOrderState state, boolean isPartiallyFilled, org.slf4j.Logger logger) Returns the list of allowed actions for a given order and a given statestatic List<AllowedAction>
getAllowedActionsAsList
(com.caplin.ret.trapi.fx.FXOrder order, com.caplin.ret.trapi.fx.FXOrder parentOrder, com.caplin.ret.trapi.fx.order.OrderMonitorService orderMonitorService, com.m_systems.trapi.lib.record.LOMSOrderState state, boolean isPartiallyFilled, org.slf4j.Logger logger) static String
getCommaSeparatedAllowedAction
(List<AllowedAction> actions) static String
getCommaSeparatedNotificationMethod
(List<com.caplin.ret.trapi.fx.order.NotificationMethod> notificationMethods) static String
getCommaSeparatedString
(List<?> list) static String
getFormattedRemarks
(List<String> dealRemarksLines) static String
getLastActionDateTime
(com.caplin.ret.trapi.fx.order.OrderEventHistory latestEventHistory) static String
getOrderEventHistoryInJsonFormat
(List<com.caplin.ret.trapi.fx.order.OrderEventHistory> eventHistory) static String
getTemperature
(com.caplin.ret.trapi.fx.FXOrder order) removeNullValues
(Map<String, String> fields, org.slf4j.Logger logger) replaceNullValuesWithEmptyString
(Map<String, String> fields, org.slf4j.Logger logger) static void
-
Field Details
-
EMPTY_STRING
- See Also:
-
-
Constructor Details
-
FieldUtility
public FieldUtility()
-
-
Method Details
-
getOrderEventHistoryInJsonFormat
-
getLastActionDateTime
public static String getLastActionDateTime(com.caplin.ret.trapi.fx.order.OrderEventHistory latestEventHistory) -
getFormattedRemarks
-
getCommaSeparatedString
-
getCommaSeparatedAllowedAction
-
getCommaSeparatedNotificationMethod
-
getAllowedActions
public static String getAllowedActions(com.caplin.ret.trapi.fx.FXOrder order, com.caplin.ret.trapi.fx.order.OrderMonitorService orderMonitorService, com.m_systems.trapi.lib.record.LOMSOrderState state, boolean isPartiallyFilled, org.slf4j.Logger logger) Returns the list of allowed actions for a given order and a given state- Returns:
- a comma separated String representing the allowed actions
-
getAllowedActions
public static String getAllowedActions(com.caplin.ret.trapi.fx.FXOrder order, com.caplin.ret.trapi.fx.FXOrder parentOrder, com.m_systems.trapi.lib.record.LOMSOrderState state, boolean isPartiallyFilled, org.slf4j.Logger logger) Returns the list of allowed actions for a given order and a given state- Returns:
- a comma separated String representing the allowed actions
-
getAllowedActionsAsList
public static List<AllowedAction> getAllowedActionsAsList(com.caplin.ret.trapi.fx.FXOrder order, com.caplin.ret.trapi.fx.FXOrder parentOrder, com.caplin.ret.trapi.fx.order.OrderMonitorService orderMonitorService, com.m_systems.trapi.lib.record.LOMSOrderState state, boolean isPartiallyFilled, org.slf4j.Logger logger) -
getTemperature
-
storeValueInMap
-
removeNullValues
-
replaceNullValuesWithEmptyString
-