public class

UpgradeTask_Build601

extends LegacyImmediateUpgradeTask
java.lang.Object
   ↳ com.atlassian.jira.upgrade.AbstractUpgradeTask
     ↳ com.atlassian.jira.upgrade.AbstractImmediateUpgradeTask
       ↳ com.atlassian.jira.upgrade.LegacyImmediateUpgradeTask
         ↳ com.atlassian.jira.upgrade.tasks.UpgradeTask_Build601

Class Overview

Migrate the OSUser.xml configuration over to the new Crowd Embedded Directories.

This is also a setup task, to create an initial directory configuration.

Summary

Public Constructors
UpgradeTask_Build601(GenericDelegator genericDelegator, CrowdDirectoryService crowdDirectoryService, LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader, ApplicationProperties applicationProperties)
Public Methods
@Nullable String dependsUpon()
Return the Upgrade task id of another upgrade task that must be run prior to this task.
void doUpgrade(boolean setupMode)
String getBuildNumber()
String getShortDescription()
Protected Methods
void addJiraApplication()
boolean areExternalUsersPresent()
See if there are external users.
InputStream getOSUserXmlStream()
Get the osuser.xml.
[Expand]
Inherited Methods
From class com.atlassian.jira.upgrade.LegacyImmediateUpgradeTask
From class com.atlassian.jira.upgrade.AbstractImmediateUpgradeTask
From class com.atlassian.jira.upgrade.AbstractUpgradeTask
From class java.lang.Object
From interface com.atlassian.jira.upgrade.UpgradeTask

Public Constructors

public UpgradeTask_Build601 (GenericDelegator genericDelegator, CrowdDirectoryService crowdDirectoryService, LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader, ApplicationProperties applicationProperties)

Public Methods

@Nullable public String dependsUpon ()

Return the Upgrade task id of another upgrade task that must be run prior to this task.

public void doUpgrade (boolean setupMode)

Throws
Exception

public String getBuildNumber ()

public String getShortDescription ()

Protected Methods

protected void addJiraApplication ()

Throws
GenericEntityException

protected boolean areExternalUsersPresent ()

See if there are external users. This method is protected so that it can be mocked out in unit tests.

Throws
SQLException

protected InputStream getOSUserXmlStream ()

Get the osuser.xml. This method is protected so that it can be mocked out in unit tests.

Returns
  • input stream