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
ConstructorsConstructorDescriptionSearchBlotterChannel(com.caplin.datasource.DataSource dataSource, com.caplin.datasource.blotter.BlotterChannel blotterChannel) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidvoidpublishStatusEvent(String subject, String status, String message) Sends a status ok on the channel, with a JSON message consisting of a status and message.voidpublishTooManyResults(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.voidremoveBlotterItem(String uniqueId) voidremoveBlotterItems(List<String> uniqueIds) voidsendBlotterItem(com.caplin.datasource.blotter.BlotterItem item) voidsendBlotterItemNotFound(String uniqueId) voidsendBlotterItems(List<com.caplin.datasource.blotter.BlotterItem> items) voidsendBlotterItemStatusOk(String uniqueId) voidsendBlotterItemStatusStale(String uniqueId) voidsendBlotterMapping(String newSubject) voidvoidsendBlotterStatusOk(String message) voidvoidsendBlotterStatusStale(String message) voidvoidsetBlotterChannelListener(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:
closeChannelin interfacecom.caplin.datasource.blotter.BlotterChannel
-
getSubject
- Specified by:
getSubjectin interfacecom.caplin.datasource.blotter.BlotterChannel
-
getUsername
- Specified by:
getUsernamein interfacecom.caplin.datasource.blotter.BlotterChannel
-
getParameters
- Specified by:
getParametersin interfacecom.caplin.datasource.blotter.BlotterChannel
-
removeBlotterItem
- Specified by:
removeBlotterItemin interfacecom.caplin.datasource.blotter.BlotterChannel
-
removeBlotterItems
- Specified by:
removeBlotterItemsin interfacecom.caplin.datasource.blotter.BlotterChannel
-
clear
public void clear()- Specified by:
clearin interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItem
public void sendBlotterItem(com.caplin.datasource.blotter.BlotterItem item) - Specified by:
sendBlotterItemin interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemNotFound
- Specified by:
sendBlotterItemNotFoundin interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItems
- Specified by:
sendBlotterItemsin interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterMapping
- Specified by:
sendBlotterMappingin interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemStatusOk
- Specified by:
sendBlotterItemStatusOkin interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterItemStatusStale
- Specified by:
sendBlotterItemStatusStalein interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusOk
public void sendBlotterStatusOk()- Specified by:
sendBlotterStatusOkin interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusStale
- Specified by:
sendBlotterStatusStalein interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusOk
- Specified by:
sendBlotterStatusOkin interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendBlotterStatusStale
public void sendBlotterStatusStale()- Specified by:
sendBlotterStatusStalein interfacecom.caplin.datasource.blotter.BlotterChannel
-
sendEmptyBlotter
public void sendEmptyBlotter()- Specified by:
sendEmptyBlotterin interfacecom.caplin.datasource.blotter.BlotterChannel
-
setBlotterChannelListener
public void setBlotterChannelListener(com.caplin.datasource.blotter.BlotterChannelListener listener) - Specified by:
setBlotterChannelListenerin interfacecom.caplin.datasource.blotter.BlotterChannel
-