Class UpgradeTask452

java.lang.Object
com.atlassian.crowd.upgrade.tasks.UpgradeTask452
All Implemented Interfaces:
UpgradeTask

public class UpgradeTask452 extends Object implements UpgradeTask
Upgrades directories to contain UPDATE_USER_ATTRIBUTE, UPDATE_GROUP_ATTRIBUTE and UPDATE_ROLE_ATTRIBUTE permissions.
Since:
v2.2
  • Constructor Details

    • UpgradeTask452

      public UpgradeTask452()
  • Method Details

    • getBuildNumber

      public int getBuildNumber()
      Specified by:
      getBuildNumber in interface UpgradeTask
      Returns:
      The build number that this upgrade is applicable to.
    • getShortDescription

      public String getShortDescription()
      Description copied from interface: UpgradeTask
      A short (less than 50 chars) description of the upgrade action
      Specified by:
      getShortDescription in interface UpgradeTask
      Returns:
      description of upgrade task.
    • doUpgrade

      public void doUpgrade() throws Exception
      Description copied from interface: UpgradeTask
      Perform the upgrade.
      Specified by:
      doUpgrade in interface UpgradeTask
      Throws:
      Exception - is thrown if any errors occur during the upgrade process.
    • getErrors

      public Collection<String> getErrors()
      Description copied from interface: UpgradeTask
      Any errors that occur during the upgrade process will be added to this Collection as Strings.
      Specified by:
      getErrors in interface UpgradeTask
      Returns:
      a Collection<String> of errors. This may return an empty Collection.
    • setDirectoryDao

      public void setDirectoryDao(DirectoryDao directoryDao)
    • setApplicationDao

      public void setApplicationDao(ApplicationDAO applicationDao)