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.Loggerloggerprotected org.springframework.web.client.RestTemplaterestTemplateprotected static java.lang.StringUSER_CONNECTED_TEMPLATEprotected static java.lang.StringUSER_CONNECTED_WITH_TENANT_TEMPLATEprotected static java.lang.StringUSER_DISCONNECTED_TEMPLATEprotected static java.lang.StringUSER_DISCONNECTED_WITH_TENANT_TEMPLATEprotected java.lang.StringuserStatusBaseUrl -
Constructor Summary
Constructors Constructor Description RemoteUserSessionService(org.springframework.web.client.RestTemplate restTemplate, java.lang.String userStatusBaseUrl) -
Method Summary
Modifier and Type Method Description voiduserConnected(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 applicationvoiduserDisconnected(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:UserSessionServiceMethod invoked when the user has been connected in real time to the application- Specified by:
userConnectedin 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:UserSessionServiceMethod invoked when the user has been disconnected from a single session the application- Specified by:
userDisconnectedin 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
-