public class

HierarchicalFileSystemAttachmentMoveTask

extends Object
implements Runnable
java.lang.Object
   ↳ com.atlassian.confluence.upgrade.upgradetask.HierarchicalFileSystemAttachmentMoveTask

Class Overview

A task that will move attachments from the previous storage layout of contentid/attachmentid/version (or for CONF-8298 the layout last4digitsOfContentId/contentId/attachmentId/version) to the layout used by the new HierarchicalFileSystemAttachmentDataDao implementation.

This class is not for multi-threaded use.

Summary

Public Constructors
HierarchicalFileSystemAttachmentMoveTask(SessionFactory sessionFactory, HierarchicalFileSystemAttachmentDataDao hierarchicalFileSystemAttachmentDataDao, File attachmentsDirectory, IdMultiPartHashGenerator multiPartHashGenerator, Logger logger)
Public Methods
int preRunChecksAndSetUp()
Perform some checks and set up the required instance variables prior to running this task.
void run()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Runnable

Public Constructors

public HierarchicalFileSystemAttachmentMoveTask (SessionFactory sessionFactory, HierarchicalFileSystemAttachmentDataDao hierarchicalFileSystemAttachmentDataDao, File attachmentsDirectory, IdMultiPartHashGenerator multiPartHashGenerator, Logger logger)

Public Methods

public int preRunChecksAndSetUp ()

Perform some checks and set up the required instance variables prior to running this task.

Returns
  • the number of content directories that will be migrated.

public void run ()