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