com.atlassian.jira.upgrade.tasks
Class UpgradeTask_Build601
java.lang.Object
com.atlassian.jira.upgrade.AbstractUpgradeTask
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
Constructor Summary |
UpgradeTask_Build601(org.ofbiz.core.entity.GenericDelegator genericDelegator,
com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
com.atlassian.crowd.directory.loader.LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader,
ApplicationProperties applicationProperties)
|
Methods inherited from class com.atlassian.jira.upgrade.AbstractUpgradeTask |
addError, addErrors, addErrors, convertToSchemaTableName, getApplicationProperties, getDatabaseConnection, getDatabaseType, getDelegator, getEntityEngine, getErrors, getI18nBean, getOfBizDelegator, getSchemaName, isMSSQL, isMYSQL, isORACLE, isPostgreSQL, isReindexRequired |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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,
ApplicationProperties applicationProperties)
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
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-2014 Atlassian. All Rights Reserved.