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_2_3.UpgradeBookmarks;
20  import com.liferay.portal.upgrade.v5_2_3.UpgradeCalendar;
21  import com.liferay.portal.upgrade.v5_2_3.UpgradeDocumentLibrary;
22  import com.liferay.portal.upgrade.v5_2_3.UpgradeDuplicates;
23  import com.liferay.portal.upgrade.v5_2_3.UpgradeGroup;
24  import com.liferay.portal.upgrade.v5_2_3.UpgradeImageGallery;
25  import com.liferay.portal.upgrade.v5_2_3.UpgradeLayout;
26  import com.liferay.portal.upgrade.v5_2_3.UpgradeMessageBoards;
27  import com.liferay.portal.upgrade.v5_2_3.UpgradeResource;
28  import com.liferay.portal.upgrade.v5_2_3.UpgradeResourceCode;
29  import com.liferay.portal.upgrade.v5_2_3.UpgradeRole;
30  import com.liferay.portal.upgrade.v5_2_3.UpgradeSchema;
31  import com.liferay.portal.upgrade.v5_2_3.UpgradeSoftwareCatalog;
32  import com.liferay.portal.upgrade.v5_2_3.UpgradeTags;
33  import com.liferay.portal.upgrade.v5_2_3.UpgradeUser;
34  import com.liferay.portal.upgrade.v5_2_3.UpgradeWiki;
35  
36  /**
37   * <a href="UpgradeProcess_5_2_3.java.html"><b><i>View Source</i></b></a>
38   *
39   * @author Brian Wing Shun Chan
40   */
41  public class UpgradeProcess_5_2_3 extends UpgradeProcess {
42  
43      public int getThreshold() {
44          return ReleaseInfo.RELEASE_5_2_3_BUILD_NUMBER;
45      }
46  
47      protected void doUpgrade() throws Exception {
48          upgrade(UpgradeSchema.class);
49          upgrade(UpgradeBookmarks.class);
50          upgrade(UpgradeCalendar.class);
51          upgrade(UpgradeDocumentLibrary.class);
52          upgrade(UpgradeGroup.class);
53          upgrade(UpgradeImageGallery.class);
54          upgrade(UpgradeLayout.class);
55          upgrade(UpgradeResource.class);
56          upgrade(UpgradeResourceCode.class);
57          upgrade(UpgradeRole.class);
58          upgrade(UpgradeSoftwareCatalog.class);
59          upgrade(UpgradeTags.class);
60          upgrade(UpgradeUser.class);
61          upgrade(UpgradeWiki.class);
62          upgrade(UpgradeDuplicates.class);
63          upgrade(UpgradeMessageBoards.class);
64          upgrade(DropIndexes.class);
65      }
66  
67  }