Package com.flowable.platform.websocket
Class RemoteUserSessionService
java.lang.Object
com.flowable.platform.websocket.RemoteUserSessionService
- All Implemented Interfaces:
UserSessionService
public class RemoteUserSessionService extends java.lang.Object implements UserSessionService
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
protected org.springframework.web.client.RestTemplate
restTemplate
protected static java.lang.String
USER_CONNECTED_TEMPLATE
protected static java.lang.String
USER_CONNECTED_WITH_TENANT_TEMPLATE
protected static java.lang.String
USER_DISCONNECTED_TEMPLATE
protected static java.lang.String
USER_DISCONNECTED_WITH_TENANT_TEMPLATE
protected java.lang.String
userStatusBaseUrl
-
Constructor Summary
Constructors Constructor Description RemoteUserSessionService(org.springframework.web.client.RestTemplate restTemplate, java.lang.String userStatusBaseUrl)
-
Method Summary
Modifier and Type Method Description void
userConnected(java.lang.String userId, java.lang.String tenantId, java.lang.String sessionId)
Method invoked when the user has been connected in real time to the applicationvoid
userDisconnected(java.lang.String userId, java.lang.String tenantId, java.lang.String sessionId)
Method invoked when the user has been disconnected from a single session the application
-
Field Details
-
USER_CONNECTED_TEMPLATE
protected static final java.lang.String USER_CONNECTED_TEMPLATE- See Also:
- Constant Field Values
-
USER_CONNECTED_WITH_TENANT_TEMPLATE
protected static final java.lang.String USER_CONNECTED_WITH_TENANT_TEMPLATE- See Also:
- Constant Field Values
-
USER_DISCONNECTED_TEMPLATE
protected static final java.lang.String USER_DISCONNECTED_TEMPLATE- See Also:
- Constant Field Values
-
USER_DISCONNECTED_WITH_TENANT_TEMPLATE
protected static final java.lang.String USER_DISCONNECTED_WITH_TENANT_TEMPLATE- See Also:
- Constant Field Values
-
logger
protected final org.slf4j.Logger logger -
restTemplate
protected final org.springframework.web.client.RestTemplate restTemplate -
userStatusBaseUrl
protected final java.lang.String userStatusBaseUrl
-
-
Constructor Details
-
RemoteUserSessionService
public RemoteUserSessionService(org.springframework.web.client.RestTemplate restTemplate, java.lang.String userStatusBaseUrl)
-
-
Method Details
-
userConnected
public void userConnected(java.lang.String userId, java.lang.String tenantId, java.lang.String sessionId)Description copied from interface:UserSessionService
Method invoked when the user has been connected in real time to the application- Specified by:
userConnected
in interfaceUserSessionService
- Parameters:
userId
- the id of the user that has connectedtenantId
- the tenant id for the connectionsessionId
- the id of the session that the user is connected to
-
userDisconnected
public void userDisconnected(java.lang.String userId, java.lang.String tenantId, java.lang.String sessionId)Description copied from interface:UserSessionService
Method invoked when the user has been disconnected from a single session the application- Specified by:
userDisconnected
in interfaceUserSessionService
- Parameters:
userId
- the id of the user that has been disconnectedtenantId
- the tenant id for the connectionsessionId
- the session id that the user disconnected from
-