org.silverpeas.profile
Class UserReference

java.lang.Object
  extended by org.silverpeas.EntityReference<UserDetail>
      extended by org.silverpeas.profile.UserReference

public class UserReference
extends EntityReference<UserDetail>

A reference to a given user in Silverpeas, such user being represented by a UserDetail instance.

Author:
mmoquillon

Field Summary
 
Fields inherited from class org.silverpeas.EntityReference
UNKNOWN_TYPE
 
Constructor Summary
UserReference(String id)
           
 
Method Summary
static UserReference fromUser(UserDetail user)
           
 UserDetail getEntity()
          Gets the instance of the entity targeted by this reference.
 
Methods inherited from class org.silverpeas.EntityReference
equals, getId, getType, getType, getType, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserReference

public UserReference(String id)
Method Detail

fromUser

public static UserReference fromUser(UserDetail user)

getEntity

public UserDetail getEntity()
Description copied from class: EntityReference
Gets the instance of the entity targeted by this reference.

Specified by:
getEntity in class EntityReference<UserDetail>
Returns:
the entity identified by this reference.


Copyright © 2016 Silverpeas. All Rights Reserved.