|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.shale.view.AbstractFacesBean
org.apache.shale.view.AbstractViewController
org.apache.shale.examples.mailreaderjpa.Logon
public class Logon
Backing bean for /logon.jsp
view. Upon completion of a
successful logon, a User
instance for the logged on user will
be stored in the session-scoped state
bean.
Constructor Summary | |
---|---|
Logon()
|
Method Summary | |
---|---|
Logic |
getLogic()
Return the business Logic for this application. |
String |
getPassword()
|
State |
getState()
Return the per-user State instance we are associated with. |
String |
getUsername()
|
String |
logon()
Handle a request to log this user on. |
void |
preprocess()
Ensure that the database content has been bootstrapped before we try to authenticate a user. |
void |
setLogic(Logic logic)
Set the business Logic for this application. |
void |
setPassword(String password)
|
void |
setState(State state)
Set the per-user State instance we are associated with. |
void |
setUsername(String username)
|
Methods inherited from class org.apache.shale.view.AbstractViewController |
---|
destroy, init, isPostBack, prerender, setPostBack |
Methods inherited from class org.apache.shale.view.AbstractFacesBean |
---|
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getExternalContext, getFacesContext, getLifecycle, getRequestHeaderMap, getRequestMap, getRequestParameter, getRequestParameterMap, getRequestParameterValues, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Logon()
Method Detail |
---|
public Logic getLogic()
Return the business Logic
for this application.
public void setLogic(Logic logic)
Set the business Logic
for this application.
logic
- The new business logic instancepublic State getState()
Return the per-user State
instance we are associated with.
public void setState(State state)
Set the per-user State
instance we are associated with.
state
- The new State instancepublic String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public void preprocess()
Ensure that the database content has been bootstrapped before we try to authenticate a user.
preprocess
in interface org.apache.shale.view.ViewController
preprocess
in class org.apache.shale.view.AbstractViewController
public String logon()
Handle a request to log this user on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |