Interface CloneModalFormAction<A extends CloneModalFormAction<A>>

    • Method Detail

      • redirectLink

        default A redirectLink​(Link link)
        Defines a redirect to occur following a successful clone operation.
        Parameters:
        link - the link to redirect to
        Returns:
        this
      • redirectLinkByPath

        default A redirectLinkByPath​(String path)
        Defines a redirect to occur following a successful clone operation.
        Parameters:
        path - the path to redirect to
        Returns:
        this
      • redirectLinkById

        default A redirectLinkById​(String componentId)
        Defines a redirect to occur following a successful clone operation.
        Parameters:
        componentId - the id of the component to redirect to
        Returns:
        this
      • transformClone

        default A transformClone​(Mapping<?>... mappings)
        Configure a set of Mapping to transform the cloned entity.

        A common use case is to transform the name of an entity, for example:

         cloneAction.transformClone(Mappings.templateTransform("name", "Clone of ${name}"));
         
        Returns:
        this
      • transformClone

        default A transformClone​(List<Mapping<?>> mappings)
        Configure a set of Mapping to transform the cloned entity.

        A common use case is to transform the name of an entity, for example:

         cloneAction.transformClone(
                 Arrays.asList(Mappings.templateTransform("name", "Clone of ${name}")));
         
        Returns:
        this
      • transformClone

        default A transformClone​(UnaryOperator<List<Mapping<?>>> fn)
        Configure a set of Mapping to transform the cloned entity.

        A common use case is to transform the name of an entity, for example:

         cloneAction.transformClone(
                 mappings -> mappings.add(Mappings.templateTransform("name", "Clone of ${name}")));
         
        Returns:
        this