|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.upgrade.AbstractUpgradeTask com.atlassian.confluence.upgrade.upgradetask.HierarchicalFileSystemAttachmentUpgradeTask
public class HierarchicalFileSystemAttachmentUpgradeTask
Constructor Summary | |
---|---|
HierarchicalFileSystemAttachmentUpgradeTask(FileLocationResolver attachmentsDirectoryResolver,
AttachmentManager attachmentManager,
net.sf.hibernate.SessionFactory sessionFactory,
HierarchicalFileSystemAttachmentDataDao dataDao,
IdMultiPartHashGenerator multiPartHashGenerator)
|
Method Summary | |
---|---|
void |
doUpgrade()
If this instance of Confluence is configured to store attachments on the file system then this task will migrate the attachments to a new hierarchical structure. |
String |
getBuildNumber()
|
String |
getShortDescription()
A short (<50 chars) description of the upgrade action |
boolean |
isUpgradeNeeded()
Based on the configuration of the Confluence AttachmentManager decide on whether this upgrade task should be run. |
void |
validate()
This is only implemented in this abstract base class for the convenience of the large number of older upgrade tasks. |
Methods inherited from class com.atlassian.confluence.upgrade.AbstractUpgradeTask |
---|
addAllErrors, addError, addError, getConstraint, getErrors, setBuildNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HierarchicalFileSystemAttachmentUpgradeTask(FileLocationResolver attachmentsDirectoryResolver, AttachmentManager attachmentManager, net.sf.hibernate.SessionFactory sessionFactory, HierarchicalFileSystemAttachmentDataDao dataDao, IdMultiPartHashGenerator multiPartHashGenerator)
Method Detail |
---|
public void validate()
AbstractUpgradeTask
This is only implemented in this abstract base class for the convenience of the large number of older upgrade tasks.
If you are implementing a new UpgradeTask you must give some consideration to implementing validation as well.
validate
in interface UpgradeTask
validate
in class AbstractUpgradeTask
public void doUpgrade() throws Exception
If this instance of Confluence is configured to store attachments on the file system then this task will migrate the attachments to a new hierarchical structure.
If non file system storage (e.g. Database) of attachments is used then this upgrade task will log the fact that it is doing nothing.
Exception
public boolean isUpgradeNeeded()
public String getBuildNumber()
getBuildNumber
in interface UpgradeTask
getBuildNumber
in class AbstractUpgradeTask
public String getShortDescription()
UpgradeTask
getShortDescription
in interface UpgradeTask
getShortDescription
in class AbstractUpgradeTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |