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, java.io.Serializable
public class PageMoveEvent
- extends PageEvent
- implements Updated
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
PageMoveEvent(java.lang.Object src,
Page movedPage,
Page oldParentPage,
Space oldSpace,
com.atlassian.user.User user,
boolean moveChildren)
Deprecated. since 2.9 Use PageMoveEvent(Object, Page, Space, Page, Integer, User) instead |
PageMoveEvent(java.lang.Object src,
Page movedPage,
Space oldSpace,
Page oldParentPage,
java.lang.Integer oldPosition,
com.atlassian.user.User user)
|
PageMoveEvent(java.lang.Object src,
Page movedPage,
Space oldSpace,
Page oldParentPage,
java.lang.Integer oldPosition,
com.atlassian.user.User user,
boolean movedBecauseOfParent)
|
Methods inherited from class com.atlassian.event.Event |
equals, hashCode |
Methods inherited from class org.springframework.context.ApplicationEvent |
getTimestamp |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PageMoveEvent
public PageMoveEvent(java.lang.Object src,
Page movedPage,
Space oldSpace,
Page oldParentPage,
java.lang.Integer oldPosition,
com.atlassian.user.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(java.lang.Object src,
Page movedPage,
Space oldSpace,
Page oldParentPage,
java.lang.Integer oldPosition,
com.atlassian.user.User user,
boolean movedBecauseOfParent)
- 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 pagemovedBecauseOfParent
- true if this page was moved as a result of its parent page being moved
PageMoveEvent
public PageMoveEvent(java.lang.Object src,
Page movedPage,
Page oldParentPage,
Space oldSpace,
com.atlassian.user.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 java.lang.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 com.atlassian.user.User getUser()
- Returns:
- the user that moved the page
getNewParentpage
public Page getNewParentpage()
hasMovedChildren
public boolean hasMovedChildren()
isMovedBecauseOfParent
public boolean isMovedBecauseOfParent()
- Returns:
- true if this page was moved as a result of its parent page being moved
Copyright © 2003-2011 Atlassian. All Rights Reserved.