1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  /**
65   * <a href="UpgradeProcess_4_3_0.java.html"><b><i>View Source</i></b></a>
66   *
67   * @author     Alexander Chow
68   * @author     Brian Wing Shun Chan
69   * @deprecated
70   */
71  public class UpgradeProcess_4_3_0 extends UpgradeProcess {
72  
73      public int getThreshold() {
74          return ReleaseInfo.RELEASE_4_3_0_BUILD_NUMBER;
75      }
76  
77      protected void doUpgrade() throws Exception {
78          upgrade(UpgradeSchema.class);
79          upgrade(UpgradeClassName.class);
80          upgrade(UpgradeImage.class);
81          upgrade(UpgradeCompany.class);
82          upgrade(UpgradeUser.class);
83          upgrade(UpgradeContact.class);
84          upgrade(UpgradeUserGroup.class);
85          upgrade(UpgradeOrganization.class);
86          upgrade(UpgradeGroup.class);
87          upgrade(UpgradeRole.class);
88          upgrade(UpgradeAddress.class);
89          upgrade(UpgradeBlogs.class);
90          upgrade(UpgradeBookmarks.class);
91          upgrade(UpgradeCalendar.class);
92          upgrade(UpgradeCountry.class);
93          upgrade(UpgradeDocumentLibrary.class);
94          upgrade(UpgradeEmailAddress.class);
95          upgrade(UpgradeImageGallery.class);
96          upgrade(UpgradeJournal.class);
97          upgrade(UpgradeListType.class);
98          upgrade(UpgradeMessageBoards.class);
99          upgrade(UpgradePermission.class);
100         upgrade(UpgradePhone.class);
101         upgrade(UpgradePolls.class);
102         upgrade(UpgradePortlet.class);
103         upgrade(UpgradeRegion.class);
104         upgrade(UpgradeRelease.class);
105         upgrade(UpgradeShopping.class);
106         upgrade(UpgradeSubscription.class);
107         upgrade(UpgradeUserIdMapper.class);
108         upgrade(UpgradeWebsite.class);
109         upgrade(UpgradeWiki.class);
110         upgrade(UpgradePortletPreferences.class);
111         upgrade(UpgradeRatings.class);
112         upgrade(UpgradeCounter.class);
113         upgrade(UpgradeResource.class);
114         upgrade(UpgradeMappingTables.class);
115     }
116 
117 }