public class UifFormManager extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Vector |
accessedFormKeys |
protected Map<String,UifFormBase> |
sessionForms |
Constructor and Description |
---|
UifFormManager()
Create a new form manager with an empty list of forms for the session.
|
Modifier and Type | Method and Description |
---|---|
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
|
boolean |
hasSessionForm(String formKey)
Indicates whether the form manager has a session form with the given key
|
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
|
protected Vector accessedFormKeys
protected Map<String,UifFormBase> sessionForms
public UifFormManager()
public void addSessionForm(UifFormBase form)
form
- to be added to the sessionpublic UifFormBase getSessionForm(String formKey)
formKey
- of the form to retrieve from the sessionpublic 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 boolean hasSessionForm(String formKey)
formKey
- key of the form in session to check forpublic 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
- Copyright © 2005–2014 The Kuali Foundation. All rights reserved.