Class FormBindingRequest

  • All Implemented Interfaces:
    com.embabel.agent.core.hitl.Awaitable , com.embabel.common.core.Identified , com.embabel.common.core.StableIdentified , com.embabel.common.core.types.HasInfoString , com.embabel.common.core.types.Timestamped

    
    public final class FormBindingRequest<O extends Object>
    extends AbstractAwaitable<Form, FormResponse>
                        

    Present the user with a form and bind it to the given class

    • Constructor Detail

      • FormBindingRequest

        FormBindingRequest(Form form, Class<O> outputClass, O population, List<ValidationError> validationErrors, Boolean persistent)
        Parameters:
        form - the form to present to the user
        outputClass - the class to bind the form submission to
        population - an optional instance to pre-populate the form
        validationErrors - optional validation errors to display on the form
        persistent - whether this request should be persisted
      • FormBindingRequest

        FormBindingRequest(Form form, Class<O> outputClass, O population, List<ValidationError> validationErrors)
        Parameters:
        form - the form to present to the user
        outputClass - the class to bind the form submission to
        population - an optional instance to pre-populate the form
        validationErrors - optional validation errors to display on the form
      • FormBindingRequest

        FormBindingRequest(Form form, Class<O> outputClass, O population)
        Parameters:
        form - the form to present to the user
        outputClass - the class to bind the form submission to
        population - an optional instance to pre-populate the form
      • FormBindingRequest

        FormBindingRequest(Form form, Class<O> outputClass)
        Parameters:
        form - the form to present to the user
        outputClass - the class to bind the form submission to