Class FieldUtility
java.lang.Object
com.caplin.motif.fx.ret.common.utility.field.FieldUtility
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAllowedActions(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 StringgetAllowedActions(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 StringgetCommaSeparatedAllowedAction(List<AllowedAction> actions) static StringgetCommaSeparatedNotificationMethod(List<com.caplin.ret.trapi.fx.order.NotificationMethod> notificationMethods) static StringgetCommaSeparatedString(List<?> list) static StringgetFormattedRemarks(List<String> dealRemarksLines) static StringgetLastActionDateTime(com.caplin.ret.trapi.fx.order.OrderEventHistory latestEventHistory) static StringgetOrderEventHistoryInJsonFormat(List<com.caplin.ret.trapi.fx.order.OrderEventHistory> eventHistory) static StringgetTemperature(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
-