public class PageMoveEvent extends PageEvent implements Updated, UserDriven
source
Constructor and Description |
---|
PageMoveEvent(Object src,
Page movedPage,
List<Page> movedPageList,
Space oldSpace,
Page oldParentPage,
Integer oldPosition,
com.atlassian.user.User theMover,
boolean movedBecauseOfParent) |
PageMoveEvent(Object src,
Page movedPage,
Space oldSpace,
Page oldParentPage,
Integer oldPosition,
com.atlassian.user.User theMover) |
PageMoveEvent(Object src,
Page movedPage,
Space oldSpace,
Page oldParentPage,
Integer oldPosition,
com.atlassian.user.User theMover,
boolean movedBecauseOfParent) |
Modifier and Type | Method and Description |
---|---|
List<Page> |
getMovedPageList() |
Page |
getNewParentpage() |
Page |
getOldParentPage() |
Integer |
getOldPosition()
Returns the position in the sibling page list the source page was in previously.
|
Space |
getOldSpace() |
com.atlassian.user.User |
getOriginatingUser()
Return the user that generated the event if known.
|
com.atlassian.user.User |
getUser() |
boolean |
hasMovedChildren() |
boolean |
isMovedBecauseOfParent() |
boolean |
isMovedSpace() |
String |
toString() |
getContent, getPage
equals, isSuppressNotifications, setSuppressNotifications
getSource
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTimestamp
public PageMoveEvent(Object src, Page movedPage, Space oldSpace, Page oldParentPage, Integer oldPosition, com.atlassian.user.User theMover)
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 nulltheMover
- the user that moved the pagepublic PageMoveEvent(Object src, Page movedPage, List<Page> movedPageList, Space oldSpace, Page oldParentPage, Integer oldPosition, com.atlassian.user.User theMover, boolean movedBecauseOfParent)
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 nulltheMover
- the user that moved the pagemovedPageList
- list of moved pages, used to check referrer/referring pages of source page are moved or notpublic PageMoveEvent(Object src, Page movedPage, Space oldSpace, Page oldParentPage, Integer oldPosition, com.atlassian.user.User theMover, boolean movedBecauseOfParent)
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 nulltheMover
- the user that moved the pagemovedBecauseOfParent
- true if this page was moved as a result of its parent page being movedpublic Space getOldSpace()
public Page getOldParentPage()
public Integer getOldPosition()
public com.atlassian.user.User getUser()
public Page getNewParentpage()
public boolean hasMovedChildren()
public boolean isMovedBecauseOfParent()
public boolean isMovedSpace()
public com.atlassian.user.User getOriginatingUser()
UserDriven
getOriginatingUser
in interface UserDriven
Copyright © 2003–2015 Atlassian. All rights reserved.