Class InjectableFieldUtility

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

public class InjectableFieldUtility extends Object
  • Constructor Details

    • InjectableFieldUtility

      public InjectableFieldUtility()
  • Method Details

    • getOrderEventHistoryInJsonFormat

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

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

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

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

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

      public String getCommaSeparatedNotificationMethod(List<com.caplin.ret.trapi.fx.order.NotificationMethod> notificationMethods)
    • getAllowedActions

      public 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 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 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 String getTemperature(com.caplin.ret.trapi.fx.FXOrder order)
    • storeValueInMap

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

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

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