|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectensemble.LoginBean
@Named @RequestScoped public class LoginBean
This bean deals with information from an individual login/registration request.
| Constructor Summary | |
|---|---|
LoginBean()
Sets data members to default values. |
|
| Method Summary | |
|---|---|
java.lang.String |
getConfirm()
The password confirmation to be considered in registration. |
java.lang.String |
getPassword()
The password being considered. |
java.lang.String |
getUsername()
The username being considered. |
boolean |
isBadName()
Flag indicating that the current username is unsuitable. |
boolean |
isBadPassword()
Flag indicating that password and confirmation fields do not match. |
java.lang.String |
login()
Takes the name and password entered by the user and runs them through the database. |
java.lang.String |
register()
Takes a name and password given by the user and attempts to register them in the database. |
java.lang.String |
registerAdmin()
Registers the password for the admin account, then directs to the upload page. |
void |
setConfirm(java.lang.String confirm)
Sets the password confirmation to be considered in registration. |
void |
setPassword(java.lang.String password)
Sets the password being considered. |
void |
setUsername(java.lang.String username)
Sets the username being considered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoginBean()
| Method Detail |
|---|
public java.lang.String login()
public java.lang.String register()
public java.lang.String registerAdmin()
public void setPassword(java.lang.String password)
password - The desired passwordpublic void setUsername(java.lang.String username)
username - The desired usernamepublic java.lang.String getPassword()
public void setConfirm(java.lang.String confirm)
confirm - The password confirmationpublic java.lang.String getConfirm()
public java.lang.String getUsername()
public boolean isBadName()
public boolean isBadPassword()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||