com.atlassian.confluence.event.events.content.page
Class PageMoveEvent
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
- All Implemented Interfaces:
- Updated, Serializable
public class PageMoveEvent
- extends PageEvent
- implements Updated
- See Also:
- Serialized Form
Constructor Summary |
PageMoveEvent(Object src,
Page movedPage,
Page oldParentPage,
Space oldSpace,
User user,
boolean moveChildren)
Deprecated. since 2.9 Use PageMoveEvent(Object, Page, Space, Page, Integer, User) instead |
PageMoveEvent(Object src,
Page movedPage,
Space oldSpace,
Page oldParentPage,
Integer oldPosition,
User user)
|
Methods inherited from class org.springframework.context.ApplicationEvent |
getTimestamp |
PageMoveEvent
public PageMoveEvent(Object src,
Page movedPage,
Space oldSpace,
Page oldParentPage,
Integer oldPosition,
User user)
- Parameters:
src
- the object that performed the movemovedPage
- the page that has been movedoldSpace
- the space the page was in - may be null if oldParentPage existsoldParentPage
- the page's old parent - may be null if the page was top level in a spaceoldPosition
- the page's old position if in an ordered list of siblings, else nulluser
- the user that moved the page
PageMoveEvent
public PageMoveEvent(Object src,
Page movedPage,
Page oldParentPage,
Space oldSpace,
User user,
boolean moveChildren)
- Deprecated. since 2.9 Use
PageMoveEvent(Object, Page, Space, Page, Integer, User)
instead
getOldSpace
public Space getOldSpace()
- Returns:
- the space the page was in - should never return null
getOldParentPage
public Page getOldParentPage()
- Returns:
- the page's old parent - may be null if the page was top level in a space
getOldPosition
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.
getUser
public User getUser()
- Returns:
- the user that moved the page
getNewParentpage
public Page getNewParentpage()
hasMovedChildren
public boolean hasMovedChildren()