|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.upgrade.upgradetask.NetworkAndSiteNotificationTypesUpgradeTask
public class NetworkAndSiteNotificationTypesUpgradeTask
Fills in false
values for nulls in the network and digest notification columns.
Constructor Summary | |
---|---|
NetworkAndSiteNotificationTypesUpgradeTask(net.sf.hibernate.SessionFactory sessionFactory)
|
Method Summary | |
---|---|
void |
doNonDatabaseUpgrade()
Perform any non-database related parts of the upgrade task. |
void |
doUpgrade()
This upgrade task goes through the notifications table and applies a boolean value in the network and digest fields. |
void |
doUpgradeAfterImport()
Fixes digest notifications after an import from pre-3.3.1. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkAndSiteNotificationTypesUpgradeTask(net.sf.hibernate.SessionFactory sessionFactory)
Method Detail |
---|
public java.lang.String getBuildNumber()
getBuildNumber
in interface UpgradeTask
public java.lang.String getShortDescription()
UpgradeTask
getShortDescription
in interface UpgradeTask
public void doUpgrade() throws java.lang.Exception
doUpgrade
in interface UpgradeTask
java.lang.Exception
public void doUpgradeAfterImport() throws UpgradeException
false
after an import. Due to a bug in
3.3, this format may persist in that version too.
Note that this update is different from the change required when upgrading a database as in doUpgrade()
.
UpgradeException
public java.util.Collection<UpgradeError> getErrors()
UpgradeTask
getErrors
in interface UpgradeTask
public void doNonDatabaseUpgrade()
DatabaseUpgradeTask
UpgradeTask.doUpgrade()
. This allows the upgrade task to perform any local non-db cleanup
that might be involved in the upgrade.
doNonDatabaseUpgrade
in interface DatabaseUpgradeTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |