|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface that represents a user who is required to use username/password authentication for login.
Method Summary | |
void |
add(java.sql.Connection conn)
This method persists the user object in the database. |
boolean |
authenticateByUsernamePassword(java.sql.Connection conn)
This method does username/password authentication. |
void |
changePassword(java.sql.Connection conn,
java.lang.String newPassword)
This method changes the user password. |
boolean |
exist(java.sql.Connection conn)
Check whether this user exists. |
java.lang.String |
getPassword()
|
java.lang.String |
getUsername()
|
void |
remove(java.sql.Connection conn)
This method removes the user from the database. |
void |
setPassword(java.lang.String string)
|
void |
setUsername(java.lang.String string)
|
Method Detail |
public boolean authenticateByUsernamePassword(java.sql.Connection conn)
conn
- the database connection object for connecting to the database
public void changePassword(java.sql.Connection conn, java.lang.String newPassword) throws ApplicationException
conn
- the database connection object for connecting to the databasenewPassword
- the new password
ApplicationException
- if the password change is failed; the failure reason can be retrieved by
calling ApplicationException.getApplicationResourceKey()public void add(java.sql.Connection conn) throws ApplicationException
conn
- the database connection object for connecting to the database
ApplicationException
- if the persisting is failed; the failure reason can be retrieved by
calling ApplicationException.getApplicationResourceKey()public void remove(java.sql.Connection conn) throws ApplicationException
conn
- the database connection object for connecting to the database
ApplicationException
- if the remove operation failedthe failure reason can be retrieved by
calling ApplicationException.getApplicationResourceKey()public boolean exist(java.sql.Connection conn)
conn
- the database connection object for connecting to the database
public java.lang.String getPassword()
public java.lang.String getUsername()
public void setPassword(java.lang.String string)
public void setUsername(java.lang.String string)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |