com.atlassian.confluence.event.events.content.page
Class PageMoveEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by com.atlassian.event.Event
              extended by com.atlassian.confluence.event.events.ConfluenceEvent
                  extended by com.atlassian.confluence.event.events.content.ContentEvent
                      extended by com.atlassian.confluence.event.events.content.page.PageEvent
                          extended by com.atlassian.confluence.event.events.content.page.PageMoveEvent
All Implemented Interfaces:
Updated, Serializable

public class PageMoveEvent
extends PageEvent
implements Updated

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PageMoveEvent(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(Object src, Page movedPage, Space oldSpace, Page oldParentPage, Integer oldPosition, com.atlassian.user.User user)
           
PageMoveEvent(Object src, Page movedPage, Space oldSpace, Page oldParentPage, Integer oldPosition, com.atlassian.user.User user, boolean movedBecauseOfParent)
           
 
Method Summary
 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 getUser()
           
 boolean hasMovedChildren()
           
 boolean isMovedBecauseOfParent()
           
 
Methods inherited from class com.atlassian.confluence.event.events.content.page.PageEvent
getContent, getPage
 
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
 

Constructor Detail

PageMoveEvent

public PageMoveEvent(Object src,
                     Page movedPage,
                     Space oldSpace,
                     Page oldParentPage,
                     Integer oldPosition,
                     com.atlassian.user.User user)
Parameters:
src - the object that performed the move
movedPage - the page that has been moved
oldSpace - the space the page was in - may be null if oldParentPage exists
oldParentPage - the page's old parent - may be null if the page was top level in a space
oldPosition - the page's old position if in an ordered list of siblings, else null
user - the user that moved the page

PageMoveEvent

public PageMoveEvent(Object src,
                     Page movedPage,
                     Space oldSpace,
                     Page oldParentPage,
                     Integer oldPosition,
                     com.atlassian.user.User user,
                     boolean movedBecauseOfParent)
Parameters:
src - the object that performed the move
movedPage - the page that has been moved
oldSpace - the space the page was in - may be null if oldParentPage exists
oldParentPage - the page's old parent - may be null if the page was top level in a space
oldPosition - the page's old position if in an ordered list of siblings, else null
user - the user that moved the page
movedBecauseOfParent - true if this page was moved as a result of its parent page being moved

PageMoveEvent

public PageMoveEvent(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

Method Detail

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 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.