UpdateAttachmentsOnFilesystemOnPageMoveListener
@Deprecated public class UpdateAttachmentsOnFilesystemOnPageMoveListener extends Object implements com.atlassian.event.EventListener
A listener interested in page move events which will ensure any attachments associated with a page 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 isn't moving to a different space then this listener will not do anything.
Constructor and Description |
---|
UpdateAttachmentsOnFilesystemOnPageMoveListener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Class[] |
getHandledEventClasses()
Deprecated.
|
void |
handleEvent(com.atlassian.event.Event event)
Deprecated.
|
void |
setAttachmentManager(AttachmentManager attachmentManager)
Deprecated.
|
void |
setDefaultAttachmentManager(AttachmentManager defaultAttachmentManager)
Deprecated.
The default attachment manager is set here so that the logic from the delegating attachment manager does not need
to be reproduced here.
|
void |
setDelegatorAttachmentManager(DelegatorAttachmentManager delegatorAttachmentManager)
Deprecated.
|
void |
setFileSystemAttachmentDataDao(FileSystemAttachmentDataDao fileSystemAttachmentDataDao)
Deprecated.
|
public UpdateAttachmentsOnFilesystemOnPageMoveListener()
public Class[] getHandledEventClasses()
getHandledEventClasses
in interface com.atlassian.event.EventListener
public void handleEvent(com.atlassian.event.Event event)
handleEvent
in interface com.atlassian.event.EventListener
public void setDefaultAttachmentManager(AttachmentManager defaultAttachmentManager)
public void setDelegatorAttachmentManager(DelegatorAttachmentManager delegatorAttachmentManager)
public void setAttachmentManager(AttachmentManager attachmentManager)
public void setFileSystemAttachmentDataDao(FileSystemAttachmentDataDao fileSystemAttachmentDataDao)
Copyright © 2003–2017 Atlassian. All rights reserved.