|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionManagement
It defines the contract the session management implementation in Silverpeas should implement. It should have only one activated implementation in Sivlerpeas and it should be managed by an IoC container under the name 'sessionManager'.
Method Summary | |
---|---|
void |
closeSession(String sessionKey)
Closes the specified user session. |
Collection<SessionInfo> |
getConnectedUsersList()
Gets the session information about all the connected users in the Silverpeas platform, whatever their domain and the applied domain isolation policy. |
Collection<SessionInfo> |
getDistinctConnectedUsersList(UserDetail user)
Gets the session information about all the connected users that are accessible to the specified user. |
int |
getNbConnectedUsersList(UserDetail user)
Gets the count of users that are connected to Silverpeas. |
long |
getNextSessionTimeOut(String sessionKey)
Gets the next timeout of the specified user session. |
SessionInfo |
getSessionInfo(String sessionKey)
Gets information about the specified user session. |
boolean |
isUserConnected(UserDetail user)
Is the specified user currently connected to Silverpeas? |
SessionInfo |
openAnonymousSession(javax.servlet.http.HttpServletRequest request)
Opens a new anonymous session with the specified HTTP request at the origin of the session ask. |
SessionInfo |
openSession(UserDetail user)
Opens a new session for the specified user. |
SessionInfo |
openSession(UserDetail user,
javax.servlet.http.HttpServletRequest request)
Opens a new session for the specified user with the specified HTTP request at the origin of the session ask. |
SessionInfo |
validateSession(SessionValidationContext context)
Validates the session identified uniquely by the specified key. |
SessionInfo |
validateSession(String sessionKey)
Calls validateSession(SessionValidationContext) method by specifying to it a
context that contains only the specified session key. |
Method Detail |
---|
Collection<SessionInfo> getConnectedUsersList()
Collection<SessionInfo> getDistinctConnectedUsersList(UserDetail user)
user
- a user from whom all the distinct connected users are visible.
int getNbConnectedUsersList(UserDetail user)
user
- the user from whom all the users to count are visible.
SessionInfo getSessionInfo(String sessionKey)
sessionKey
- the key of the user session.
boolean isUserConnected(UserDetail user)
user
- the user for which the connection is checked.
long getNextSessionTimeOut(String sessionKey)
sessionKey
- the keu of the user session.
SessionInfo validateSession(String sessionKey)
validateSession(SessionValidationContext)
method by specifying to it a
context that contains only the specified session key.
sessionKey
- the key of the user session.
validateSession(SessionValidationContext)
execution.SessionInfo validateSession(SessionValidationContext context)
context
- the context of the validation that contains at least the session key
SessionInfo openSession(UserDetail user)
user
- the user for which a session with Silverpeas has to be opened.
SessionInfo openSession(UserDetail user, javax.servlet.http.HttpServletRequest request)
user
- the user for which an HTTP session with Silverpeas has to be opened.request
- the HTTP request at the origin of the session opening ask.
SessionInfo openAnonymousSession(javax.servlet.http.HttpServletRequest request)
request
- the HTTP request at the origin of the session opening ask.
void closeSession(String sessionKey)
sessionKey
- the key of the session to close.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |