public class PageMoveEvent extends PageEvent implements Updated, UserDriven, NotificationEnabledEvent
source| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable Object obj)
Equals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type.
|
@Nullable List<Page> |
getMovedPageList() |
@Nullable Page |
getNewParentPage() |
@Nullable Page |
getOldParentPage() |
@Nullable Integer |
getOldPosition()
Returns the position in the sibling page list the source page was in previously.
|
@NonNull Space |
getOldSpace() |
@Nullable com.atlassian.user.User |
getOriginatingUser()
Return the user that generated the event if known.
|
@Nullable 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, getPageisSuppressNotifications, setSuppressNotificationsgetSourceclone, finalize, getClass, notify, notifyAll, wait, wait, waitisSuppressNotificationsgetTimestamppublic 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 notpublic @NonNull Space getOldSpace()
public @Nullable Page getOldParentPage()
public @Nullable Integer getOldPosition()
public @Nullable com.atlassian.user.User getUser()
public @Nullable Page getNewParentPage()
public boolean hasMovedChildren()
public boolean isMovedBecauseOfParent()
public boolean isMovedSpace()
public @Nullable com.atlassian.user.User getOriginatingUser()
UserDrivengetOriginatingUser in interface UserDrivenpublic boolean equals(@Nullable Object obj)
ConfluenceEventSubclasses must override this to compare their own fields.
public int hashCode()
ConfluenceEventCopyright © 2003–2021 Atlassian. All rights reserved.