Class Wizard
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultObject
-
- org.nuxeo.ecm.webengine.ui.wizard.Wizard
-
- Direct Known Subclasses:
WebForm
public abstract class Wizard extends DefaultObject
The following actions are available:- GET
- POST next
- POST ok
- POST cancel
- POST back
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
EMPTY
protected ValidationException
error
protected Map<String,String[]>
initialFields
protected WizardPage
page
protected WizardSession
session
-
Constructor Summary
Constructors Constructor Description Wizard()
-
Method Summary
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
-
-
-
Field Detail
-
session
protected WizardSession session
-
page
protected WizardPage page
-
error
protected ValidationException error
-
initialFields
protected Map<String,String[]> initialFields
-
-
Constructor Detail
-
Wizard
public Wizard()
-
-
Method Detail
-
createPages
protected abstract WizardPage[] createPages()
-
createInitialFields
protected Map<String,String[]> createInitialFields()
-
initialize
protected void initialize(Object... args)
- Overrides:
initialize
in classAbstractResource<ResourceTypeImpl>
-
destroySession
protected void destroySession()
-
createSessionId
protected String createSessionId()
-
getSession
public WizardSession getSession()
-
getPage
public WizardPage getPage()
-
isNextEnabled
public boolean isNextEnabled()
-
isBackEnabled
public boolean isBackEnabled()
-
isOkEnabled
public boolean isOkEnabled()
-
isCancelEnabled
public boolean isCancelEnabled()
-
getError
public ValidationException getError()
-
getFormFields
public Map<String,String[]> getFormFields()
-
getInvalidFields
public Collection<String> getInvalidFields()
-
getRequireddFields
public Collection<String> getRequireddFields()
-
hasErrors
public boolean hasErrors()
-
redirectOnOk
protected Object redirectOnOk()
-
redirectOnCancel
protected Object redirectOnCancel()
-
performOk
protected abstract void performOk() throws ValidationException
- Throws:
ValidationException
-
performCancel
protected void performCancel()
-
handleValidationError
protected Object handleValidationError(ValidationException e)
-
handleError
protected Object handleError(Throwable e)
-
validate
public <T extends Form> T validate(WizardPage page) throws ValidationException
- Throws:
ValidationException
-
handleNext
public Object handleNext()
-
handleBack
public Object handleBack()
-
handleCancel
public Object handleCancel()
-
-