Class FieldUtility
- java.lang.Object
-
- com.caplin.motif.fx.ret.common.utility.field.FieldUtility
-
public class FieldUtility extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EMPTY_STRING
-
Constructor Summary
Constructors Constructor Description FieldUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.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 java.lang.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 java.util.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 java.lang.String
getCommaSeparatedAllowedAction(java.util.List<AllowedAction> actions)
static java.lang.String
getCommaSeparatedNotificationMethod(java.util.List<com.caplin.ret.trapi.fx.order.NotificationMethod> notificationMethods)
static java.lang.String
getCommaSeparatedString(java.util.List<?> list)
static java.lang.String
getFormattedRemarks(java.util.List<java.lang.String> dealRemarksLines)
static java.lang.String
getLastActionDateTime(com.caplin.ret.trapi.fx.order.OrderEventHistory latestEventHistory)
static java.lang.String
getOrderEventHistoryInJsonFormat(java.util.List<com.caplin.ret.trapi.fx.order.OrderEventHistory> eventHistory)
static java.lang.String
getTemperature(com.caplin.ret.trapi.fx.FXOrder order)
static java.util.Map<java.lang.String,java.lang.String>
removeNullValues(java.util.Map<java.lang.String,java.lang.String> fields, org.slf4j.Logger logger)
static java.util.Map<java.lang.String,java.lang.String>
replaceNullValuesWithEmptyString(java.util.Map<java.lang.String,java.lang.String> fields, org.slf4j.Logger logger)
static void
storeValueInMap(java.util.Map<java.lang.String,java.lang.String> fields, java.lang.String fieldName, java.lang.String value)
-
-
-
Field Detail
-
EMPTY_STRING
public static final java.lang.String EMPTY_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOrderEventHistoryInJsonFormat
public static java.lang.String getOrderEventHistoryInJsonFormat(java.util.List<com.caplin.ret.trapi.fx.order.OrderEventHistory> eventHistory)
-
getLastActionDateTime
public static java.lang.String getLastActionDateTime(com.caplin.ret.trapi.fx.order.OrderEventHistory latestEventHistory)
-
getFormattedRemarks
public static java.lang.String getFormattedRemarks(java.util.List<java.lang.String> dealRemarksLines)
-
getCommaSeparatedString
public static java.lang.String getCommaSeparatedString(java.util.List<?> list)
-
getCommaSeparatedAllowedAction
public static java.lang.String getCommaSeparatedAllowedAction(java.util.List<AllowedAction> actions)
-
getCommaSeparatedNotificationMethod
public static java.lang.String getCommaSeparatedNotificationMethod(java.util.List<com.caplin.ret.trapi.fx.order.NotificationMethod> notificationMethods)
-
getAllowedActions
public static java.lang.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 java.lang.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 java.util.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
public static java.lang.String getTemperature(com.caplin.ret.trapi.fx.FXOrder order)
-
storeValueInMap
public static void storeValueInMap(java.util.Map<java.lang.String,java.lang.String> fields, java.lang.String fieldName, java.lang.String value)
-
removeNullValues
public static java.util.Map<java.lang.String,java.lang.String> removeNullValues(java.util.Map<java.lang.String,java.lang.String> fields, org.slf4j.Logger logger)
-
replaceNullValuesWithEmptyString
public static java.util.Map<java.lang.String,java.lang.String> replaceNullValuesWithEmptyString(java.util.Map<java.lang.String,java.lang.String> fields, org.slf4j.Logger logger)
-
-