Package com.caplin.motif.fx.search
Class SearchBlotterChannel
- java.lang.Object
-
- com.caplin.motif.fx.search.SearchBlotterChannel
-
- All Implemented Interfaces:
com.caplin.datasource.blotter.BlotterChannel
public class SearchBlotterChannel extends java.lang.Object implements com.caplin.datasource.blotter.BlotterChannel
-
-
Constructor Summary
Constructors Constructor Description SearchBlotterChannel(com.caplin.datasource.DataSource dataSource, com.caplin.datasource.blotter.BlotterChannel blotterChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
closeChannel()
java.lang.String
getParameters()
java.lang.String
getSubject()
java.lang.String
getUsername()
void
publishStatusEvent(java.lang.String subject, java.lang.String status, java.lang.String message)
Sends a status ok on the channel, with a JSON message consisting of a status and message.void
publishTooManyResults(java.lang.String subject)
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.void
removeBlotterItem(java.lang.String uniqueId)
void
removeBlotterItems(java.util.List<java.lang.String> uniqueIds)
void
sendBlotterItem(com.caplin.datasource.blotter.BlotterItem item)
void
sendBlotterItemNotFound(java.lang.String uniqueId)
void
sendBlotterItems(java.util.List<com.caplin.datasource.blotter.BlotterItem> items)
void
sendBlotterItemStatusOk(java.lang.String uniqueId)
void
sendBlotterItemStatusStale(java.lang.String uniqueId)
void
sendBlotterMapping(java.lang.String newSubject)
void
sendBlotterStatusOk()
void
sendBlotterStatusOk(java.lang.String message)
void
sendBlotterStatusStale()
void
sendBlotterStatusStale(java.lang.String message)
void
sendEmptyBlotter()
void
setBlotterChannelListener(com.caplin.datasource.blotter.BlotterChannelListener listener)
-
-
-
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 interfacecom.caplin.datasource.blotter.BlotterChannel
-
getSubject
public java.lang.String getSubject()
- Specified by:
getSubject
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
getParameters
public java.lang.String getParameters()
- Specified by:
getParameters
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
removeBlotterItem
public void removeBlotterItem(java.lang.String uniqueId)
- Specified by:
removeBlotterItem
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
removeBlotterItems
public void removeBlotterItems(java.util.List<java.lang.String> uniqueIds)
- Specified by:
removeBlotterItems
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
clear
public void clear()
- Specified by:
clear
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItem
public void sendBlotterItem(com.caplin.datasource.blotter.BlotterItem item)
- Specified by:
sendBlotterItem
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemNotFound
public void sendBlotterItemNotFound(java.lang.String uniqueId)
- Specified by:
sendBlotterItemNotFound
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItems
public void sendBlotterItems(java.util.List<com.caplin.datasource.blotter.BlotterItem> items)
- Specified by:
sendBlotterItems
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterMapping
public void sendBlotterMapping(java.lang.String newSubject)
- Specified by:
sendBlotterMapping
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemStatusOk
public void sendBlotterItemStatusOk(java.lang.String uniqueId)
- Specified by:
sendBlotterItemStatusOk
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemStatusStale
public void sendBlotterItemStatusStale(java.lang.String uniqueId)
- Specified by:
sendBlotterItemStatusStale
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusOk
public void sendBlotterStatusOk()
- Specified by:
sendBlotterStatusOk
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusStale
public void sendBlotterStatusStale(java.lang.String message)
- Specified by:
sendBlotterStatusStale
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusOk
public void sendBlotterStatusOk(java.lang.String message)
- Specified by:
sendBlotterStatusOk
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusStale
public void sendBlotterStatusStale()
- Specified by:
sendBlotterStatusStale
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendEmptyBlotter
public void sendEmptyBlotter()
- Specified by:
sendEmptyBlotter
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
setBlotterChannelListener
public void setBlotterChannelListener(com.caplin.datasource.blotter.BlotterChannelListener listener)
- Specified by:
setBlotterChannelListener
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
-