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.
Constructor and Description |
---|
UpdateAttachmentsOnFilesystemOnPageMoveHandler(AttachmentDataFileSystem attachmentDataFileSystem,
AttachmentManager attachmentManager) |
Modifier and Type | Method and Description |
---|---|
void |
handleBlogPostMovedEvent(BlogPostMovedEvent blogPostMovedEvent) |
void |
handlePageMovedEvent(PageMoveEvent pageMoveEvent) |
public UpdateAttachmentsOnFilesystemOnPageMoveHandler(AttachmentDataFileSystem attachmentDataFileSystem, AttachmentManager attachmentManager)
public void handleBlogPostMovedEvent(BlogPostMovedEvent blogPostMovedEvent)
public void handlePageMovedEvent(PageMoveEvent pageMoveEvent)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences