Class FieldUtility

java.lang.Object
com.caplin.motif.fx.ret.common.utility.field.FieldUtility

public class FieldUtility extends Object
  • Field Details

  • Constructor Details

    • FieldUtility

      public FieldUtility()
  • Method Details

    • getOrderEventHistoryInJsonFormat

      public static String getOrderEventHistoryInJsonFormat(List<com.caplin.ret.trapi.fx.order.OrderEventHistory> eventHistory)
    • getLastActionDateTime

      public static String getLastActionDateTime(com.caplin.ret.trapi.fx.order.OrderEventHistory latestEventHistory)
    • getFormattedRemarks

      public static String getFormattedRemarks(List<String> dealRemarksLines)
    • getCommaSeparatedString

      public static String getCommaSeparatedString(List<?> list)
    • getCommaSeparatedAllowedAction

      public static String getCommaSeparatedAllowedAction(List<AllowedAction> actions)
    • getCommaSeparatedNotificationMethod

      public static String getCommaSeparatedNotificationMethod(List<com.caplin.ret.trapi.fx.order.NotificationMethod> notificationMethods)
    • 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

      public static String getTemperature(com.caplin.ret.trapi.fx.FXOrder order)
    • storeValueInMap

      public static void storeValueInMap(Map<String,String> fields, String fieldName, String value)
    • removeNullValues

      public static Map<String,String> removeNullValues(Map<String,String> fields, org.slf4j.Logger logger)
    • replaceNullValuesWithEmptyString

      public static Map<String,String> replaceNullValuesWithEmptyString(Map<String,String> fields, org.slf4j.Logger logger)