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