Class SearchBlotterChannel

  • All Implemented Interfaces:
    com.caplin.datasource.blotter.BlotterChannel

    public class SearchBlotterChannel
    extends java.lang.Object
    implements com.caplin.datasource.blotter.BlotterChannel
    • Constructor Detail

      • SearchBlotterChannel

        public SearchBlotterChannel​(com.caplin.datasource.DataSource dataSource,
                                    com.caplin.datasource.blotter.BlotterChannel blotterChannel)
    • Method Detail

      • publishTooManyResults

        public void publishTooManyResults​(java.lang.String subject)
                                   throws com.fasterxml.jackson.core.JsonProcessingException

        Sends a status ok on the channel, with a message to inform the user there are too many results and they need to narrow down their search criteria.

        Parameters:
        subject - The subject of the search blotter.
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • publishStatusEvent

        public void publishStatusEvent​(java.lang.String subject,
                                       java.lang.String status,
                                       java.lang.String message)
                                throws com.fasterxml.jackson.core.JsonProcessingException

        Sends a status ok on the channel, with a JSON message consisting of a status and message.

        Under normal circumstances this method is not used.

        Parameters:
        subject - The subject of the search blotter.
        status - The status.
        message - The subject of the search blotter.
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • closeChannel

        public void closeChannel()
        Specified by:
        closeChannel in interface com.caplin.datasource.blotter.BlotterChannel
      • getSubject

        public java.lang.String getSubject()
        Specified by:
        getSubject in interface com.caplin.datasource.blotter.BlotterChannel
      • getUsername

        public java.lang.String getUsername()
        Specified by:
        getUsername in interface com.caplin.datasource.blotter.BlotterChannel
      • getParameters

        public java.lang.String getParameters()
        Specified by:
        getParameters in interface com.caplin.datasource.blotter.BlotterChannel
      • removeBlotterItem

        public void removeBlotterItem​(java.lang.String uniqueId)
        Specified by:
        removeBlotterItem in interface com.caplin.datasource.blotter.BlotterChannel
      • removeBlotterItems

        public void removeBlotterItems​(java.util.List<java.lang.String> uniqueIds)
        Specified by:
        removeBlotterItems in interface com.caplin.datasource.blotter.BlotterChannel
      • clear

        public void clear()
        Specified by:
        clear in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterItem

        public void sendBlotterItem​(com.caplin.datasource.blotter.BlotterItem item)
        Specified by:
        sendBlotterItem in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterItemNotFound

        public void sendBlotterItemNotFound​(java.lang.String uniqueId)
        Specified by:
        sendBlotterItemNotFound in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterItems

        public void sendBlotterItems​(java.util.List<com.caplin.datasource.blotter.BlotterItem> items)
        Specified by:
        sendBlotterItems in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterMapping

        public void sendBlotterMapping​(java.lang.String newSubject)
        Specified by:
        sendBlotterMapping in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterItemStatusOk

        public void sendBlotterItemStatusOk​(java.lang.String uniqueId)
        Specified by:
        sendBlotterItemStatusOk in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterItemStatusStale

        public void sendBlotterItemStatusStale​(java.lang.String uniqueId)
        Specified by:
        sendBlotterItemStatusStale in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterStatusOk

        public void sendBlotterStatusOk()
        Specified by:
        sendBlotterStatusOk in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterStatusStale

        public void sendBlotterStatusStale​(java.lang.String message)
        Specified by:
        sendBlotterStatusStale in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterStatusOk

        public void sendBlotterStatusOk​(java.lang.String message)
        Specified by:
        sendBlotterStatusOk in interface com.caplin.datasource.blotter.BlotterChannel
      • sendBlotterStatusStale

        public void sendBlotterStatusStale()
        Specified by:
        sendBlotterStatusStale in interface com.caplin.datasource.blotter.BlotterChannel
      • sendEmptyBlotter

        public void sendEmptyBlotter()
        Specified by:
        sendEmptyBlotter in interface com.caplin.datasource.blotter.BlotterChannel
      • setBlotterChannelListener

        public void setBlotterChannelListener​(com.caplin.datasource.blotter.BlotterChannelListener listener)
        Specified by:
        setBlotterChannelListener in interface com.caplin.datasource.blotter.BlotterChannel