use of org.forgerock.openam.upgrade.DirectoryContentUpgrader in project OpenAM by OpenRock.
the class BootstrapData method initSMS.
public void initSMS(boolean startDS) throws UnsupportedEncodingException, LDAPServiceException, MalformedURLException {
String serverConfigXML = getServerConfigXML(false);
Properties prop = getBootstrapProperties();
SystemProperties.initializeProperties(prop, true);
Crypt.reinitialize();
loadServerConfigXML(serverConfigXML);
if (startDS) {
startEmbeddedDS(basedir + AMSetupServlet.OPENDS_DIR);
if (AMSetupServlet.isOpenDJUpgraded()) {
try {
new DirectoryContentUpgrader(basedir, dsbasedn).upgrade(true);
} catch (UpgradeException ue) {
throw new IllegalStateException("An error occurred while upgrading directory content", ue);
}
}
} else {
EmbeddedOpenDS.initializeForClientUse();
}
}
use of org.forgerock.openam.upgrade.DirectoryContentUpgrader in project OpenAM by OpenRock.
the class UpgradeDirectoryContentStep method initialize.
@Override
public void initialize() throws UpgradeException {
String baseDir = AMSetupServlet.getBaseDir();
String baseDN = SMSEntry.getRootSuffix();
upgrader = new DirectoryContentUpgrader(baseDir, baseDN);
}
Aggregations