org.sakaiproject.component.section
Class UserImpl

java.lang.Object
  extended by org.sakaiproject.component.section.AbstractPersistentObject
      extended by org.sakaiproject.component.section.UserImpl
All Implemented Interfaces:
Serializable, User

public class UserImpl
extends AbstractPersistentObject
implements User, Serializable

A detachable User for persistent storage.

Author:
Josh Holtzman
See Also:
Serialized Form

Field Summary
protected  String displayId
           
protected  String displayName
           
protected  String sortName
           
protected  String userUid
           
 
Fields inherited from class org.sakaiproject.component.section.AbstractPersistentObject
id, title, uuid, version
 
Constructor Summary
UserImpl()
          No-arg constructor needed for hibernate
UserImpl(String displayName, String displayId, String sortName, String userUid)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDisplayId()
           
 String getDisplayName()
           
 long getId()
           
 String getSortName()
           
 String getUserUid()
           
 int getVersion()
           
 int hashCode()
           
 void setId(long id)
           
 void setVersion(int version)
           
 String toString()
           
 
Methods inherited from class org.sakaiproject.component.section.AbstractPersistentObject
getTitle, getUuid, setTitle, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

userUid

protected String userUid

sortName

protected String sortName

displayId

protected String displayId

displayName

protected String displayName
Constructor Detail

UserImpl

public UserImpl()
No-arg constructor needed for hibernate


UserImpl

public UserImpl(String displayName,
                String displayId,
                String sortName,
                String userUid)
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface User
Returns:
Returns the displayName, displayed when only this user is being referred to (for example, "Thomas Paine" or "Wong Kar-Wai")

getDisplayId

public String getDisplayId()
Specified by:
getDisplayId in interface User
Returns:
Returns the displayId, AKA "campus ID", a human-meaningful UID for the user (for example, a student ID number or an institutional email address)

getSortName

public String getSortName()
Specified by:
getSortName in interface User
Returns:
Returns the sortName, displayed when users are listed in order (for example, "Paine, Thomas" or "Wong Kar-Wai")

getUserUid

public String getUserUid()
Specified by:
getUserUid in interface User
Returns:
Returns the userUid, the unique ID returned by the authentication facade.

getId

public long getId()
Overrides:
getId in class AbstractPersistentObject

setId

public void setId(long id)
Overrides:
setId in class AbstractPersistentObject

getVersion

public int getVersion()
Overrides:
getVersion in class AbstractPersistentObject

setVersion

public void setVersion(int version)
Overrides:
setVersion in class AbstractPersistentObject

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class AbstractPersistentObject


Copyright © 2011 Sakai Project. All Rights Reserved.