Interface UserSessions<D,S>
- Type Parameters:
D- deployment identifier typeS- session identifier type
public interface UserSessions<D,S>
Represents an index of user sessions.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddSession(D deployment, S session) Adds the specified web application and session identifier to the registry of authenticated web applications.Returns the set of web applications for which the current user is authenticated.getSession(D deployment) Returns the corresponding session identifier for the specified web application.removeSession(D deployment) Removes the specified web application from the set of authenticated web applications.
-
Method Details
-
getDeployments
Returns the set of web applications for which the current user is authenticated.- Returns:
- a set of web applications.
-
getSession
Returns the corresponding session identifier for the specified web application.- Parameters:
application-- Returns:
-
removeSession
Removes the specified web application from the set of authenticated web applications.- Parameters:
application-
-
addSession
Adds the specified web application and session identifier to the registry of authenticated web applications.- Parameters:
deployment- a web applicationsession- a session- Returns:
- true, if the session was added, false it already exists
-