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 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()
String
getParameters()
String
getSubject()
String
getUsername()
void
publishStatusEvent(String subject, String status, String message)
Sends a status ok on the channel, with a JSON message consisting of a status and message.void
publishTooManyResults(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(String uniqueId)
void
removeBlotterItems(List<String> uniqueIds)
void
sendBlotterItem(com.caplin.datasource.blotter.BlotterItem item)
void
sendBlotterItemNotFound(String uniqueId)
void
sendBlotterItems(List<com.caplin.datasource.blotter.BlotterItem> items)
void
sendBlotterItemStatusOk(String uniqueId)
void
sendBlotterItemStatusStale(String uniqueId)
void
sendBlotterMapping(String newSubject)
void
sendBlotterStatusOk()
void
sendBlotterStatusOk(String message)
void
sendBlotterStatusStale()
void
sendBlotterStatusStale(String message)
void
sendEmptyBlotter()
void
setBlotterChannelListener(com.caplin.datasource.blotter.BlotterChannelListener listener)
-
-
-
Method Detail
-
publishTooManyResults
public void publishTooManyResults(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(String subject, String status, 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 String getSubject()
- Specified by:
getSubject
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
getParameters
public String getParameters()
- Specified by:
getParameters
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
removeBlotterItem
public void removeBlotterItem(String uniqueId)
- Specified by:
removeBlotterItem
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
removeBlotterItems
public void removeBlotterItems(List<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(String uniqueId)
- Specified by:
sendBlotterItemNotFound
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItems
public void sendBlotterItems(List<com.caplin.datasource.blotter.BlotterItem> items)
- Specified by:
sendBlotterItems
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterMapping
public void sendBlotterMapping(String newSubject)
- Specified by:
sendBlotterMapping
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemStatusOk
public void sendBlotterItemStatusOk(String uniqueId)
- Specified by:
sendBlotterItemStatusOk
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemStatusStale
public void sendBlotterItemStatusStale(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(String message)
- Specified by:
sendBlotterStatusStale
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusOk
public void sendBlotterStatusOk(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
-
-