|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.wildfire.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()
Returns the email address of the user or null if none is defined. |
Date |
getModificationDate()
|
String |
getName()
|
Map<String,String> |
getProperties()
Returns all extended properties of the group. |
static String |
getPropertyValue(String username,
String propertyName)
Returns the value of the specified property for the given username. |
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 static String getPropertyValue(String username, String propertyName)
username
- the username of the user to get a specific property value.propertyName
- the name of the property to return its value.
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
|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |