|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.web.form.UifFormManager
public class UifFormManager
Manages Uif form objects for a session
Constructor Summary | |
---|---|
UifFormManager()
Create a new form manager with an empty list of forms for the session. |
Method Summary | |
---|---|
void |
addSessionForm(UifFormBase form)
Add a form to the session |
protected Vector |
getAccessedFormKeys()
Internal vector maintained to keep track of accessed form and the order in which they were accessed |
int |
getMaxNumberOfSessionForms()
Maximum number of forms that can be stored at one time by the manager |
UifFormBase |
getSessionForm(String formKey)
Retrieve a form from the session |
void |
purgeForm(UifFormBase form)
Removes the values that are marked @SessionTransient from the form. |
void |
removeFormWithHistoryFormsByKey(String formKey)
Removes the stored form data and the forms from the breadcrumb history from the session |
void |
removeSessionForm(UifFormBase form)
Removes the stored form data and the forms from the breadcrumb history from the session |
void |
removeSessionFormByKey(String formKey)
Removes the stored form data from the session |
void |
setMaxNumberOfSessionForms(int maxNumberOfSessionForms)
Setter for the maximum number of forms |
void |
updateFormWithSession(UifFormBase requestForm,
String formKey)
Retrieves the session form based on the formkey and updates the non session transient variables on the request form from the session form |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UifFormManager()
Method Detail |
---|
public void addSessionForm(UifFormBase form)
form
- to be added to the sessionpublic UifFormBase getSessionForm(String formKey)
formKey
- of the form to retrieve from the session
public void removeSessionForm(UifFormBase form)
form
- to be removedpublic void removeFormWithHistoryFormsByKey(String formKey)
formKey
- of the form to be removedpublic void removeSessionFormByKey(String formKey)
formKey
- of the form to be removedpublic void updateFormWithSession(UifFormBase requestForm, String formKey)
requestForm
- formKey
- public void purgeForm(UifFormBase form)
form
- - the form from which the session transient values have been purgedprotected Vector getAccessedFormKeys()
Used for the form clearing process. When forms are added to the manager their key is added to the top of the vector. When a form needs to be cleared, the form identified by the key at the botton of this vector is removed
public int getMaxNumberOfSessionForms()
public void setMaxNumberOfSessionForms(int maxNumberOfSessionForms)
maxNumberOfSessionForms
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |