Package com.atlassian.confluence.upgrade
Interface UpgradeTask
- All Superinterfaces:
UpgradeTaskInfo
- All Known Subinterfaces:
DatabaseUpgradeTask
,DeferredUpgradeTask
- All Known Implementing Classes:
AbstractConstraintCreationUpgradeTask
,AbstractDeferredRunUpgradeTask
,AbstractIndexContentUpgradeTask
,AbstractPageTemplateMigrationUpgradeTask
,AbstractUpgradeTask
,AbstractUserMappingUpgradeTask
,BandanaKeyUniqueConstraintUpgradeTask
,BandanaTokenCleanupUpgradeTask
,BandanaXStreamValueUpgradeTask
,DatabaseValidationQueryMigrationUpgradeTask
,DbTrueFalseTypeFixUpgradeTask
,DecoratorLangMacroReplacementUpgradeTask
,DeleteTemporaryAttachmentUploadsUpgradeTask
,DenormalisedContentPermissionsTriggersUpgradeTask
,DenormalisedContentPermissionsUpgradeTask
,DenormalisedContentStatusUpgradeTask
,DenormalisedPermissionsTriggersUpgradeTask
,DenormalisedSpacePermissionsUpgradeTask
,EmbeddedCrowdAddGroupExternalIdUpgradeTask
,EmbeddedCrowdSchemaUpgradeTask
,MigrateScheduledJobCacheUpgradeTask
,MigrateTrashDateUpgradeTask
,NoopSplitIndexUpgradeTask
,NullModificationDateDraftUpgradeTask
,RenameTempDirPropertyUpgradeTask
,ReplaceC3p0ConnectionPoolWithHikariCPUpgradeTask
,ResetJournalStateUpgradeTask
,SplitIndexUpgradeTask
,SplitJournalUpgradeTask
,SynchronyPidFileRemovalUpgradeTask
,TurnFastPermissionsOnByDefaultUpgradeTask
,UserDirectoryPasswordEncryptionUpgradeTask
,WikiToXhtmlMigrationUpgradeTask
Upgrade task.
Don't forget the ugprade tasks are also run on backup import: Please implement BackupSupport
and declare your backward-compatibility.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.slf4j.Logger
All upgrade tasks should use this log for convenience, unless there's some overriding reason to use a different log -
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform the upgrade.Return any errors that occur.void
validate()
Validates that this upgrade task can be performed.Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTaskInfo
getBuildNumber, getName, getShortDescription, isDatabaseUpgrade
-
Field Details
-
log
static final org.slf4j.Logger logAll upgrade tasks should use this log for convenience, unless there's some overriding reason to use a different log
-
-
Method Details
-
getConstraint
BuildNumberUpgradeConstraint getConstraint()- Returns:
- the constraint that must be passed for this task to be run.
-
validate
Validates that this upgrade task can be performed.- Throws:
Exception
-
doUpgrade
Perform the upgrade.- Throws:
Exception
-
getErrors
Collection<UpgradeError> getErrors()Return any errors that occur. Each entry is anUpgradeError
.- Returns:
- a collection of
UpgradeError
objects, sometimes null.
-