|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.messenger.user.User
public class User
Encapsulates information about a user. New users are created using
UserManager.createUser(String, String, String, String)
. All user
properties are loaded on demand and are read from the jiveUserProp
database table. The currently-installed UserProvider
is used for
setting all other user data and some operations may not be supported
depending on the capabilities of the UserProvider
.
Constructor Summary | |
---|---|
User(String username,
String name,
String email,
Date creationDate,
Date modificationDate)
Constructs a new user. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
int |
getCachedSize()
Returns the approximate size of the Object in bytes. |
Date |
getCreationDate()
|
String |
getEmail()
|
Date |
getModificationDate()
|
String |
getName()
|
Map<String,String> |
getProperties()
Returns all extended properties of the group. |
Roster |
getRoster()
Returns the user's roster. |
String |
getUsername()
Returns this user's username. |
int |
hashCode()
|
void |
setCreationDate(Date creationDate)
|
void |
setEmail(String email)
|
void |
setModificationDate(Date modificationDate)
|
void |
setName(String name)
|
void |
setPassword(String password)
Sets a new password for this user. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public User(String username, String name, String email, Date creationDate, Date modificationDate)
UserManager.getUser(String)
.
username
- the username.name
- the name.email
- the email address.creationDate
- the date the user was created.modificationDate
- the date the user was last modified.Method Detail |
---|
public String getUsername()
public void setPassword(String password)
password
- the new password for the user.public String getName()
public void setName(String name)
public String getEmail()
public void setEmail(String email)
public Date getCreationDate()
public void setCreationDate(Date creationDate)
public Date getModificationDate()
public void setModificationDate(Date modificationDate)
public Map<String,String> getProperties()
public Roster getRoster()
public int getCachedSize()
Cacheable
getCachedSize
in interface Cacheable
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |