public interface UiConnection
| Modifier and Type | Method and Description | 
|---|---|
UiTopoLayout | 
currentLayout()
Returns the current layout context. 
 | 
String | 
currentView()
Returns the current view identifier. 
 | 
void | 
sendMessage(com.fasterxml.jackson.databind.node.ObjectNode message)
Sends the specified JSON message to the user interface client. 
 | 
void | 
sendMessage(String type,
           com.fasterxml.jackson.databind.node.ObjectNode payload)
Composes a message into JSON and sends it to the user interface client. 
 | 
void | 
setCurrentLayout(UiTopoLayout topoLayout)
Changes the current layout context to the specified layout. 
 | 
void | 
setCurrentView(String viewId)
Sets the currently selected view. 
 | 
String | 
userName()
Returns the name of the logged-in user for which this connection exists. 
 | 
String userName()
UiTopoLayout currentLayout()
void setCurrentLayout(UiTopoLayout topoLayout)
topoLayout - new topology layout contextString currentView()
void setCurrentView(String viewId)
viewId - view identifiervoid sendMessage(com.fasterxml.jackson.databind.node.ObjectNode message)
message - message to sendvoid sendMessage(String type, com.fasterxml.jackson.databind.node.ObjectNode payload)
type - message (event) typepayload - message payload