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
ConstructorDescriptionSearchBlotterChannel
(com.caplin.datasource.DataSource dataSource, com.caplin.datasource.blotter.BlotterChannel blotterChannel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
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
void
sendBlotterStatusOk
(String message) void
void
sendBlotterStatusStale
(String message) void
void
setBlotterChannelListener
(com.caplin.datasource.blotter.BlotterChannelListener listener)
-
Constructor Details
-
SearchBlotterChannel
public SearchBlotterChannel(com.caplin.datasource.DataSource dataSource, com.caplin.datasource.blotter.BlotterChannel blotterChannel)
-
-
Method Details
-
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
- Specified by:
getSubject
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
getUsername
- Specified by:
getUsername
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
getParameters
- Specified by:
getParameters
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
removeBlotterItem
- Specified by:
removeBlotterItem
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
removeBlotterItems
- 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
- Specified by:
sendBlotterItemNotFound
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItems
- Specified by:
sendBlotterItems
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterMapping
- Specified by:
sendBlotterMapping
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemStatusOk
- Specified by:
sendBlotterItemStatusOk
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemStatusStale
- Specified by:
sendBlotterItemStatusStale
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusOk
public void sendBlotterStatusOk()- Specified by:
sendBlotterStatusOk
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusStale
- Specified by:
sendBlotterStatusStale
in interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusOk
- 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
-