com.atlassian.confluence.pages.persistence.dao.filesystem
Class UpdateAttachmentsOnFilesystemOnPageMoveListener

java.lang.Object
  extended by com.atlassian.confluence.pages.persistence.dao.filesystem.UpdateAttachmentsOnFilesystemOnPageMoveListener

public class UpdateAttachmentsOnFilesystemOnPageMoveListener
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.

Since CONF-8298 was implemented in Confluence 3, attachments have 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 filesystem storage is not used, or if a page/blog post isn't moving to a different space then this listener will not do anything.

Since:
5.5

Constructor Summary
UpdateAttachmentsOnFilesystemOnPageMoveListener()
           
 
Method Summary
 Class[] getHandledEventClasses()
          Deprecated. since 5.6.2. No longer required as it was part of the old EventListener interface
 void handleBlogPostMovedEvent(BlogPostMovedEvent blogPostMovedEvent)
           
 void handlePageMovedEvent(PageMoveEvent pageMoveEvent)
           
 void setAttachmentManager(AttachmentManager attachmentManager)
           
 void setFileSystemAttachmentDataDao(FileSystemAttachmentDataDao fileSystemAttachmentDataDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateAttachmentsOnFilesystemOnPageMoveListener

public UpdateAttachmentsOnFilesystemOnPageMoveListener()
Method Detail

getHandledEventClasses

@Deprecated
public Class[] getHandledEventClasses()
Deprecated. since 5.6.2. No longer required as it was part of the old EventListener interface


handleBlogPostMovedEvent

@EventListener
public void handleBlogPostMovedEvent(BlogPostMovedEvent blogPostMovedEvent)

handlePageMovedEvent

@EventListener
public void handlePageMovedEvent(PageMoveEvent pageMoveEvent)

setAttachmentManager

public void setAttachmentManager(AttachmentManager attachmentManager)

setFileSystemAttachmentDataDao

public void setFileSystemAttachmentDataDao(FileSystemAttachmentDataDao fileSystemAttachmentDataDao)


Copyright © 2003–2015 Atlassian. All rights reserved.