Class UserInfo
- java.lang.Object
-
- org.opennms.web.admin.users.parsers.UserInfo
-
- All Implemented Interfaces:
Cloneable
public class UserInfo extends Object implements Cloneable
Deprecated.Use the OnmsUser class insteadThis 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.- Since:
- 1.8.1
- Version:
- 1.1.1.1
- Author:
- Jason Johns , OpenNMS , Jason Johns , OpenNMS
-
-
Constructor Summary
Constructors Constructor Description UserInfo()Deprecated.Default constructor, intializes the member variables.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Objectclone()Deprecated.clonebooleancomparePasswords(String aPassword)Deprecated.This method compares two encrypted strings for equalitystatic StringencryptPassword(String aPassword)Deprecated.This method encrypts the password using MD5 hashing.StringgetFullName()Deprecated.Returns the full name of this userNotificationInfogetNotificationInfo()Deprecated.Returns the notification information for this userStringgetPassword()Deprecated.Returns the password for this userStringgetUserComments()Deprecated.Returns the user comments for this userStringgetUserId()Deprecated.Returns the user id for this uservoidsetEncryptedPassword(String aPassword)Deprecated.Sets the password for this user, assuming that the value passed in is already encrypted properlyvoidsetFullName(String aFullName)Deprecated.Sets the full name for this uservoidsetNotificationInfo(NotificationInfo someInfo)Deprecated.Sets the notificaton information for this uservoidsetUnencryptedPassword(String aPassword)Deprecated.Sets the password for this user, first encrypting itvoidsetUserComments(String someUserComments)Deprecated.Sets the user comments for this uservoidsetUserId(String aUserId)Deprecated.Sets the user id for this userStringtoString()Deprecated.Returns a String representation of the user info, used primarily for debugging purposes.
-
-
-
Method Detail
-
clone
public Object clone()
Deprecated.clone
-
getNotificationInfo
public NotificationInfo getNotificationInfo()
Deprecated.Returns the notification information for this user- Returns:
- the notification info
-
setNotificationInfo
public void setNotificationInfo(NotificationInfo someInfo)
Deprecated.Sets the notificaton information for this user- Parameters:
someInfo- the notification info
-
setUserId
public void setUserId(String aUserId)
Deprecated.Sets the user id for this user- Parameters:
aUserId- the user id
-
getUserId
public String getUserId()
Deprecated.Returns the user id for this user- Returns:
- the user id
-
setFullName
public void setFullName(String aFullName)
Deprecated.Sets the full name for this user- Parameters:
aFullName- the full name
-
getFullName
public String getFullName()
Deprecated.Returns the full name of this user- Returns:
- the full name
-
setUserComments
public void setUserComments(String someUserComments)
Deprecated.Sets the user comments for this user- Parameters:
someUserComments- the user comments
-
getUserComments
public String getUserComments()
Deprecated.Returns the user comments for this user- Returns:
- the user comments
-
setEncryptedPassword
public void setEncryptedPassword(String aPassword)
Deprecated.Sets the password for this user, assuming that the value passed in is already encrypted properly- Parameters:
aPassword- the encrypted password
-
setUnencryptedPassword
public void setUnencryptedPassword(String aPassword) throws IllegalStateException
Deprecated.Sets the password for this user, first encrypting it- Parameters:
aPassword- the password- Throws:
IllegalStateException- if any.
-
encryptPassword
public static String encryptPassword(String aPassword) throws IllegalStateException
Deprecated.This method encrypts the password using MD5 hashing.- Parameters:
aPassword- the password to encrypt- Returns:
- the MD5 hash of the password, or null if the encryption fails
- Throws:
IllegalStateException- if any.
-
comparePasswords
public boolean comparePasswords(String aPassword)
Deprecated.This method compares two encrypted strings for equality- Parameters:
aPassword- the password to check for equality- Returns:
- true if the two passwords are equal (after encryption), false otherwise
-
getPassword
public String getPassword()
Deprecated.Returns the password for this user- Returns:
- String, the password for the user
-
-