com.ondelette.servlet.webforum
Class User

java.lang.Object
  |
  +--com.ondelette.servlet.webforum.User
All Implemented Interfaces:
AutorizationConstants, java.io.Serializable

public class User
extends java.lang.Object
implements AutorizationConstants, java.io.Serializable

Description of the Class

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ondelette.servlet.webforum.AutorizationConstants
ACCOUNTINACTIVE, ADMIN, DELETED, EXECUTIVEMEMBER, IDENTIFIEDGUEST, ILLEGAL, MEMBER, NORMAL, VIPMEMBER
 
Constructor Summary
User(java.lang.String login, java.lang.String password, java.lang.String email, int level)
          Constructor for the User object
 
Method Summary
 boolean checkPassword(java.lang.String password)
           
 boolean equals(java.lang.Object o)
           
 int getAutorizationLevel()
          Gets the AutorizationLevel attribute of the User object
protected  java.lang.String getCookieString()
          Gets the CookieString attribute of the User object
 java.lang.String getEmail()
          Gets the Email attribute of the User object
 java.lang.String getLogin()
          Gets the Login attribute of the User object
protected static java.lang.String[] getLoginAndPasswordFromCookieString(java.lang.String cookiestring)
           
protected  java.lang.String getPassword()
          Gets the Password attribute of the User object
 int hashCode()
           
static User read(java.io.InputStreamReader in)
           
 void setEmail(java.lang.String email)
          Sets the Email attribute of the User object
 void setLogin(java.lang.String login)
          Sets the Login attribute of the User object
 void write(java.io.OutputStreamWriter out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User(java.lang.String login,
            java.lang.String password,
            java.lang.String email,
            int level)
Constructor for the User object

Parameters:
login -
password -
email -
level -
Since:
0.30
Method Detail

read

public static User read(java.io.InputStreamReader in)
                 throws java.io.IOException
Parameters:
in -
Returns:
Throws:
java.io.IOException
Since:
0.30

getLoginAndPasswordFromCookieString

protected static java.lang.String[] getLoginAndPasswordFromCookieString(java.lang.String cookiestring)
                                                                 throws BadForumCookieException
Parameters:
cookiestring -
Returns:
The loginAndPasswordFromCookieString value
Throws:
BadForumCookieException
Since:
0.30

setLogin

public void setLogin(java.lang.String login)
Sets the Login attribute of the User object

Parameters:
login - The new Login value
Since:
0.30

setEmail

public void setEmail(java.lang.String email)
Sets the Email attribute of the User object

Parameters:
email - The new Email value
Since:
0.30

getLogin

public java.lang.String getLogin()
Gets the Login attribute of the User object

Returns:
The Login value
Since:
0.30

getEmail

public java.lang.String getEmail()
Gets the Email attribute of the User object

Returns:
The Email value
Since:
0.30

getAutorizationLevel

public int getAutorizationLevel()
Gets the AutorizationLevel attribute of the User object

Returns:
The AutorizationLevel value
Since:
0.30

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:
Since:
0.30

checkPassword

public boolean checkPassword(java.lang.String password)
Parameters:
password -
Returns:
Since:
0.30

write

public void write(java.io.OutputStreamWriter out)
           throws java.io.IOException
Parameters:
out -
Throws:
java.io.IOException
Since:
0.30

getPassword

protected java.lang.String getPassword()
Gets the Password attribute of the User object

Returns:
The Password value
Since:
0.30

getCookieString

protected java.lang.String getCookieString()
Gets the CookieString attribute of the User object

Returns:
The CookieString value
Since:
0.30

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object