Class InjectableFieldUtility


  • public class InjectableFieldUtility
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      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
      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)  
      java.lang.String getCommaSeparatedAllowedAction​(java.util.List<AllowedAction> actions)  
      java.lang.String getCommaSeparatedNotificationMethod​(java.util.List<com.caplin.ret.trapi.fx.order.NotificationMethod> notificationMethods)  
      java.lang.String getCommaSeparatedString​(java.util.List<?> list)  
      java.lang.String getFormattedRemarks​(java.util.List<java.lang.String> dealRemarksLines)  
      java.lang.String getLastActionDateTime​(com.caplin.ret.trapi.fx.order.OrderEventHistory latestEventHistory)  
      java.lang.String getOrderEventHistoryInJsonFormat​(java.util.List<com.caplin.ret.trapi.fx.order.OrderEventHistory> eventHistory)  
      java.lang.String getTemperature​(com.caplin.ret.trapi.fx.FXOrder order)  
      java.util.Map<java.lang.String,​java.lang.String> removeNullValues​(java.util.Map<java.lang.String,​java.lang.String> fields, org.slf4j.Logger logger)  
      java.util.Map<java.lang.String,​java.lang.String> replaceNullValuesWithEmptyString​(java.util.Map<java.lang.String,​java.lang.String> fields, org.slf4j.Logger logger)  
      void storeValueInMap​(java.util.Map<java.lang.String,​java.lang.String> fields, java.lang.String fieldName, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InjectableFieldUtility

        public InjectableFieldUtility()
    • Method Detail

      • getOrderEventHistoryInJsonFormat

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

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

        public java.lang.String getFormattedRemarks​(java.util.List<java.lang.String> dealRemarksLines)
      • getCommaSeparatedString

        public java.lang.String getCommaSeparatedString​(java.util.List<?> list)
      • getCommaSeparatedAllowedAction

        public java.lang.String getCommaSeparatedAllowedAction​(java.util.List<AllowedAction> actions)
      • getCommaSeparatedNotificationMethod

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

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

        public void storeValueInMap​(java.util.Map<java.lang.String,​java.lang.String> fields,
                                    java.lang.String fieldName,
                                    java.lang.String value)
      • removeNullValues

        public 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 java.util.Map<java.lang.String,​java.lang.String> replaceNullValuesWithEmptyString​(java.util.Map<java.lang.String,​java.lang.String> fields,
                                                                                                       org.slf4j.Logger logger)