001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.upgrade;
016    
017    import com.liferay.portal.kernel.upgrade.UpgradeProcess;
018    import com.liferay.portal.kernel.util.ReleaseInfo;
019    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeAsset;
020    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeDocumentLibrary;
021    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeMessageBoards;
022    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradePermission;
023    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradePortletPreferences;
024    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeSchema;
025    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeUserName;
026    import com.liferay.portal.upgrade.v6_1_0.UpgradeAdminPortlets;
027    import com.liferay.portal.upgrade.v6_1_0.UpgradeAssetPublisher;
028    import com.liferay.portal.upgrade.v6_1_0.UpgradeCamelCasePortletPreferences;
029    import com.liferay.portal.upgrade.v6_1_0.UpgradeCountry;
030    import com.liferay.portal.upgrade.v6_1_0.UpgradeGroup;
031    import com.liferay.portal.upgrade.v6_1_0.UpgradeIFrame;
032    import com.liferay.portal.upgrade.v6_1_0.UpgradeImageGallery;
033    import com.liferay.portal.upgrade.v6_1_0.UpgradeJournal;
034    import com.liferay.portal.upgrade.v6_1_0.UpgradeLayout;
035    import com.liferay.portal.upgrade.v6_1_0.UpgradeNavigation;
036    import com.liferay.portal.upgrade.v6_1_0.UpgradeSubscription;
037    import com.liferay.portal.upgrade.v6_1_0.UpgradeWorkflow;
038    
039    /**
040     * @author Matthew Kong
041     */
042    public class UpgradeProcess_6_0_12_to_6_1_0 extends UpgradeProcess {
043    
044            @Override
045            public int getThreshold() {
046                    return ReleaseInfo.RELEASE_6_1_0_BUILD_NUMBER;
047            }
048    
049            @Override
050            protected void doUpgrade() throws Exception {
051                    upgrade(UpgradeSchema.class);
052                    upgrade(UpgradeUserName.class);
053                    upgrade(UpgradeAdminPortlets.class);
054                    upgrade(UpgradeCamelCasePortletPreferences.class);
055                    upgrade(UpgradeCountry.class);
056                    upgrade(UpgradeDocumentLibrary.class);
057                    upgrade(UpgradeGroup.class);
058                    upgrade(UpgradeIFrame.class);
059                    upgrade(UpgradeImageGallery.class);
060                    upgrade(UpgradeJournal.class);
061                    upgrade(UpgradeLayout.class);
062                    upgrade(UpgradeMessageBoards.class);
063                    upgrade(UpgradeNavigation.class);
064                    upgrade(UpgradePermission.class);
065                    upgrade(UpgradePortletPreferences.class);
066                    upgrade(UpgradeSubscription.class);
067                    upgrade(UpgradeWorkflow.class);
068                    upgrade(UpgradeAsset.class);
069                    upgrade(UpgradeAssetPublisher.class);
070            }
071    
072    }