com.liferay.document.library.document.conversion.internal.upgrade.DocumentConversionUpgrade Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.document.library.document.conversion
Show all versions of com.liferay.document.library.document.conversion
Liferay Document Library Document Conversion
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.document.library.document.conversion.internal.upgrade;
import com.liferay.document.library.document.conversion.internal.upgrade.v1_0_0.UpgradeOpenOfficeConfiguration;
import com.liferay.portal.configuration.upgrade.PrefsPropsToConfigurationUpgradeHelper;
import com.liferay.portal.kernel.upgrade.DummyUpgradeStep;
import com.liferay.portal.upgrade.registry.UpgradeStepRegistrator;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
/**
* @author Pei-Jung Lan
*/
@Component(immediate = true, service = UpgradeStepRegistrator.class)
public class DocumentConversionUpgrade implements UpgradeStepRegistrator {
@Override
public void register(Registry registry) {
registry.register("0.0.0", "1.0.0", new DummyUpgradeStep());
registry.register(
"0.0.1", "1.0.0",
new UpgradeOpenOfficeConfiguration(
_prefsPropsToConfigurationUpgradeHelper));
}
@Reference
private PrefsPropsToConfigurationUpgradeHelper
_prefsPropsToConfigurationUpgradeHelper;
}