Class UpdateAttachmentsOnFilesystemOnPageMoveHandler
- java.lang.Object
-
- com.atlassian.confluence.impl.pages.attachments.filesystem.UpdateAttachmentsOnFilesystemOnPageMoveHandler
-
public class UpdateAttachmentsOnFilesystemOnPageMoveHandler extends Object
A listener interested in page and blog post move events which will ensure any attachments associated with a page/blog post being moved are also moved to the new location.
Attachments are been stored on the filesystem in a structure that encapsulates the space key for the page. This means that if a page is moved to a different space then the location of the attachments will also need to be changed. This is the responsibility of this listener.
If a page/blog post isn't moving to a different space then this listener will not do anything.
- Since:
- 7.12
-
-
Constructor Summary
Constructors Constructor Description UpdateAttachmentsOnFilesystemOnPageMoveHandler(AttachmentDataFileSystem attachmentDataFileSystem, AttachmentManager attachmentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleBlogPostMovedEvent(BlogPostMovedEvent blogPostMovedEvent)
void
handlePageMovedEvent(PageMoveEvent pageMoveEvent)
-
-
-
Constructor Detail
-
UpdateAttachmentsOnFilesystemOnPageMoveHandler
public UpdateAttachmentsOnFilesystemOnPageMoveHandler(AttachmentDataFileSystem attachmentDataFileSystem, AttachmentManager attachmentManager)
-
-
Method Detail
-
handleBlogPostMovedEvent
public void handleBlogPostMovedEvent(BlogPostMovedEvent blogPostMovedEvent)
-
handlePageMovedEvent
public void handlePageMovedEvent(PageMoveEvent pageMoveEvent)
-
-