1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.upgrade;
24  
25  import com.liferay.portal.kernel.log.Log;
26  import com.liferay.portal.kernel.log.LogFactoryUtil;
27  import com.liferay.portal.kernel.util.ReleaseInfo;
28  import com.liferay.portal.upgrade.v4_3_0.UpgradeAddress;
29  import com.liferay.portal.upgrade.v4_3_0.UpgradeBlogs;
30  import com.liferay.portal.upgrade.v4_3_0.UpgradeBookmarks;
31  import com.liferay.portal.upgrade.v4_3_0.UpgradeCalendar;
32  import com.liferay.portal.upgrade.v4_3_0.UpgradeClassName;
33  import com.liferay.portal.upgrade.v4_3_0.UpgradeCompany;
34  import com.liferay.portal.upgrade.v4_3_0.UpgradeContact;
35  import com.liferay.portal.upgrade.v4_3_0.UpgradeCounter;
36  import com.liferay.portal.upgrade.v4_3_0.UpgradeCountry;
37  import com.liferay.portal.upgrade.v4_3_0.UpgradeDocumentLibrary;
38  import com.liferay.portal.upgrade.v4_3_0.UpgradeEmailAddress;
39  import com.liferay.portal.upgrade.v4_3_0.UpgradeGroup;
40  import com.liferay.portal.upgrade.v4_3_0.UpgradeImage;
41  import com.liferay.portal.upgrade.v4_3_0.UpgradeImageGallery;
42  import com.liferay.portal.upgrade.v4_3_0.UpgradeJournal;
43  import com.liferay.portal.upgrade.v4_3_0.UpgradeListType;
44  import com.liferay.portal.upgrade.v4_3_0.UpgradeMappingTables;
45  import com.liferay.portal.upgrade.v4_3_0.UpgradeMessageBoards;
46  import com.liferay.portal.upgrade.v4_3_0.UpgradeOrganization;
47  import com.liferay.portal.upgrade.v4_3_0.UpgradePermission;
48  import com.liferay.portal.upgrade.v4_3_0.UpgradePhone;
49  import com.liferay.portal.upgrade.v4_3_0.UpgradePolls;
50  import com.liferay.portal.upgrade.v4_3_0.UpgradePortlet;
51  import com.liferay.portal.upgrade.v4_3_0.UpgradePortletPreferences;
52  import com.liferay.portal.upgrade.v4_3_0.UpgradeRatings;
53  import com.liferay.portal.upgrade.v4_3_0.UpgradeRegion;
54  import com.liferay.portal.upgrade.v4_3_0.UpgradeRelease;
55  import com.liferay.portal.upgrade.v4_3_0.UpgradeResource;
56  import com.liferay.portal.upgrade.v4_3_0.UpgradeRole;
57  import com.liferay.portal.upgrade.v4_3_0.UpgradeSchema;
58  import com.liferay.portal.upgrade.v4_3_0.UpgradeShopping;
59  import com.liferay.portal.upgrade.v4_3_0.UpgradeSubscription;
60  import com.liferay.portal.upgrade.v4_3_0.UpgradeUser;
61  import com.liferay.portal.upgrade.v4_3_0.UpgradeUserGroup;
62  import com.liferay.portal.upgrade.v4_3_0.UpgradeUserIdMapper;
63  import com.liferay.portal.upgrade.v4_3_0.UpgradeWebsite;
64  import com.liferay.portal.upgrade.v4_3_0.UpgradeWiki;
65  
66  /**
67   * <a href="UpgradeProcess_4_3_0.java.html"><b><i>View Source</i></b></a>
68   *
69   * @author Alexander Chow
70   * @author Brian Wing Shun Chan
71   *
72   * @deprecated
73   *
74   */
75  public class UpgradeProcess_4_3_0 extends UpgradeProcess {
76  
77      public int getThreshold() {
78          return ReleaseInfo.RELEASE_4_3_0_BUILD_NUMBER;
79      }
80  
81      public void upgrade() throws UpgradeException {
82          _log.info("Upgrading");
83  
84          upgrade(UpgradeSchema.class);
85          upgrade(UpgradeClassName.class);
86          upgrade(UpgradeImage.class);
87          upgrade(UpgradeCompany.class);
88          upgrade(UpgradeUser.class);
89          upgrade(UpgradeContact.class);
90          upgrade(UpgradeUserGroup.class);
91          upgrade(UpgradeOrganization.class);
92          upgrade(UpgradeGroup.class);
93          upgrade(UpgradeRole.class);
94          upgrade(UpgradeAddress.class);
95          upgrade(UpgradeBlogs.class);
96          upgrade(UpgradeBookmarks.class);
97          upgrade(UpgradeCalendar.class);
98          upgrade(UpgradeCountry.class);
99          upgrade(UpgradeDocumentLibrary.class);
100         upgrade(UpgradeEmailAddress.class);
101         upgrade(UpgradeImageGallery.class);
102         upgrade(UpgradeJournal.class);
103         upgrade(UpgradeListType.class);
104         upgrade(UpgradeMessageBoards.class);
105         upgrade(UpgradePermission.class);
106         upgrade(UpgradePhone.class);
107         upgrade(UpgradePolls.class);
108         upgrade(UpgradePortlet.class);
109         upgrade(UpgradeRegion.class);
110         upgrade(UpgradeRelease.class);
111         upgrade(UpgradeShopping.class);
112         upgrade(UpgradeSubscription.class);
113         upgrade(UpgradeUserIdMapper.class);
114         upgrade(UpgradeWebsite.class);
115         upgrade(UpgradeWiki.class);
116         upgrade(UpgradePortletPreferences.class);
117         upgrade(UpgradeRatings.class);
118         upgrade(UpgradeCounter.class);
119         upgrade(UpgradeResource.class);
120         upgrade(UpgradeMappingTables.class);
121     }
122 
123     private static Log _log = LogFactoryUtil.getLog(UpgradeProcess_4_3_0.class);
124 
125 }