com.atlassian.confluence.upgrade
Class HashTaskListKeysUpgradeTask

java.lang.Object
  extended by com.atlassian.confluence.upgrade.HashTaskListKeysUpgradeTask
All Implemented Interfaces:
com.atlassian.upgrade.UpgradeTask

public class HashTaskListKeysUpgradeTask
extends java.lang.Object
implements com.atlassian.upgrade.UpgradeTask


Constructor Summary
HashTaskListKeysUpgradeTask()
           
 
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.
 java.lang.String getBuildNumber()
           
 java.util.Collection getErrors()
           
 java.lang.String getShortDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashTaskListKeysUpgradeTask

public HashTaskListKeysUpgradeTask()
Method Detail

getBuildNumber

public java.lang.String getBuildNumber()
Specified by:
getBuildNumber in interface com.atlassian.upgrade.UpgradeTask

getShortDescription

public java.lang.String getShortDescription()
Specified by:
getShortDescription in interface com.atlassian.upgrade.UpgradeTask

doUpgrade

public void doUpgrade()
               throws java.lang.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

Specified by:
doUpgrade in interface com.atlassian.upgrade.UpgradeTask
Throws:
java.lang.Exception

getErrors

public java.util.Collection getErrors()
Specified by:
getErrors in interface com.atlassian.upgrade.UpgradeTask


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.