com.atlassian.jira.upgrade.tasks
Class UpgradeTask_Build180

java.lang.Object
  extended by com.atlassian.jira.upgrade.AbstractUpgradeTask
      extended by com.atlassian.jira.upgrade.tasks.UpgradeTask_Build180
All Implemented Interfaces:
UpgradeTask

public class UpgradeTask_Build180
extends AbstractUpgradeTask

Sets the comment visibility restriction to Both Role and Group restriction. This task is intended only to run as a part of upgrade (not during setup) and this means that only if JIRA is being upgraded will this setting be made. As Role comment visibility restriction is the default we want for new installations, we need this upgrade task to preserve the group visibility for upgraders.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask
UpgradeTask.Status
 
Constructor Summary
UpgradeTask_Build180()
           
 
Method Summary
 void doUpgrade()
          Sets the "jira.comment.level.visibility.groups" application property to true.
 String getBuildNumber()
          Returns 180
 String getShortDescription()
          Returns a short description of this upgrade task
 
Methods inherited from class com.atlassian.jira.upgrade.AbstractUpgradeTask
addError, addErrors, addErrors, getApplicationProperties, getDelegator, getErrors, getI18nBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeTask_Build180

public UpgradeTask_Build180()
Method Detail

getBuildNumber

public String getBuildNumber()
Returns 180

Specified by:
getBuildNumber in interface UpgradeTask
Specified by:
getBuildNumber in class AbstractUpgradeTask
Returns:
180

doUpgrade

public void doUpgrade()
Sets the "jira.comment.level.visibility.groups" application property to true.

Specified by:
doUpgrade in interface UpgradeTask
Specified by:
doUpgrade in class AbstractUpgradeTask

getShortDescription

public String getShortDescription()
Returns a short description of this upgrade task

Specified by:
getShortDescription in interface UpgradeTask
Overrides:
getShortDescription in class AbstractUpgradeTask
Returns:
a short description string


Copyright © 2002-2008 Atlassian. All Rights Reserved.