All Implemented Interfaces:
NotificationEnabledEvent, Contented, Edited, Timestamped, ConfluenceEntityUpdated, Updated, Serializable

public class PageUpdateEvent extends PageEvent implements Edited, ConfluenceEntityUpdated, NotificationEnabledEvent
See Also:
  • Constructor Details

  • Method Details

    • getOriginalPage

      public @Nullable AbstractPage getOriginalPage()
    • isMinorEdit

      public boolean isMinorEdit()
      Specified by:
      isMinorEdit in interface Edited
    • getUpdateTrigger

      public @NonNull PageUpdateTrigger getUpdateTrigger()
    • getOld

      public @Nullable ConfluenceEntityObject getOld()
      Specified by:
      getOld in interface ConfluenceEntityUpdated
      Returns:
      the old content before the update
    • getNew

      public @NonNull ConfluenceEntityObject getNew()
      Specified by:
      getNew in interface ConfluenceEntityUpdated
      Returns:
      the new content after the update
    • isTitleChanged

      @EnsuresNonNullIf(expression="getOriginalPage()", result=true) public boolean isTitleChanged()
      Returns:
      true if the title was changed as part of the update this event relates to
    • toString

      public String toString()
      Overrides:
      toString in class PageEvent
    • equals

      public boolean equals(@Nullable Object obj)
      Description copied from class: ConfluenceEvent
      Equals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type. It is incorrect to try to make an instance of a subclass equal to an instance of any of its superclasses.

      Subclasses must override this to compare their own fields.

      Overrides:
      equals in class PageEvent
      Parameters:
      obj - the object to compare.
      Returns:
      true, if the given object has the same runtime class as this object's runtime class, and the event sources are equal.
    • hashCode

      public int hashCode()
      Description copied from class: ConfluenceEvent
      Subclasses must override this to hash their own fields.
      Overrides:
      hashCode in class PageEvent
      Returns:
      the hashcode