Class AjaxWizardBuilder<T extends Serializable>
java.lang.Object
org.apache.syncope.client.ui.commons.wizards.AbstractModalPanelBuilder<T>
org.apache.syncope.client.ui.commons.wizards.AjaxWizardBuilder<T>
- All Implemented Interfaces:
Serializable
,ModalPanelBuilder<T>
- Direct Known Subclasses:
AbstractAnyWizardBuilder
,BaseAjaxWizardBuilder
,OIDCProviderWizardBuilder
,SAML2IdPWizardBuilder
public abstract class AjaxWizardBuilder<T extends Serializable>
extends AbstractModalPanelBuilder<T>
- See Also:
-
Field Summary
Fields inherited from class org.apache.syncope.client.ui.commons.wizards.AbstractModalPanelBuilder
eventSink, pageRef
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOuterObject
(Component... childs) build
(String id, int index, AjaxWizard.Mode mode) Build the wizard.build
(String id, AjaxWizard.Mode mode) Build the wizard.build
(AjaxWizard.Mode mode) Build the wizard with a default wizard id.protected abstract WizardModel
buildModelSteps
(T modelObject, WizardModel wizardModel) protected abstract Future
<Pair<Serializable, Serializable>> execute
(Callable<Pair<Serializable, Serializable>> future) protected Serializable
getCreateCustomPayloadEvent
(Serializable afterObject, AjaxRequestTarget target) Override to send custom events after create.protected Serializable
getEditCustomPayloadEvent
(Serializable afterObject, AjaxRequestTarget target) Override to send custom events after edit.protected abstract long
protected abstract void
protected abstract void
sendWarning
(String message) Methods inherited from class org.apache.syncope.client.ui.commons.wizards.AbstractModalPanelBuilder
getDefaultItem, getEventSink, getOriginalItem, getPageReference, newModelObject, onApplyInternal, onCancelInternal, setEventSink, setItem
-
Field Details
-
LOG
-
mode
-
outerObjects
-
-
Constructor Details
-
AjaxWizardBuilder
Construct.- Parameters:
defaultItem
- default item.pageRef
- Caller page reference.
-
-
Method Details
-
addOuterObject
-
build
Description copied from interface:ModalPanelBuilder
Build the wizard.- Parameters:
id
- component id.index
- step index.mode
- mode.- Returns:
- wizard.
-
build
Build the wizard with a default wizard id.- Parameters:
mode
- wizard mode.- Returns:
- wizard.
-
build
Build the wizard.- Parameters:
id
- component id.mode
- wizard mode.- Returns:
- wizard.
-
buildModelSteps
-
getCreateCustomPayloadEvent
protected Serializable getCreateCustomPayloadEvent(Serializable afterObject, AjaxRequestTarget target) Override to send custom events after create.- Parameters:
afterObject
- after applied changes object.target
- ajax request target- Returns:
- payload to be sent.
-
getMaxWaitTimeInSeconds
protected abstract long getMaxWaitTimeInSeconds() -
sendError
-
sendWarning
-
execute
protected abstract Future<Pair<Serializable,Serializable>> execute(Callable<Pair<Serializable, Serializable>> future) -
getEditCustomPayloadEvent
protected Serializable getEditCustomPayloadEvent(Serializable afterObject, AjaxRequestTarget target) Override to send custom events after edit.- Parameters:
afterObject
- after applied changes object.target
- ajax request target- Returns:
- payload to be sent.
-