
com.liferay.template.web.internal.upgrade.registry.TemplateWebUpgradeStepRegistrator 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.template.web.internal.upgrade.registry;
import com.liferay.portal.kernel.upgrade.BasePortletIdUpgradeProcess;
import com.liferay.portal.kernel.util.PortletKeys;
import com.liferay.portal.upgrade.registry.UpgradeStepRegistrator;
import com.liferay.template.constants.TemplatePortletKeys;
import org.osgi.service.component.annotations.Component;
/**
* @author Lourdes Fernández Besada
*/
@Component(service = UpgradeStepRegistrator.class)
public class TemplateWebUpgradeStepRegistrator
implements UpgradeStepRegistrator {
@Override
public void register(Registry registry) {
registry.registerInitialization();
registry.register(
"0.0.1", "1.0.1",
new BasePortletIdUpgradeProcess() {
@Override
protected String[][] getRenamePortletIdsArray() {
return new String[][] {
{
PortletKeys.PORTLET_DISPLAY_TEMPLATE,
TemplatePortletKeys.TEMPLATE
}
};
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy