Class WizardSession
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.nuxeo.ecm.webengine.ui.wizard.WizardSession
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class WizardSession extends HashMap<String,Object>
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
data
protected ValidationException
error
protected String
id
protected WizardPage
lastPage
protected WizardPage[]
orderedPages
protected Map<String,WizardPage>
pages
-
Constructor Summary
Constructors Constructor Description WizardSession(String wizardId, WizardPage[] pages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Form>
TgetForm(Class<T> formType)
String
getId()
WizardPage
getPage()
WizardPage
getPage(String id)
String
getPageAt(int index)
int
getPageCount()
WizardPage
popPage()
WizardPage
pushPage(String pageId)
ValidationException
removeError()
void
setError(ValidationException e)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
id
protected String id
-
data
protected Object data
-
error
protected ValidationException error
-
lastPage
protected WizardPage lastPage
-
pages
protected Map<String,WizardPage> pages
-
orderedPages
protected WizardPage[] orderedPages
-
-
Constructor Detail
-
WizardSession
public WizardSession(String wizardId, WizardPage[] pages)
-
-
Method Detail
-
pushPage
public WizardPage pushPage(String pageId)
-
popPage
public WizardPage popPage()
-
getPageCount
public int getPageCount()
-
getPage
public WizardPage getPage()
-
getPage
public WizardPage getPage(String id)
-
getPageAt
public String getPageAt(int index)
-
getId
public String getId()
-
setError
public void setError(ValidationException e)
-
removeError
public ValidationException removeError()
-
-