|
|||||||||
| Home >> All >> com >> opencms >> [ file overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.opencms.file
Class CmsUser

java.lang.Objectcom.opencms.file.CmsUser
- All Implemented Interfaces:
- java.lang.Cloneable, com.opencms.core.I_CmsConstants
- public class CmsUser
- extends java.lang.Object
- implements com.opencms.core.I_CmsConstants, java.lang.Cloneable
- extends java.lang.Object
Describes the Cms user object and the methods to access it.
- Version:
- $Revision: 1.33 $ $Date: 2003/04/01 15:20:18 $
| Field Summary | |
private java.util.Hashtable |
m_additionalInfo
A storage for additional user information. |
private java.lang.String |
m_address
The address of the user. |
private CmsGroup |
m_defaultGroup
The default group of this user. |
private int |
m_defaultGroupId
The default group ID of this user. |
private java.lang.String |
m_description
The description of the user. |
private java.lang.String |
m_email
The email of the user. |
private java.lang.String |
m_firstname
The firstname of the user. |
private int |
m_flags
The flags of the user. |
private int |
m_id
The Id of this user. |
private long |
m_lastlogin
The last login of the user. |
private java.lang.String |
m_lastname
The lastname of the user. |
private long |
m_lastused
The lastused date. |
private java.lang.String |
m_name
The login-name of the user. |
private java.lang.String |
m_password
The password of the user. |
private java.lang.String |
m_recoveryPassword
The password of the user. |
private java.lang.String |
m_section
The section of the user. |
private int |
m_type
Defines if the user is a webuser or a systemuser. |
| Constructor Summary | |
CmsUser(int id,
java.lang.String name,
java.lang.String description)
Constructor, creates a new Cms user object. |
|
CmsUser(int id,
java.lang.String name,
java.lang.String password,
java.lang.String recoveryPassword,
java.lang.String description,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
long lastlogin,
long lastused,
int flags,
java.util.Hashtable additionalInfo,
CmsGroup defaultGroup,
java.lang.String address,
java.lang.String section,
int typ)
Constructor, creates a new Cms user object. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the CmsResource by creating a new CmsUser Object. |
boolean |
equals(java.lang.Object obj)
Compares the given object with this user. |
java.util.Hashtable |
getAdditionalInfo()
Returns the complete Hashtable with additional information about the user. |
java.lang.Object |
getAdditionalInfo(java.lang.String key)
Returns additional information about the user which are usually set in the users preferences. |
java.lang.String |
getAddress()
Gets the address. |
CmsGroup |
getDefaultGroup()
Returns the default group object of this user. |
int |
getDefaultGroupId()
Gets the defaultgroup id. |
java.lang.String |
getDescription()
Gets the description of this user. |
boolean |
getDisabled()
Decides, if this user is disabled. |
java.lang.String |
getEmail()
Gets the email. |
java.lang.String |
getFirstname()
Gets the firstname. |
int |
getFlags()
Gets the flags. |
int |
getId()
Gets the id of this user. |
long |
getLastlogin()
Gets the lastlogin. |
java.lang.String |
getLastname()
Gets the lastname. |
long |
getLastUsed()
Gets the lastlogin. |
java.lang.String |
getName()
Gets the login-name of the user. |
java.lang.String |
getPassword()
Gets the password. |
java.lang.String |
getRecoveryPassword()
Gets the recovery password. |
java.lang.String |
getSection()
Gets the section of the user. |
int |
getType()
Gets the type of the user (webuser or a systemuser). |
(package private) void |
setAdditionalInfo(java.util.Hashtable additionalInfo)
Sets the complete Hashtable with additional information about the user. |
void |
setAdditionalInfo(java.lang.String key,
java.lang.Object obj)
Sets additional information about the user. |
void |
setAddress(java.lang.String value)
Sets the address. |
void |
setDefaultGroup(CmsGroup defaultGroup)
Sets the default group object of this user. |
void |
setDescription(java.lang.String value)
Sets the description of this user. |
void |
setDisabled()
Disables the user flags by setting them to C_FLAG_DISABLED. |
void |
setEmail(java.lang.String value)
Sets the email. |
void |
setEnabled()
Enables the user flags by setting them to C_FLAG_ENABLED. |
void |
setFirstname(java.lang.String firstname)
Sets the firstname. |
(package private) void |
setFlags(int value)
Sets the flags. |
void |
setLastlogin(long value)
Sets the lastlogin. |
void |
setLastname(java.lang.String lastname)
Gets the lastname. |
(package private) void |
setLastUsed(long value)
Sets the lastlogin. |
void |
setPassword(java.lang.String value)
Sets the password. |
void |
setSection(java.lang.String value)
Sets the section of the user. |
(package private) void |
setType(int value)
Sets the typ. |
java.lang.String |
toString()
Returns a string-representation for this object. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
m_name
private java.lang.String m_name
- The login-name of the user.
m_id
private int m_id
- The Id of this user.
m_password
private java.lang.String m_password
- The password of the user.
m_recoveryPassword
private java.lang.String m_recoveryPassword
- The password of the user.
m_description
private java.lang.String m_description
- The description of the user.
m_additionalInfo
private java.util.Hashtable m_additionalInfo
- A storage for additional user information.
m_defaultGroup
private CmsGroup m_defaultGroup
- The default group of this user.
m_defaultGroupId
private int m_defaultGroupId
- The default group ID of this user.
m_section
private java.lang.String m_section
- The section of the user.
m_flags
private int m_flags
- The flags of the user.
m_email
private java.lang.String m_email
- The email of the user.
m_lastused
private long m_lastused
- The lastused date.
m_firstname
private java.lang.String m_firstname
- The firstname of the user.
m_lastname
private java.lang.String m_lastname
- The lastname of the user.
m_address
private java.lang.String m_address
- The address of the user.
m_lastlogin
private long m_lastlogin
- The last login of the user.
m_type
private int m_type
- Defines if the user is a webuser or a systemuser.
C_USER_TYPE_SYSTEMUSER for systemuser (incl. guest).
C_USER_TYPE_WEBUSER for webuser.
| Constructor Detail |
CmsUser
public CmsUser(int id,
java.lang.String name,
java.lang.String description)
- Constructor, creates a new Cms user object.
CmsUser
public CmsUser(int id,
java.lang.String name,
java.lang.String password,
java.lang.String recoveryPassword,
java.lang.String description,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
long lastlogin,
long lastused,
int flags,
java.util.Hashtable additionalInfo,
CmsGroup defaultGroup,
java.lang.String address,
java.lang.String section,
int typ)
- Constructor, creates a new Cms user object.
| Method Detail |
clone
public java.lang.Object clone()
- Clones the CmsResource by creating a new CmsUser Object.
equals
public boolean equals(java.lang.Object obj)
- Compares the given object with this user.
getAdditionalInfo
public java.util.Hashtable getAdditionalInfo()
- Returns the complete Hashtable with additional information about the user.
Additional infos are for example emailadress, adress or surname...
The additional infos must be requested via the CmsObject. Returns additional information about the user.
getAdditionalInfo
public java.lang.Object getAdditionalInfo(java.lang.String key)
- Returns additional information about the user which are usually set
in the users preferences.
getAddress
public java.lang.String getAddress()
- Gets the address.
getDefaultGroup
public CmsGroup getDefaultGroup()
- Returns the default group object of this user.
getDefaultGroupId
public int getDefaultGroupId()
- Gets the defaultgroup id.
getDescription
public java.lang.String getDescription()
- Gets the description of this user.
getDisabled
public boolean getDisabled()
- Decides, if this user is disabled.
getEmail
public java.lang.String getEmail()
- Gets the email.
getFirstname
public java.lang.String getFirstname()
- Gets the firstname.
getFlags
public int getFlags()
- Gets the flags.
getId
public int getId()
- Gets the id of this user.
getLastlogin
public long getLastlogin()
- Gets the lastlogin.
getLastname
public java.lang.String getLastname()
- Gets the lastname.
getLastUsed
public long getLastUsed()
- Gets the lastlogin.
getName
public java.lang.String getName()
- Gets the login-name of the user.
getPassword
public java.lang.String getPassword()
- Gets the password.
getRecoveryPassword
public java.lang.String getRecoveryPassword()
- Gets the recovery password.
getSection
public java.lang.String getSection()
- Gets the section of the user.
getType
public int getType()
- Gets the type of the user (webuser or a systemuser).
C_USER_TYPE_SYSTEMUSER for systemuser (incl. guest).
C_USER_TYPE_WEBUSER for webuser.
setAdditionalInfo
public void setAdditionalInfo(java.lang.String key, java.lang.Object obj)
- Sets additional information about the user.
Additional infos are for example emailadress, adress or surname...
setAdditionalInfo
void setAdditionalInfo(java.util.Hashtable additionalInfo)
- Sets the complete Hashtable with additional information about the user.
Additional infos are for example emailadress, adress or surname...
This method has package-visibility for security-reasons. It is required to because of the use of two seprate databases for user data and additional user data.
setAddress
public void setAddress(java.lang.String value)
- Sets the address.
setDefaultGroup
public void setDefaultGroup(CmsGroup defaultGroup)
- Sets the default group object of this user.
setDescription
public void setDescription(java.lang.String value)
- Sets the description of this user.
setDisabled
public void setDisabled()
- Disables the user flags by setting them to C_FLAG_DISABLED.
setEmail
public void setEmail(java.lang.String value)
- Sets the email.
setEnabled
public void setEnabled()
- Enables the user flags by setting them to C_FLAG_ENABLED.
setFirstname
public void setFirstname(java.lang.String firstname)
- Sets the firstname.
setFlags
void setFlags(int value)
- Sets the flags.
setLastlogin
public void setLastlogin(long value)
- Sets the lastlogin.
setLastname
public void setLastname(java.lang.String lastname)
- Gets the lastname.
setLastUsed
void setLastUsed(long value)
- Sets the lastlogin.
setPassword
public void setPassword(java.lang.String value)
- Sets the password.
setSection
public void setSection(java.lang.String value)
- Sets the section of the user.
setType
void setType(int value)
- Sets the typ.
toString
public java.lang.String toString()
- Returns a string-representation for this object.
This can be used for debugging.
|
|||||||||
| Home >> All >> com >> opencms >> [ file overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.opencms.file.CmsUser