Interface CreateEntityView<V extends CreateEntityView<V>>

All Superinterfaces:
ActionView<V>, AugmentableView<V>, Comparable<V>, Component<V>, Copyable<V>, EntityView<V>, Serializable, Trackable<V>, View<V>
All Known Implementing Classes:
DefaultCreateEntityLongFormView, DefaultCreateEntityView

public interface CreateEntityView<V extends CreateEntityView<V>> extends EntityView<V>
Author:
Nick Crum (ncrum)
  • Method Details

    • redirectToBackOnCreate

      default V redirectToBackOnCreate()
      Configure this create view to redirect back rather than to the update view after a successful create request. This is typically used by views that either do not have an update view, or may not have an update view available for some time.
      Returns:
      this
    • redirectToUpdateOnCreate

      default V redirectToUpdateOnCreate()
      Configure this create view to redirect to the update view. This is the default behavior, and this method is typically only used when modifying an existing view that already used redirectToBackOnCreate()
      Returns:
      this
    • updateLink

      default V updateLink(Link link)
      Configures the link to the update view so that on a successful create the user will be redirected to the newly created item's update view.
      Parameters:
      link - the link to the update view
      Returns:
      this
    • updateLinkById

      default V updateLinkById(String componentId)
      Configures the link by ID to the update view so that on a successful create the user will be redirected to the newly created item's update view.
      Parameters:
      componentId - the componentId of the update view's route
      Returns:
      this
    • updateLinkByPath

      default V updateLinkByPath(String path)
      Configures the link by path to the update view so that on a successful create the user will be redirected to the newly created item's update view.
      Parameters:
      path - the path to the update view
      Returns:
      this
    • addSubmitAction

      default V addSubmitAction(Action<?> action)
    • submitAction

      default V submitAction(Action<?> action)
    • submitAction

      default V submitAction(UnaryOperator<Action<?>> fn)
    • getSubmitAction

      default Action<?> getSubmitAction()
    • findSubmitAction

      default Optional<Action<?>> findSubmitAction()
    • submitLabel

      default V submitLabel(InternationalizedMessage label)
    • submitLabel

      default V submitLabel(String label)
    • submitEndpoint

      default V submitEndpoint(Endpoint<?> endpoint)
    • submitEndpoint

      default V submitEndpoint(UnaryOperator<Endpoint<?>> fn)
    • getSubmitEndpoint

      default Endpoint<?> getSubmitEndpoint()
    • submitUrl

      default V submitUrl(String url)
    • submitScope

      default V submitScope(String scope)
    • submitUrl

      default V submitUrl(String url, String scope)