Interface SessionMonitorService
-
public interface SessionMonitorService
Interface of the SessionMonitorService for retrieving active sessions and amount of active sessions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<XCEditorSession>
getActiveSessions(String currentSessionId, String userName, String webid)
Queries the active sessions for a certain user and webid marking the session matching the currentSessionId as current.int
getAmountOfActiveSessions(String userName)
Retrieves the amount of sessions for the specified user.
-
-
-
Method Detail
-
getActiveSessions
List<XCEditorSession> getActiveSessions(String currentSessionId, String userName, String webid)
Queries the active sessions for a certain user and webid marking the session matching the currentSessionId as current.- Parameters:
currentSessionId
- the current sessionuserName
- the user to querywebid
- the webid to query- Returns:
- a list of users matching the query
-
getAmountOfActiveSessions
int getAmountOfActiveSessions(String userName)
Retrieves the amount of sessions for the specified user.- Parameters:
userName
- the user to query.- Returns:
- the amount of active sessions
-
-