
com.liferay.search.experiences.internal.upgrade.SXPUpgradeStepRegistrator Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Liferay Enterprise
* Subscription License ("License"). You may not use this file except in
* compliance with the License. You can obtain a copy of the License by
* contacting Liferay, Inc. See the License for the specific language governing
* permissions and limitations under the License, including but not limited to
* distribution rights of the Software.
*
*
*
*/
package com.liferay.search.experiences.internal.upgrade;
import com.liferay.portal.kernel.upgrade.BaseExternalReferenceCodeUpgradeProcess;
import com.liferay.portal.upgrade.registry.UpgradeStepRegistrator;
import com.liferay.search.experiences.internal.upgrade.v1_1_0.SXPBlueprintUpgradeProcess;
import com.liferay.search.experiences.internal.upgrade.v1_1_0.SXPElementUpgradeProcess;
import org.osgi.service.component.annotations.Component;
/**
* @author Petteri Karttunen
*/
@Component(
enabled = true, immediate = true, service = UpgradeStepRegistrator.class
)
public class SXPUpgradeStepRegistrator implements UpgradeStepRegistrator {
@Override
public void register(Registry registry) {
registry.register(
"1.0.0", "1.1.0", new SXPElementUpgradeProcess(),
new SXPBlueprintUpgradeProcess());
registry.register(
"1.1.0", "1.2.0",
new BaseExternalReferenceCodeUpgradeProcess() {
@Override
protected String[][] getTableAndPrimaryKeyColumnNames() {
return new String[][] {
{"SXPBlueprint", "sxpBlueprintId"},
{"SXPElement", "sxpElementId"}
};
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy