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 |
---|---|
boolean |
equals(Object obj)
Equals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type.
|
List<Page> |
getMovedPageList() |
Page |
getNewParentpage()
Deprecated.
since 5.8. Use
getNewParentPage() instead. |
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() |
int |
hashCode()
Subclasses must override this to hash their own fields.
|
boolean |
hasMovedChildren() |
boolean |
isMovedBecauseOfParent() |
boolean |
isMovedSpace() |
String |
toString() |
getContent, getPage
isSuppressNotifications, setSuppressNotifications
getSource
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTimestamp
@Deprecated public PageMoveEvent(Object src, Page movedPage, @Nullable Space oldSpace, @Nullable Page oldParentPage, @Nullable Integer oldPosition, com.atlassian.user.User theMover)
PageMoveEvent(Object, com.atlassian.confluence.pages.Page, java.util.List, com.atlassian.confluence.spaces.Space, com.atlassian.confluence.pages.Page, Integer, com.atlassian.user.User, boolean)
insteadsrc
- 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 page - may be null if the user is anonymous@Deprecated public PageMoveEvent(Object src, Page movedPage, @Nullable Space oldSpace, @Nullable Page oldParentPage, @Nullable Integer oldPosition, @Nullable com.atlassian.user.User theMover, boolean movedBecauseOfParent)
PageMoveEvent(Object, com.atlassian.confluence.pages.Page, java.util.List, com.atlassian.confluence.spaces.Space, com.atlassian.confluence.pages.Page, Integer, com.atlassian.user.User, boolean)
insteadsrc
- 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 page - may be null if the user is anonymousmovedBecauseOfParent
- true if this page was moved as a result of its parent page being movedpublic PageMoveEvent(Object src, Page movedPage, List<Page> movedPageList, @Nullable Space oldSpace, @Nullable Page oldParentPage, @Nullable Integer oldPosition, @Nullable 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 not@Nonnull public Space getOldSpace()
@Nullable public Page getOldParentPage()
@Nullable public Integer getOldPosition()
@Nullable public com.atlassian.user.User getUser()
@Deprecated @Nullable public Page getNewParentpage()
getNewParentPage()
instead.public boolean hasMovedChildren()
public boolean isMovedBecauseOfParent()
public boolean isMovedSpace()
@Nullable public com.atlassian.user.User getOriginatingUser()
UserDriven
getOriginatingUser
in interface UserDriven
public boolean equals(@Nullable Object obj)
ConfluenceEvent
Subclasses must override this to compare their own fields.
public int hashCode()
ConfluenceEvent
Copyright © 2003–2017 Atlassian. All rights reserved.