com.liferay.portal.upload.internal.upgrade.UploadUpgrade Maven / Gradle / Ivy
/**
* 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.portal.upload.internal.upgrade;
import com.liferay.portal.configuration.upgrade.PrefsPropsToConfigurationUpgradeHelper;
import com.liferay.portal.kernel.upgrade.DummyUpgradeStep;
import com.liferay.portal.upgrade.registry.UpgradeStepRegistrator;
import com.liferay.portal.upload.internal.upgrade.v1_0_0.UpgradeUploadServletRequestConfiguration;
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 UploadUpgrade 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 UpgradeUploadServletRequestConfiguration(
_prefsPropsToConfigurationUpgradeHelper));
}
@Reference
private PrefsPropsToConfigurationUpgradeHelper
_prefsPropsToConfigurationUpgradeHelper;
}