|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.admin.users.parsers.User
public class User
This is a data class for storing the information on a user. This information is stored in the users.xml file and is manipulated via the "Users, Groups and Views" screen.
| Field Summary | |
|---|---|
static java.lang.String |
USER_ID_PROPERTY
|
| Constructor Summary | |
|---|---|
User()
Creates a User. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
java.lang.Object |
clone()
|
boolean |
comparePasswords(java.lang.String aPassword)
This method compares two encrypted strings for equality |
static java.lang.String |
encryptPassword(java.lang.String aPassword)
This method encrypts the password using MD5 hashing. |
java.lang.String |
getFullName()
Returns the full name of this user |
NotificationInfo |
getNotificationInfo()
Returns the notification information for this user |
java.lang.String |
getPassword()
Returns the password for this user |
java.lang.String |
getUserComments()
Returns the user comments for this user |
java.lang.String |
getUserId()
Returns the user id for this user |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
setEncryptedPassword(java.lang.String aPassword)
Sets the password for this user, assuming that the value passed in is already encrypted properly |
void |
setFullName(java.lang.String aFullName)
Sets the full name for this user |
void |
setNotificationInfo(NotificationInfo someInfo)
Sets the notificaton information for this user |
void |
setUnencryptedPassword(java.lang.String aPassword)
Sets the password for this user, first encrypting it |
void |
setUserComments(java.lang.String someUserComments)
Sets the user comments for this user |
void |
setUserId(java.lang.String aUserId)
Sets the user id for this user |
java.lang.String |
toString()
Returns a String representation of the user info, used primarily for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String USER_ID_PROPERTY
| Constructor Detail |
|---|
public User()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public NotificationInfo getNotificationInfo()
public void setNotificationInfo(NotificationInfo someInfo)
someInfo - the notification infopublic void setUserId(java.lang.String aUserId)
aUserId - the user idpublic java.lang.String getUserId()
public void setFullName(java.lang.String aFullName)
aFullName - the full namepublic java.lang.String getFullName()
public void setUserComments(java.lang.String someUserComments)
someUserComments - the user commentspublic java.lang.String getUserComments()
public void setEncryptedPassword(java.lang.String aPassword)
aPassword - the encrypted password
public void setUnencryptedPassword(java.lang.String aPassword)
throws java.lang.IllegalStateException
aPassword - the password
java.lang.IllegalStateException
public static java.lang.String encryptPassword(java.lang.String aPassword)
throws java.lang.IllegalStateException
aPassword - the password to encrypt
java.lang.IllegalStateExceptionpublic boolean comparePasswords(java.lang.String aPassword)
aPassword - the password to check for equality
public java.lang.String getPassword()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||