java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
All Implemented Interfaces:
Edited, ConfluenceEntityUpdated, UserDriven, Updated, Serializable

@AsynchronousPreferred @Deprecated public class PageEditedEvent extends PageEvent implements Edited, ConfluenceEntityUpdated
Deprecated.
since 5.5. Use the synchronous events
Event about page being updated.

Because on update currentPageId will always stay the same and new id will be created for originalPageId version comparison could be used for making sure that event is not out of date.

Since:
5.3
See Also:
  • Constructor Details

    • PageEditedEvent

      public PageEditedEvent(Object src, com.atlassian.sal.api.user.UserKey userKey, Long currentPageId, Integer currentVersion, Long originalPageId, Integer originalVersion, boolean suppressNotifications)
      Deprecated.
  • Method Details

    • getCurrentId

      public Long getCurrentId()
      Deprecated.
      Specified by:
      getCurrentId in interface ConfluenceEntityUpdated
      Returns:
      the new content id after the update
    • getCurrentVersion

      public Integer getCurrentVersion()
      Deprecated.
      Specified by:
      getCurrentVersion in interface ConfluenceEntityUpdated
      Returns:
      current version
    • getOriginalId

      public Long getOriginalId()
      Deprecated.
      Specified by:
      getOriginalId in interface ConfluenceEntityUpdated
      Returns:
      the original content id before the update
    • getOriginalVersion

      public Integer getOriginalVersion()
      Deprecated.
      Specified by:
      getOriginalVersion in interface ConfluenceEntityUpdated
      Returns:
      original version
    • isMinorEdit

      public boolean isMinorEdit()
      Deprecated.
      Specified by:
      isMinorEdit in interface Edited
    • equals

      public boolean equals(@Nullable Object o)
      Deprecated.
      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 ConfluenceEvent
      Parameters:
      o - 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()
      Deprecated.
      Description copied from class: ConfluenceEvent
      Subclasses must override this to hash their own fields.
      Overrides:
      hashCode in class ConfluenceEvent
      Returns:
      the hashcode