Class UserSessionReference
- java.lang.Object
-
- org.silverpeas.core.persistence.EntityReference<UserSession>
-
- org.silverpeas.core.security.authentication.UserSessionReference
-
public class UserSessionReference extends EntityReference<UserSession>
A reference to a given user session in Silverpeas, such user session being represented by aUserSession
instance.- Author:
- Yohann Chastagnier
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.persistence.EntityReference
UNKNOWN_TYPE
-
-
Constructor Summary
Constructors Constructor Description UserSessionReference(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserSessionReference
fromUser(UserDetail user)
UserSession
getEntity()
Gets the instance of the entity targeted by this reference.
-
-
-
Constructor Detail
-
UserSessionReference
public UserSessionReference(String id)
-
-
Method Detail
-
fromUser
public static UserSessionReference fromUser(UserDetail user)
-
getEntity
public UserSession getEntity()
Description copied from class:EntityReference
Gets the instance of the entity targeted by this reference.- Specified by:
getEntity
in classEntityReference<UserSession>
- Returns:
- the entity identified by this reference.
-
-