1   /**
2    * Copyright (c) 2000-2007 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.upgrade.v4_3_0.UpgradeAddress;
26  import com.liferay.portal.upgrade.v4_3_0.UpgradeBlogs;
27  import com.liferay.portal.upgrade.v4_3_0.UpgradeBookmarks;
28  import com.liferay.portal.upgrade.v4_3_0.UpgradeCalendar;
29  import com.liferay.portal.upgrade.v4_3_0.UpgradeClassName;
30  import com.liferay.portal.upgrade.v4_3_0.UpgradeCompany;
31  import com.liferay.portal.upgrade.v4_3_0.UpgradeContact;
32  import com.liferay.portal.upgrade.v4_3_0.UpgradeCounter;
33  import com.liferay.portal.upgrade.v4_3_0.UpgradeCountry;
34  import com.liferay.portal.upgrade.v4_3_0.UpgradeDocumentLibrary;
35  import com.liferay.portal.upgrade.v4_3_0.UpgradeEmailAddress;
36  import com.liferay.portal.upgrade.v4_3_0.UpgradeGroup;
37  import com.liferay.portal.upgrade.v4_3_0.UpgradeImage;
38  import com.liferay.portal.upgrade.v4_3_0.UpgradeImageGallery;
39  import com.liferay.portal.upgrade.v4_3_0.UpgradeJournal;
40  import com.liferay.portal.upgrade.v4_3_0.UpgradeListType;
41  import com.liferay.portal.upgrade.v4_3_0.UpgradeLucene;
42  import com.liferay.portal.upgrade.v4_3_0.UpgradeMappingTables;
43  import com.liferay.portal.upgrade.v4_3_0.UpgradeMessageBoards;
44  import com.liferay.portal.upgrade.v4_3_0.UpgradeOrganization;
45  import com.liferay.portal.upgrade.v4_3_0.UpgradePermission;
46  import com.liferay.portal.upgrade.v4_3_0.UpgradePhone;
47  import com.liferay.portal.upgrade.v4_3_0.UpgradePolls;
48  import com.liferay.portal.upgrade.v4_3_0.UpgradePortlet;
49  import com.liferay.portal.upgrade.v4_3_0.UpgradePortletPreferences;
50  import com.liferay.portal.upgrade.v4_3_0.UpgradeRatings;
51  import com.liferay.portal.upgrade.v4_3_0.UpgradeRegion;
52  import com.liferay.portal.upgrade.v4_3_0.UpgradeRelease;
53  import com.liferay.portal.upgrade.v4_3_0.UpgradeResource;
54  import com.liferay.portal.upgrade.v4_3_0.UpgradeRole;
55  import com.liferay.portal.upgrade.v4_3_0.UpgradeSchema;
56  import com.liferay.portal.upgrade.v4_3_0.UpgradeShopping;
57  import com.liferay.portal.upgrade.v4_3_0.UpgradeSubscription;
58  import com.liferay.portal.upgrade.v4_3_0.UpgradeUser;
59  import com.liferay.portal.upgrade.v4_3_0.UpgradeUserGroup;
60  import com.liferay.portal.upgrade.v4_3_0.UpgradeUserIdMapper;
61  import com.liferay.portal.upgrade.v4_3_0.UpgradeWebsite;
62  import com.liferay.portal.upgrade.v4_3_0.UpgradeWiki;
63  import com.liferay.portal.util.ReleaseInfo;
64  
65  import org.apache.commons.logging.Log;
66  import org.apache.commons.logging.LogFactory;
67  
68  /**
69   * <a href="UpgradeProcess_4_3_0.java.html"><b><i>View Source</i></b></a>
70   *
71   * @author Alexander Chow
72   * @author Brian Wing Shun Chan
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(UpgradeLucene.class);
87          upgrade(UpgradeImage.class);
88          upgrade(UpgradeCompany.class);
89          upgrade(UpgradeUser.class);
90          upgrade(UpgradeContact.class);
91          upgrade(UpgradeUserGroup.class);
92          upgrade(UpgradeOrganization.class);
93          upgrade(UpgradeGroup.class);
94          upgrade(UpgradeRole.class);
95          upgrade(UpgradeAddress.class);
96          upgrade(UpgradeBlogs.class);
97          upgrade(UpgradeBookmarks.class);
98          upgrade(UpgradeCalendar.class);
99          upgrade(UpgradeCountry.class);
100         upgrade(UpgradeDocumentLibrary.class);
101         upgrade(UpgradeEmailAddress.class);
102         upgrade(UpgradeImageGallery.class);
103         upgrade(UpgradeJournal.class);
104         upgrade(UpgradeListType.class);
105         upgrade(UpgradeMessageBoards.class);
106         upgrade(UpgradePermission.class);
107         upgrade(UpgradePhone.class);
108         upgrade(UpgradePolls.class);
109         upgrade(UpgradePortlet.class);
110         upgrade(UpgradeRegion.class);
111         upgrade(UpgradeRelease.class);
112         upgrade(UpgradeShopping.class);
113         upgrade(UpgradeSubscription.class);
114         upgrade(UpgradeUserIdMapper.class);
115         upgrade(UpgradeWebsite.class);
116         upgrade(UpgradeWiki.class);
117         upgrade(UpgradePortletPreferences.class);
118         upgrade(UpgradeRatings.class);
119         upgrade(UpgradeCounter.class);
120         upgrade(UpgradeResource.class);
121         upgrade(UpgradeMappingTables.class);
122     }
123 
124     private static Log _log = LogFactory.getLog(UpgradeProcess_4_3_0.class);
125 
126 }