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.
Constructor and Description |
---|
RelatedContentRefactoringListener() |
Modifier and Type | Method and Description |
---|---|
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) |
public void setRelatedContentRefactorer(RelatedContentRefactorer relatedContentRefactorer)
@EventListener public void handleEvent(PageMoveEvent event)
event
- @EventListener public void handleEvent(PageMoveCompletedEvent event)
event
- @EventListener public void handleEvent(PageUpdateEvent event)
event
- @EventListener public void handleEvent(BlogPostUpdateEvent event)
event
- @EventListener public void handleEvent(AttachmentUpdateEvent event)
Copyright © 2003–2016 Atlassian. All rights reserved.