com.atlassian.confluence.links
Class RelatedContentRefactoringListener

java.lang.Object
  extended by com.atlassian.confluence.links.RelatedContentRefactoringListener

public class RelatedContentRefactoringListener
extends Object

A listener that is interested in events that could lead to relationships between the Confluence content requiring to be updated. This listener will respond to such events and modify (and save) the impacted content as necessary. As an example of such events, when a page is moved to a different space should there be other content that links to this page then it will need to be updated.

This listener is for 'RelatedContent' rather than just links since the use of embedded images in a page can also be affected by the page hosting those images being moved.

Since:
4.0

Constructor Summary
RelatedContentRefactoringListener()
           
 
Method Summary
 void handleEvent(AttachmentUpdateEvent event)
           
 void handleEvent(BlogPostUpdateEvent event)
           
 void handleEvent(PageMoveCompletedEvent event)
          This will be called to handle after page is moved
 void handleEvent(PageMoveEvent event)
           
 void handleEvent(PageUpdateEvent event)
           
 void setRelatedContentRefactorer(RelatedContentRefactorer relatedContentRefactorer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelatedContentRefactoringListener

public RelatedContentRefactoringListener()
Method Detail

setRelatedContentRefactorer

public void setRelatedContentRefactorer(RelatedContentRefactorer relatedContentRefactorer)

handleEvent

@EventListener
public void handleEvent(PageMoveEvent event)
Parameters:
event -

handleEvent

@EventListener
public void handleEvent(PageMoveCompletedEvent event)
This will be called to handle after page is moved

Parameters:
event -

handleEvent

@EventListener
public void handleEvent(PageUpdateEvent event)
Parameters:
event -

handleEvent

@EventListener
public void handleEvent(BlogPostUpdateEvent event)
Parameters:
event -

handleEvent

@EventListener
public void handleEvent(AttachmentUpdateEvent event)


Copyright © 2003–2015 Atlassian. All rights reserved.