forked from liferay/liferay-portal
/
PortalUpgradeProcessRegistryImpl.java
51 lines (38 loc) · 1.63 KB
/
PortalUpgradeProcessRegistryImpl.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.upgrade.v7_3_x;
import com.liferay.portal.kernel.upgrade.UpgradeCTModel;
import com.liferay.portal.kernel.upgrade.UpgradeProcess;
import com.liferay.portal.kernel.version.Version;
import com.liferay.portal.upgrade.util.PortalUpgradeProcessRegistry;
import java.util.TreeMap;
/**
* @author Alicia García
*/
public class PortalUpgradeProcessRegistryImpl
implements PortalUpgradeProcessRegistry {
@Override
public void registerUpgradeProcesses(
TreeMap<Version, UpgradeProcess> upgradeProcesses) {
upgradeProcesses.put(new Version(6, 0, 0), new UpgradeMVCCVersion());
upgradeProcesses.put(new Version(6, 0, 1), new UpgradeLayout());
upgradeProcesses.put(new Version(6, 0, 2), new UpgradeLayoutSet());
upgradeProcesses.put(
new Version(6, 0, 3), new UpgradeCTModel("Layout"));
upgradeProcesses.put(new Version(6, 0, 4), new UpgradeAssetCategory());
upgradeProcesses.put(
new Version(6, 0, 5), new UpgradeCTModel("ResourcePermission"));
upgradeProcesses.put(new Version(7, 0, 0), new UpgradeRatingsStats());
}
}