Class EditConflictModal


  • public class EditConflictModal
    extends BaseModal
    Represent the modal displayed in case of edit conflict.
    Since:
    11.4RC1
    Version:
    $Id: d13e1a0d6b0dc78402bca6226817c84967070e5a $
    • Constructor Detail

      • EditConflictModal

        public EditConflictModal()
        Default constructor, wait for the modal to be visible.
    • Method Detail

      • cancelModal

        public void cancelModal()
        Cancel the modal and wait for it to be closed.
      • makeChoice

        public EditConflictModal makeChoice​(EditConflictModal.ConflictChoice choice)
        Chose an option among the conflict resolution options.
        Parameters:
        choice - the choice to make.
        Returns:
        a new EditConflictModal since it reloads the diff.
      • makeChoiceAndSubmit

        public void makeChoiceAndSubmit​(EditConflictModal.ConflictChoice choice,
                                        boolean waitSuccess)
        Chose an option to solve the conflict and submit it immediately.
        Parameters:
        choice - the choice to make
        waitSuccess - if true, wait for the saved notification. Note that this option cannot be used with reload choice.
      • getDiff

        public EntityDiff getDiff()
        Returns:
        the EntityDiff corresponding to the diff contained in the modal.
      • submitCurrentChoice

        public void submitCurrentChoice​(boolean waitSuccess)
        Submit the current choice.
        Parameters:
        waitSuccess - if true wait for the success notification. Note that this option doesn't have any effect when choice is reload.
      • isPreviewDiffOptionsAvailable

        public boolean isPreviewDiffOptionsAvailable()
        Returns:
        true if the options to change the diff is available.