|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.upgrade.upgradetask.HierarchicalFileSystemAttachmentUpgradeTask
public class HierarchicalFileSystemAttachmentUpgradeTask
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask |
---|
log |
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. |
java.lang.String |
getBuildNumber()
|
java.util.Collection<UpgradeError> |
getErrors()
Return any errors that occur. |
java.lang.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. |
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 doUpgrade() throws java.lang.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.
doUpgrade
in interface UpgradeTask
java.lang.Exception
public boolean isUpgradeNeeded()
public java.lang.String getBuildNumber()
getBuildNumber
in interface UpgradeTask
public java.util.Collection<UpgradeError> getErrors()
UpgradeTask
getErrors
in interface UpgradeTask
public java.lang.String getShortDescription()
UpgradeTask
getShortDescription
in interface UpgradeTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |