public class

PageMoveEvent

extends PageEvent
implements Updated UserDriven
java.lang.Object
   ↳ java.util.EventObject
     ↳ org.springframework.context.ApplicationEvent
       ↳ com.atlassian.event.Event
         ↳ com.atlassian.confluence.event.events.ConfluenceEvent
           ↳ com.atlassian.confluence.event.events.content.ContentEvent
             ↳ com.atlassian.confluence.event.events.content.page.PageEvent
               ↳ com.atlassian.confluence.event.events.content.page.PageMoveEvent

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
PageMoveEvent(Object src, Page movedPage, Space oldSpace, Page oldParentPage, Integer oldPosition, User theMover)
PageMoveEvent(Object src, Page movedPage, Space oldSpace, Page oldParentPage, Integer oldPosition, User theMover, boolean movedBecauseOfParent)
Public Methods
Page getNewParentpage()
Page getOldParentPage()
Integer getOldPosition()
Returns the position in the sibling page list the source page was in previously.
Space getOldSpace()
User getOriginatingUser()
Return the user that generated the event if known.
User getUser()
boolean hasMovedChildren()
boolean isMovedBecauseOfParent()
boolean isMovedSpace()
String toString()
[Expand]
Inherited Methods
From class com.atlassian.confluence.event.events.content.page.PageEvent
From class com.atlassian.confluence.event.events.content.ContentEvent
From class com.atlassian.event.Event
From class org.springframework.context.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object
From interface com.atlassian.confluence.event.events.types.UserDriven

Public Constructors

public PageMoveEvent (Object src, Page movedPage, Space oldSpace, Page oldParentPage, Integer oldPosition, User theMover)

Parameters
src the object that performed the move
movedPage the page that has been moved
oldSpace the space the page was in - may be null if oldParentPage exists
oldParentPage the page's old parent - may be null if the page was top level in a space
oldPosition the page's old position if in an ordered list of siblings, else null
theMover the user that moved the page

public PageMoveEvent (Object src, Page movedPage, Space oldSpace, Page oldParentPage, Integer oldPosition, User theMover, boolean movedBecauseOfParent)

Parameters
src the object that performed the move
movedPage the page that has been moved
oldSpace the space the page was in - may be null if oldParentPage exists
oldParentPage the page's old parent - may be null if the page was top level in a space
oldPosition the page's old position if in an ordered list of siblings, else null
theMover the user that moved the page
movedBecauseOfParent true if this page was moved as a result of its parent page being moved

Public Methods

public Page getNewParentpage ()

public Page getOldParentPage ()

Returns
  • the page's old parent - may be null if the page was top level in a space

public Integer getOldPosition ()

Returns the position in the sibling page list the source page was in previously. Will be null if the page was not in a manually-ordered list.

public Space getOldSpace ()

Returns
  • the space the page was in - should never return null

public User getOriginatingUser ()

Return the user that generated the event if known.

Returns
  • User that drove an event. Null indicates either that the event was driven by the anonymous user or the system itself.

public User getUser ()

Returns
  • the user that moved the page

public boolean hasMovedChildren ()

public boolean isMovedBecauseOfParent ()

Returns
  • true if this page was moved as a result of its parent page being moved

public boolean isMovedSpace ()

Returns
  • true if the page has moved space.

public String toString ()