1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.upgrade;
16  
17  import com.liferay.portal.kernel.upgrade.UpgradeProcess;
18  import com.liferay.portal.kernel.util.ReleaseInfo;
19  import com.liferay.portal.upgrade.v5_1_7_to_5_2_7.UpgradeDuplicates;
20  import com.liferay.portal.upgrade.v5_1_7_to_5_2_7.UpgradeSchema;
21  import com.liferay.portal.upgrade.v5_1_7_to_5_2_7.UpgradeSocial;
22  import com.liferay.portal.upgrade.v5_2_0.UpgradeExpando;
23  import com.liferay.portal.upgrade.v5_2_0.UpgradeJournal;
24  import com.liferay.portal.upgrade.v5_2_0.UpgradeOrganization;
25  import com.liferay.portal.upgrade.v5_2_0.UpgradePortletId;
26  import com.liferay.portal.upgrade.v5_2_0.UpgradePortletPermissions;
27  import com.liferay.portal.upgrade.v5_2_0.UpgradeTags;
28  import com.liferay.portal.upgrade.v5_2_2.UpgradeWebForm;
29  import com.liferay.portal.upgrade.v5_2_6.UpgradeGroup;
30  import com.liferay.portal.upgrade.v5_2_6.UpgradeNestedPortlets;
31  
32  /**
33   * <a href="UpgradeProcess_5_1_7_to_5_2_7.java.html"><b><i>View Source</i></b>
34   * </a>
35   *
36   * @author Bijan Vakili
37   * @author Douglas Wong
38   */
39  public class UpgradeProcess_5_1_7_to_5_2_7 extends UpgradeProcess {
40  
41      public int getThreshold() {
42          return ReleaseInfo.RELEASE_5_2_7_BUILD_NUMBER;
43      }
44  
45      protected void doUpgrade() throws Exception {
46          upgrade(UpgradeSchema.class);
47  
48          // 5.1.2 to 5.2.0
49  
50          upgrade(UpgradeExpando.class);
51          upgrade(UpgradeJournal.class);
52          upgrade(UpgradeOrganization.class);
53          upgrade(UpgradePortletId.class);
54          upgrade(UpgradePortletPermissions.class);
55          upgrade(UpgradeTags.class);
56  
57          // 5.2.1 to 5.2.2
58  
59          upgrade(UpgradeWebForm.class);
60  
61          // 5.2.2 to 5.2.3
62  
63          upgrade(UpgradeDuplicates.class);
64  
65          // 5.2.4 to 5.2.5
66  
67          upgrade(UpgradeSocial.class);
68  
69          // 5.2.5 to 5.2.6
70  
71          upgrade(UpgradeGroup.class);
72          upgrade(UpgradeNestedPortlets.class);
73      }
74  
75  }