Class UpdateAttachmentsOnFilesystemOnPageMoveHandler
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
ConstructorsConstructorDescriptionUpdateAttachmentsOnFilesystemOnPageMoveHandler
(AttachmentDataFileSystem attachmentDataFileSystem, AttachmentManager attachmentManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleBlogPostMovedEvent
(BlogPostMovedEvent blogPostMovedEvent) void
handlePageMovedEvent
(PageMoveEvent pageMoveEvent)
-
Constructor Details
-
UpdateAttachmentsOnFilesystemOnPageMoveHandler
public UpdateAttachmentsOnFilesystemOnPageMoveHandler(AttachmentDataFileSystem attachmentDataFileSystem, AttachmentManager attachmentManager)
-
-
Method Details
-
handleBlogPostMovedEvent
-
handlePageMovedEvent
-