|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.user.User
Pow2 User class.
This class encapsulates the basic user informations; if you'd like
to have a more specialized User entity, extend this class and provide
your own implementation.
Field Summary | |
protected boolean |
authenticated
user authentication flag |
protected org.apache.log4j.Category |
cat
Log4J category |
protected String |
city
user city |
protected UserDAO |
dao
the single instance of the UserDAO object |
protected String |
email
user email |
protected String |
fax
user fax number |
protected String |
firstName
user first name |
protected String |
id
user identifier |
protected String |
lastName
user last name |
protected String |
login
user login |
protected String |
mobile
user mobile number |
protected String |
passwd
user password |
protected String |
phone
user phone number |
protected String |
state
user state |
protected String |
street
user street |
String |
USER_ID_NOTPERSISTED
user id value for user objects that are not yet persisted into the database. |
protected String |
zipCode
user zip code |
Constructor Summary | |
User()
Default User constructor. |
|
User(String login,
String passwd)
User constructor. |
Method Summary | |
String |
getCity()
Gets the city attribute of the User object |
String |
getEmail()
Gets the email attribute of the User object |
String |
getFax()
Gets the fax attribute of the User object |
String |
getFirstName()
Gets the firstName attribute of the User object |
String |
getId()
Gets the id attribute of the User object |
String |
getLastName()
Gets the lastName attribute of the User object |
String |
getLogin()
Gets the login attribute of the User object |
String |
getMobile()
Gets the mobile attribute of the User object |
String |
getPasswd()
Gets the passwd attribute of the User object |
String |
getPhone()
Gets the phone attribute of the User object |
void |
getProfile()
Gets the user profile (its informations) from the database. |
String |
getState()
Gets the state attribute of the User object |
String |
getStreet()
Gets the street attribute of the User object |
String |
getZipCode()
Gets the zipCode attribute of the User object |
boolean |
isAuthenticated()
Tests if the user is authenticated |
void |
setAuthentication(boolean v)
Sets the user authentication flag. |
void |
setCity(String city)
Sets the city attribute of the User object |
void |
setEmail(String v)
Sets the email attribute of the User object |
void |
setFax(String fax)
Sets the fax attribute of the User object |
void |
setFirstName(String v)
Sets the firstName attribute of the User object |
void |
setId(String v)
Sets the id attribute of the User object |
void |
setLastName(String v)
Sets the lastName attribute of the User object |
void |
setLogin(String v)
Sets the login attribute of the User object |
void |
setMobile(String mobile)
Sets the mobile attribute of the User object |
void |
setPasswd(String v)
Sets the passwd attribute of the User object |
void |
setPhone(String phone)
Sets the phone attribute of the User object |
void |
setState(String state)
Sets the state attribute of the User object |
void |
setStreet(String street)
Sets the street attribute of the User object |
void |
setZipCode(String zipCode)
Sets the zipCode attribute of the User object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final String USER_ID_NOTPERSISTED
protected org.apache.log4j.Category cat
protected boolean authenticated
protected String city
protected UserDAO dao
protected String email
protected String fax
protected String firstName
protected String id
protected String lastName
protected String login
protected String mobile
protected String passwd
protected String phone
protected String state
protected String street
protected String zipCode
Constructor Detail |
public User()
public User(String login, String passwd)
login
and passwd
properties to retrieve the user informations from the database.
login
and password
user properties don't match the database properties),
isAuthenticated
method returns false.
login
- Description of the Parameterpasswd
- Description of the ParameterMethod Detail |
public String getCity()
public String getEmail()
public String getFax()
public String getFirstName()
public String getId()
public String getLastName()
public String getLogin()
public String getMobile()
public String getPasswd()
public String getPhone()
public void getProfile()
login
and passwd
properties to retrieve the user informations from the database.
login
and password
user properties don't match the database properties),
isAuthenticated
method returns false.
public String getState()
public String getStreet()
public String getZipCode()
public boolean isAuthenticated()
public void setAuthentication(boolean v)
login
and password
couple that matches with the same database properties.
v
- true if the user is authenticated versus the database; false
otherwise.public void setCity(String city)
city
- The new city valuepublic void setEmail(String v)
v
- The new email valuepublic void setFax(String fax)
fax
- The new fax valuepublic void setFirstName(String v)
v
- The new firstName valuepublic void setId(String v)
v
- The new id valuepublic void setLastName(String v)
v
- The new lastName valuepublic void setLogin(String v)
v
- The new login valuepublic void setMobile(String mobile)
mobile
- The new mobile valuepublic void setPasswd(String v)
v
- The new passwd valuepublic void setPhone(String phone)
phone
- The new phone valuepublic void setState(String state)
state
- The new state valuepublic void setStreet(String street)
street
- The new street valuepublic void setZipCode(String zipCode)
zipCode
- The new zipCode value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |