com.atlassian.jira.upgrade.tasks
Class UpgradeTask_Build601

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

public class UpgradeTask_Build601
extends AbstractUpgradeTask

Migrate the OSUser.xml configuration over to the new Crowd Embedded Directories. This is also a setup task, to create an initial directory configuration.

Since:
v4.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask
UpgradeTask.Status
 
Constructor Summary
UpgradeTask_Build601(org.ofbiz.core.entity.GenericDelegator genericDelegator, com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService, com.atlassian.crowd.directory.loader.LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader)
           
 
Method Summary
protected  void addJiraApplication()
           
protected  boolean areExternalUsersPresent()
          See if there are external users.
 void doUpgrade(boolean setupMode)
          Perform the upgrade.
 String getBuildNumber()
           
protected  InputStream getOSUserXmlStream()
          Get the osuser.xml.
 String getShortDescription()
          A short (<50 chars) description of the upgrade action
 
Methods inherited from class com.atlassian.jira.upgrade.AbstractUpgradeTask
addError, addErrors, addErrors, convertToSchemaTableName, getApplicationProperties, getDatabaseConnection, getDelegator, getErrors, getI18nBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeTask_Build601

public UpgradeTask_Build601(org.ofbiz.core.entity.GenericDelegator genericDelegator,
                            com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
                            com.atlassian.crowd.directory.loader.LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader)
Method Detail

getBuildNumber

public String getBuildNumber()
Specified by:
getBuildNumber in interface UpgradeTask
Specified by:
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(boolean setupMode)
               throws Exception
Description copied from interface: UpgradeTask
Perform the upgrade.

Specified by:
doUpgrade in interface UpgradeTask
Specified by:
doUpgrade in class AbstractUpgradeTask
Parameters:
setupMode - Indicating this upgrade task is running during set up.
Throws:
Exception

addJiraApplication

protected void addJiraApplication()
                           throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

areExternalUsersPresent

protected boolean areExternalUsersPresent()
                                   throws SQLException
See if there are external users. This method is protected so that it can be mocked out in unit tests.

Returns:
Throws:
SQLException

getOSUserXmlStream

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

Returns:
input stream


Copyright © 2002-2011 Atlassian. All Rights Reserved.