1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.upgrade;
21  
22  import com.liferay.portal.kernel.log.Log;
23  import com.liferay.portal.kernel.log.LogFactoryUtil;
24  import com.liferay.portal.kernel.util.ReleaseInfo;
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.UpgradeMappingTables;
42  import com.liferay.portal.upgrade.v4_3_0.UpgradeMessageBoards;
43  import com.liferay.portal.upgrade.v4_3_0.UpgradeOrganization;
44  import com.liferay.portal.upgrade.v4_3_0.UpgradePermission;
45  import com.liferay.portal.upgrade.v4_3_0.UpgradePhone;
46  import com.liferay.portal.upgrade.v4_3_0.UpgradePolls;
47  import com.liferay.portal.upgrade.v4_3_0.UpgradePortlet;
48  import com.liferay.portal.upgrade.v4_3_0.UpgradePortletPreferences;
49  import com.liferay.portal.upgrade.v4_3_0.UpgradeRatings;
50  import com.liferay.portal.upgrade.v4_3_0.UpgradeRegion;
51  import com.liferay.portal.upgrade.v4_3_0.UpgradeRelease;
52  import com.liferay.portal.upgrade.v4_3_0.UpgradeResource;
53  import com.liferay.portal.upgrade.v4_3_0.UpgradeRole;
54  import com.liferay.portal.upgrade.v4_3_0.UpgradeSchema;
55  import com.liferay.portal.upgrade.v4_3_0.UpgradeShopping;
56  import com.liferay.portal.upgrade.v4_3_0.UpgradeSubscription;
57  import com.liferay.portal.upgrade.v4_3_0.UpgradeUser;
58  import com.liferay.portal.upgrade.v4_3_0.UpgradeUserGroup;
59  import com.liferay.portal.upgrade.v4_3_0.UpgradeUserIdMapper;
60  import com.liferay.portal.upgrade.v4_3_0.UpgradeWebsite;
61  import com.liferay.portal.upgrade.v4_3_0.UpgradeWiki;
62  
63  /**
64   * <a href="UpgradeProcess_4_3_0.java.html"><b><i>View Source</i></b></a>
65   *
66   * @author Alexander Chow
67   * @author Brian Wing Shun Chan
68   *
69   * @deprecated
70   *
71   */
72  public class UpgradeProcess_4_3_0 extends UpgradeProcess {
73  
74      public int getThreshold() {
75          return ReleaseInfo.RELEASE_4_3_0_BUILD_NUMBER;
76      }
77  
78      public void upgrade() throws UpgradeException {
79          _log.info("Upgrading");
80  
81          upgrade(UpgradeSchema.class);
82          upgrade(UpgradeClassName.class);
83          upgrade(UpgradeImage.class);
84          upgrade(UpgradeCompany.class);
85          upgrade(UpgradeUser.class);
86          upgrade(UpgradeContact.class);
87          upgrade(UpgradeUserGroup.class);
88          upgrade(UpgradeOrganization.class);
89          upgrade(UpgradeGroup.class);
90          upgrade(UpgradeRole.class);
91          upgrade(UpgradeAddress.class);
92          upgrade(UpgradeBlogs.class);
93          upgrade(UpgradeBookmarks.class);
94          upgrade(UpgradeCalendar.class);
95          upgrade(UpgradeCountry.class);
96          upgrade(UpgradeDocumentLibrary.class);
97          upgrade(UpgradeEmailAddress.class);
98          upgrade(UpgradeImageGallery.class);
99          upgrade(UpgradeJournal.class);
100         upgrade(UpgradeListType.class);
101         upgrade(UpgradeMessageBoards.class);
102         upgrade(UpgradePermission.class);
103         upgrade(UpgradePhone.class);
104         upgrade(UpgradePolls.class);
105         upgrade(UpgradePortlet.class);
106         upgrade(UpgradeRegion.class);
107         upgrade(UpgradeRelease.class);
108         upgrade(UpgradeShopping.class);
109         upgrade(UpgradeSubscription.class);
110         upgrade(UpgradeUserIdMapper.class);
111         upgrade(UpgradeWebsite.class);
112         upgrade(UpgradeWiki.class);
113         upgrade(UpgradePortletPreferences.class);
114         upgrade(UpgradeRatings.class);
115         upgrade(UpgradeCounter.class);
116         upgrade(UpgradeResource.class);
117         upgrade(UpgradeMappingTables.class);
118     }
119 
120     private static Log _log = LogFactoryUtil.getLog(UpgradeProcess_4_3_0.class);
121 
122 }