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 Details

  • Constructor Details

    • AjaxWizardBuilder

      public AjaxWizardBuilder(T defaultItem, PageReference pageRef)
      Construct.
      Parameters:
      defaultItem - default item.
      pageRef - Caller page reference.
  • Method Details

    • addOuterObject

      public AjaxWizardBuilder<T> addOuterObject(Component... childs)
    • build

      public AjaxWizard<T> build(String id, int index, AjaxWizard.Mode mode)
      Description copied from interface: ModalPanelBuilder
      Build the wizard.
      Parameters:
      id - component id.
      index - step index.
      mode - mode.
      Returns:
      wizard.
    • build

      public AjaxWizard<T> build(AjaxWizard.Mode mode)
      Build the wizard with a default wizard id.
      Parameters:
      mode - wizard mode.
      Returns:
      wizard.
    • build

      public AjaxWizard<T> build(String id, AjaxWizard.Mode mode)
      Build the wizard.
      Parameters:
      id - component id.
      mode - wizard mode.
      Returns:
      wizard.
    • buildModelSteps

      protected abstract WizardModel buildModelSteps(T modelObject, WizardModel wizardModel)
    • 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

      protected abstract void sendError(Exception exception)
    • sendWarning

      protected abstract void sendWarning(String message)
    • 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.