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(new UpgradeSchema());
85          upgrade(new UpgradeClassName());
86          upgrade(new UpgradeLucene());
87          upgrade(new UpgradeImage());
88          upgrade(new UpgradeCompany());
89          upgrade(new UpgradeUser());
90          upgrade(new UpgradeContact());
91          upgrade(new UpgradeUserGroup());
92          upgrade(new UpgradeOrganization());
93          upgrade(new UpgradeGroup());
94          upgrade(new UpgradeRole());
95          upgrade(new UpgradeAddress());
96          upgrade(new UpgradeBlogs());
97          upgrade(new UpgradeBookmarks());
98          upgrade(new UpgradeCalendar());
99          upgrade(new UpgradeCountry());
100         upgrade(new UpgradeDocumentLibrary());
101         upgrade(new UpgradeEmailAddress());
102         upgrade(new UpgradeImageGallery());
103         upgrade(new UpgradeJournal());
104         upgrade(new UpgradeListType());
105         upgrade(new UpgradeMessageBoards());
106         upgrade(new UpgradePermission());
107         upgrade(new UpgradePhone());
108         upgrade(new UpgradePolls());
109         upgrade(new UpgradePortlet());
110         upgrade(new UpgradeRegion());
111         upgrade(new UpgradeRelease());
112         upgrade(new UpgradeShopping());
113         upgrade(new UpgradeSubscription());
114         upgrade(new UpgradeUserIdMapper());
115         upgrade(new UpgradeWebsite());
116         upgrade(new UpgradeWiki());
117         upgrade(new UpgradePortletPreferences());
118         upgrade(new UpgradeRatings());
119         upgrade(new UpgradeCounter());
120         upgrade(new UpgradeResource());
121         upgrade(new UpgradeMappingTables());
122     }
123 
124     private static Log _log = LogFactory.getLog(UpgradeProcess_4_3_0.class);
125 
126 }