Class MigrateValidGotoSetting
- java.lang.Object
-
- org.forgerock.openam.upgrade.steps.AbstractUpgradeStep
-
- org.forgerock.openam.upgrade.steps.MigrateValidGotoSetting
-
- All Implemented Interfaces:
UpgradeStep
public class MigrateValidGotoSetting extends AbstractUpgradeStep
Migrates the list of valid goto domains from iPlanetAMAuthService to validationService and also updates the delegation policies so the agent accounts can access the new service (necessary for DAS).
-
-
Field Summary
-
Fields inherited from class org.forgerock.openam.upgrade.steps.AbstractUpgradeStep
BULLET, BUNDLE, DEBUG, INDENT
-
-
Constructor Summary
Constructors Constructor Description MigrateValidGotoSetting(PrivilegedAction<SSOToken> adminTokenAction, ConnectionFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDetailedReport(String delimiter)
Generates a detailed upgrade report suitable for reviewing changes.String
getShortReport(String delimiter)
Returns a short report for this upgrade step that should be suitable for the upgrade screen.void
initialize()
Initializes the upgrade step during which it determines what sort of changes needs to be applied to the configurationif any.boolean
isApplicable()
Tells whether this given upgrade step is applicable for this version/configuration of OpenAM.void
perform()
Performs the required changes for this upgrade step.-
Methods inherited from class org.forgerock.openam.upgrade.steps.AbstractUpgradeStep
getAdminSubject, getAdminToken, getConnection, getRealmNames
-
-
-
-
Constructor Detail
-
MigrateValidGotoSetting
@Inject public MigrateValidGotoSetting(PrivilegedAction<SSOToken> adminTokenAction, ConnectionFactory factory)
-
-
Method Detail
-
isApplicable
public boolean isApplicable()
Description copied from interface:UpgradeStep
Tells whether this given upgrade step is applicable for this version/configuration of OpenAM.- Returns:
true
if this upgrade step needs to be performed.
-
initialize
public void initialize() throws UpgradeException
Description copied from interface:UpgradeStep
Initializes the upgrade step during which it determines what sort of changes needs to be applied to the configurationif any.- Throws:
UpgradeException
- If there was an error while determining the required changes.
-
perform
public void perform() throws UpgradeException
Description copied from interface:UpgradeStep
Performs the required changes for this upgrade step.- Throws:
UpgradeException
- If there was an error while upgrading the configuration.
-
getShortReport
public String getShortReport(String delimiter)
Description copied from interface:UpgradeStep
Returns a short report for this upgrade step that should be suitable for the upgrade screen.- Parameters:
delimiter
- The delimiter to use between lines.- Returns:
- The short upgrade report.
-
getDetailedReport
public String getDetailedReport(String delimiter)
Description copied from interface:UpgradeStep
Generates a detailed upgrade report suitable for reviewing changes.- Parameters:
delimiter
- The delimiter to use between lines.- Returns:
- The detailed upgrade report.
-
-