public class SearchBlotterChannel extends Object implements com.caplin.datasource.blotter.BlotterChannel
Constructor and Description |
---|
SearchBlotterChannel(com.caplin.datasource.DataSource dataSource,
com.caplin.datasource.blotter.BlotterChannel blotterChannel) |
Modifier and Type | Method and 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 |
sendBlotterStatusStale() |
void |
sendEmptyBlotter() |
void |
setBlotterChannelListener(com.caplin.datasource.blotter.BlotterChannelListener listener) |
public SearchBlotterChannel(com.caplin.datasource.DataSource dataSource, com.caplin.datasource.blotter.BlotterChannel blotterChannel)
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.
subject
- The subject of the search blotter.com.fasterxml.jackson.core.JsonProcessingException
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.
subject
- The subject of the search blotter.status
- The status.message
- The subject of the search blotter.com.fasterxml.jackson.core.JsonProcessingException
public void closeChannel()
closeChannel
in interface com.caplin.datasource.blotter.BlotterChannel
public String getSubject()
getSubject
in interface com.caplin.datasource.blotter.BlotterChannel
public String getUsername()
getUsername
in interface com.caplin.datasource.blotter.BlotterChannel
public String getParameters()
getParameters
in interface com.caplin.datasource.blotter.BlotterChannel
public void removeBlotterItem(String uniqueId)
removeBlotterItem
in interface com.caplin.datasource.blotter.BlotterChannel
public void removeBlotterItems(List<String> uniqueIds)
removeBlotterItems
in interface com.caplin.datasource.blotter.BlotterChannel
public void clear()
clear
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendBlotterItem(com.caplin.datasource.blotter.BlotterItem item)
sendBlotterItem
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendBlotterItemNotFound(String uniqueId)
sendBlotterItemNotFound
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendBlotterItems(List<com.caplin.datasource.blotter.BlotterItem> items)
sendBlotterItems
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendBlotterMapping(String newSubject)
sendBlotterMapping
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendBlotterItemStatusOk(String uniqueId)
sendBlotterItemStatusOk
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendBlotterItemStatusStale(String uniqueId)
sendBlotterItemStatusStale
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendBlotterStatusOk()
sendBlotterStatusOk
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendBlotterStatusStale()
sendBlotterStatusStale
in interface com.caplin.datasource.blotter.BlotterChannel
public void sendEmptyBlotter()
sendEmptyBlotter
in interface com.caplin.datasource.blotter.BlotterChannel
public void setBlotterChannelListener(com.caplin.datasource.blotter.BlotterChannelListener listener)
setBlotterChannelListener
in interface com.caplin.datasource.blotter.BlotterChannel
Copyright © 2020 Caplin Systems.