Class UpgradeTask622ExternalId
java.lang.Object
com.atlassian.crowd.upgrade.tasks.UpgradeTask622ExternalId
- All Implemented Interfaces:
UpgradeTask
Updates LDAP and delegating directories configuration by adding the User Unique Id attribute if absent.
Default value is a function of the directory type (example: entryUUID for OpenLDAP).
Updating configuration allows to track user renames from LDAP servers (after full sync).
- Since:
- 2.7
-
Constructor Summary
ConstructorDescriptionUpgradeTask622ExternalId
(DirectoryDao directoryDao, LDAPPropertiesHelper ldapPropertiesHelper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform the upgrade.int
Any errors that occur during the upgrade process will be added to this Collection as Strings.A short (less than 50 chars) description of the upgrade action
-
Constructor Details
-
UpgradeTask622ExternalId
public UpgradeTask622ExternalId(DirectoryDao directoryDao, LDAPPropertiesHelper ldapPropertiesHelper)
-
-
Method Details
-
getBuildNumber
public int getBuildNumber()- Specified by:
getBuildNumber
in interfaceUpgradeTask
- Returns:
- The build number that this upgrade is applicable to.
-
getShortDescription
Description copied from interface:UpgradeTask
A short (less than 50 chars) description of the upgrade action- Specified by:
getShortDescription
in interfaceUpgradeTask
- Returns:
- description of upgrade task.
-
doUpgrade
Description copied from interface:UpgradeTask
Perform the upgrade.- Specified by:
doUpgrade
in interfaceUpgradeTask
- Throws:
Exception
- is thrown if any errors occur during the upgrade process.
-
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 interfaceUpgradeTask
- Returns:
- a Collection<String> of errors. This may return an empty Collection.
-