1   /**
2    * Copyright (c) 2000-2008 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.util.ReleaseInfo;
26  import com.liferay.portal.upgrade.v4_3_0.UpgradeAddress;
27  import com.liferay.portal.upgrade.v4_3_0.UpgradeBlogs;
28  import com.liferay.portal.upgrade.v4_3_0.UpgradeBookmarks;
29  import com.liferay.portal.upgrade.v4_3_0.UpgradeCalendar;
30  import com.liferay.portal.upgrade.v4_3_0.UpgradeClassName;
31  import com.liferay.portal.upgrade.v4_3_0.UpgradeCompany;
32  import com.liferay.portal.upgrade.v4_3_0.UpgradeContact;
33  import com.liferay.portal.upgrade.v4_3_0.UpgradeCounter;
34  import com.liferay.portal.upgrade.v4_3_0.UpgradeCountry;
35  import com.liferay.portal.upgrade.v4_3_0.UpgradeDocumentLibrary;
36  import com.liferay.portal.upgrade.v4_3_0.UpgradeEmailAddress;
37  import com.liferay.portal.upgrade.v4_3_0.UpgradeGroup;
38  import com.liferay.portal.upgrade.v4_3_0.UpgradeImage;
39  import com.liferay.portal.upgrade.v4_3_0.UpgradeImageGallery;
40  import com.liferay.portal.upgrade.v4_3_0.UpgradeJournal;
41  import com.liferay.portal.upgrade.v4_3_0.UpgradeListType;
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  
64  import org.apache.commons.logging.Log;
65  import org.apache.commons.logging.LogFactory;
66  
67  /**
68   * <a href="UpgradeProcess_4_3_0.java.html"><b><i>View Source</i></b></a>
69   *
70   * @author Alexander Chow
71   * @author Brian Wing Shun Chan
72   *
73   */
74  public class UpgradeProcess_4_3_0 extends UpgradeProcess {
75  
76      public int getThreshold() {
77          return ReleaseInfo.RELEASE_4_3_0_BUILD_NUMBER;
78      }
79  
80      public void upgrade() throws UpgradeException {
81          _log.info("Upgrading");
82  
83          upgrade(UpgradeSchema.class);
84          upgrade(UpgradeClassName.class);
85          upgrade(UpgradeImage.class);
86          upgrade(UpgradeCompany.class);
87          upgrade(UpgradeUser.class);
88          upgrade(UpgradeContact.class);
89          upgrade(UpgradeUserGroup.class);
90          upgrade(UpgradeOrganization.class);
91          upgrade(UpgradeGroup.class);
92          upgrade(UpgradeRole.class);
93          upgrade(UpgradeAddress.class);
94          upgrade(UpgradeBlogs.class);
95          upgrade(UpgradeBookmarks.class);
96          upgrade(UpgradeCalendar.class);
97          upgrade(UpgradeCountry.class);
98          upgrade(UpgradeDocumentLibrary.class);
99          upgrade(UpgradeEmailAddress.class);
100         upgrade(UpgradeImageGallery.class);
101         upgrade(UpgradeJournal.class);
102         upgrade(UpgradeListType.class);
103         upgrade(UpgradeMessageBoards.class);
104         upgrade(UpgradePermission.class);
105         upgrade(UpgradePhone.class);
106         upgrade(UpgradePolls.class);
107         upgrade(UpgradePortlet.class);
108         upgrade(UpgradeRegion.class);
109         upgrade(UpgradeRelease.class);
110         upgrade(UpgradeShopping.class);
111         upgrade(UpgradeSubscription.class);
112         upgrade(UpgradeUserIdMapper.class);
113         upgrade(UpgradeWebsite.class);
114         upgrade(UpgradeWiki.class);
115         upgrade(UpgradePortletPreferences.class);
116         upgrade(UpgradeRatings.class);
117         upgrade(UpgradeCounter.class);
118         upgrade(UpgradeResource.class);
119         upgrade(UpgradeMappingTables.class);
120     }
121 
122     private static Log _log = LogFactory.getLog(UpgradeProcess_4_3_0.class);
123 
124 }