Class ResourceWizardBuilder
- java.lang.Object
-
- org.apache.syncope.client.ui.commons.wizards.AbstractModalPanelBuilder<T>
-
- org.apache.syncope.client.ui.commons.wizards.AjaxWizardBuilder<T>
-
- org.apache.syncope.client.console.wizards.BaseAjaxWizardBuilder<Serializable>
-
- org.apache.syncope.client.console.wizards.resources.AbstractResourceWizardBuilder<ResourceTO>
-
- org.apache.syncope.client.console.wizards.resources.ResourceWizardBuilder
-
- All Implemented Interfaces:
Serializable
,ModalPanelBuilder<Serializable>
public class ResourceWizardBuilder extends AbstractResourceWizardBuilder<ResourceTO>
Resource wizard builder.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.syncope.client.console.wizards.resources.AbstractResourceWizardBuilder
AbstractResourceWizardBuilder.CreateEvent
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectorRestClient
connectorRestClient
protected boolean
createFlag
protected ResourceRestClient
resourceRestClient
-
Fields inherited from class org.apache.syncope.client.ui.commons.wizards.AjaxWizardBuilder
LOG, mode, outerObjects
-
Fields inherited from class org.apache.syncope.client.ui.commons.wizards.AbstractModalPanelBuilder
eventSink, pageRef
-
-
Constructor Summary
Constructors Constructor Description ResourceWizardBuilder(ResourceTO resourceTO, ResourceRestClient resourceRestClient, ConnectorRestClient connectorRestClient, PageReference pageRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AjaxWizard<Serializable>
build(String id, AjaxWizard.Mode mode)
Build the wizard.protected WizardModel
buildModelSteps(Serializable modelObject, WizardModel wizardModel)
protected Serializable
getCreateCustomPayloadEvent(Serializable afterObject, AjaxRequestTarget target)
Override to send custom events after create.protected ResourceTO
onApplyInternal(Serializable modelObject)
-
Methods inherited from class org.apache.syncope.client.console.wizards.BaseAjaxWizardBuilder
execute, getMaxWaitTimeInSeconds, sendError, sendWarning
-
Methods inherited from class org.apache.syncope.client.ui.commons.wizards.AjaxWizardBuilder
addOuterObject, build, build, getEditCustomPayloadEvent
-
Methods inherited from class org.apache.syncope.client.ui.commons.wizards.AbstractModalPanelBuilder
getDefaultItem, getEventSink, getOriginalItem, getPageReference, newModelObject, onCancelInternal, setEventSink, setItem
-
-
-
-
Field Detail
-
resourceRestClient
protected final ResourceRestClient resourceRestClient
-
connectorRestClient
protected final ConnectorRestClient connectorRestClient
-
createFlag
protected boolean createFlag
-
-
Constructor Detail
-
ResourceWizardBuilder
public ResourceWizardBuilder(ResourceTO resourceTO, ResourceRestClient resourceRestClient, ConnectorRestClient connectorRestClient, PageReference pageRef)
-
-
Method Detail
-
build
public AjaxWizard<Serializable> build(String id, AjaxWizard.Mode mode)
Description copied from class:AjaxWizardBuilder
Build the wizard.- Overrides:
build
in classAjaxWizardBuilder<Serializable>
- Parameters:
id
- component id.mode
- wizard mode.- Returns:
- wizard.
-
buildModelSteps
protected WizardModel buildModelSteps(Serializable modelObject, WizardModel wizardModel)
- Specified by:
buildModelSteps
in classAjaxWizardBuilder<Serializable>
-
onApplyInternal
protected ResourceTO onApplyInternal(Serializable modelObject)
- Overrides:
onApplyInternal
in classAbstractModalPanelBuilder<Serializable>
-
getCreateCustomPayloadEvent
protected Serializable getCreateCustomPayloadEvent(Serializable afterObject, AjaxRequestTarget target)
Description copied from class:AjaxWizardBuilder
Override to send custom events after create.- Overrides:
getCreateCustomPayloadEvent
in classAjaxWizardBuilder<Serializable>
- Parameters:
afterObject
- after applied changes object.target
- ajax request target- Returns:
- payload to be sent.
-
-