com.atlassian.confluence.upgrade.upgradetask
Class HashTaskListKeysUpgradeTask
java.lang.Object
com.atlassian.confluence.upgrade.AbstractUpgradeTask
com.atlassian.confluence.upgrade.upgradetask.HashTaskListKeysUpgradeTask
- All Implemented Interfaces:
- UpgradeTask
public class HashTaskListKeysUpgradeTask
- extends AbstractUpgradeTask
|
Method Summary |
void |
doUpgrade()
We store the actual titles of task lists and the names of the items they contain the body of pages.
We store their complete/incomplete status in the OS_PROPERTYENTRY table. |
String |
getBuildNumber()
|
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 |
HashTaskListKeysUpgradeTask
public HashTaskListKeysUpgradeTask()
getBuildNumber
public String getBuildNumber()
- Specified by:
getBuildNumber in interface UpgradeTask- Overrides:
getBuildNumber in class AbstractUpgradeTask
- Returns:
- The build number that this upgrade is applicable to
getShortDescription
public String getShortDescription()
- Description copied from interface:
UpgradeTask
- A short (<50 chars) description of the upgrade action
- Specified by:
getShortDescription in interface UpgradeTask- Overrides:
getShortDescription in class AbstractUpgradeTask
doUpgrade
public void doUpgrade()
throws Exception
- We store the actual titles of task lists and the names of the items they contain the body of pages.
We store their complete/incomplete status in the OS_PROPERTYENTRY table.
As such, we do not need to preserve these titles or names in this table. We can use hashes to ensure the keys are under the 200 character limit.
We need only ensure that the way we access this state also uses the hash function. (updated tasklist macro source to do this)
See CONF-3622
- Throws:
Exception
Copyright © 2003-2011 Atlassian. All Rights Reserved.