|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.wizard.completion.management.CompletionBeanManager
public class CompletionBeanManager
Class for managing the completion bean in the session.
Field Summary | |
---|---|
static String |
BEAN_NAME
Attribute name for what is stored in the session. |
Constructor Summary | |
---|---|
CompletionBeanManager()
Default constructor. |
Method Summary | |
---|---|
CompletionBean |
createOrRetrieveActionForm(ExpressoRequest request)
Creates or retrieves the action form. |
void |
destroyActionForm(ExpressoRequest request)
Destroys the completion bean from the session. |
CompletionBean |
getActionForm(ExpressoRequest request)
Retrieve an action form. |
boolean |
handleSessionTimeout(ExpressoRequest request,
ExpressoResponse response)
Checks if session has timed out and redirects to 'list wizards' state if it has. |
void |
setCompletionBean(ExpressoRequest request,
CompletionBean wizardBeanToSave)
Saves the specified completion bean to session. |
ErrorCollection |
validate(ExpressoRequest request,
ErrorCollection errorsToAdd)
Validate the bean and return any action errors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BEAN_NAME
Constructor Detail |
---|
public CompletionBeanManager()
Method Detail |
---|
public boolean handleSessionTimeout(ExpressoRequest request, ExpressoResponse response) throws ControllerException
ICompletionBeanManager
handleSessionTimeout
in interface ICompletionBeanManager
request
- The ControllerRequest handed to us by the framework.response
- ControllerResponse handed to us by the framework.
ControllerException
public CompletionBean createOrRetrieveActionForm(ExpressoRequest request) throws ControllerException
ICompletionBeanManager
createOrRetrieveActionForm
in interface ICompletionBeanManager
request
- ControllerRequest
ControllerException
public CompletionBean getActionForm(ExpressoRequest request) throws ControllerException
ICompletionBeanManager
getActionForm
in interface ICompletionBeanManager
request
- ControllerRequest
ControllerException
public void destroyActionForm(ExpressoRequest request) throws ControllerException
ICompletionBeanManager
destroyActionForm
in interface ICompletionBeanManager
request
- ControllerRequest
ControllerException
public ErrorCollection validate(ExpressoRequest request, ErrorCollection errorsToAdd) throws ControllerException
ICompletionBeanManager
validate
in interface ICompletionBeanManager
request
- ControllerRequesterrorsToAdd
- ErrorCollection
ControllerException
- upon error.public void setCompletionBean(ExpressoRequest request, CompletionBean wizardBeanToSave) throws ControllerException
ICompletionBeanManager
setCompletionBean
in interface ICompletionBeanManager
request
- the ExpressoRequest that contains the session.wizardBeanToSave
- CompletionBean
ControllerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |