001    /**
002     * Copyright (c) 2000-2010 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.v5_2_7_to_6_0_0.UpgradeSchema;
020    import com.liferay.portal.upgrade.v6_0_0.UpgradeAsset;
021    import com.liferay.portal.upgrade.v6_0_0.UpgradeAssetPublisher;
022    import com.liferay.portal.upgrade.v6_0_0.UpgradeBlogs;
023    import com.liferay.portal.upgrade.v6_0_0.UpgradeDocumentLibrary;
024    import com.liferay.portal.upgrade.v6_0_0.UpgradeExpando;
025    import com.liferay.portal.upgrade.v6_0_0.UpgradeJournal;
026    import com.liferay.portal.upgrade.v6_0_0.UpgradePolls;
027    import com.liferay.portal.upgrade.v6_0_0.UpgradePortletId;
028    import com.liferay.portal.upgrade.v6_0_0.UpgradeResourceAction;
029    import com.liferay.portal.upgrade.v6_0_0.UpgradeShopping;
030    
031    /**
032     * @author Douglas Wong
033     */
034    public class UpgradeProcess_5_2_7_to_6_0_0 extends UpgradeProcess {
035    
036            public int getThreshold() {
037                    return ReleaseInfo.RELEASE_6_0_0_BUILD_NUMBER;
038            }
039    
040            protected void doUpgrade() throws Exception {
041                    upgrade(UpgradeSchema.class);
042                    upgrade(UpgradeAsset.class);
043                    upgrade(UpgradeAssetPublisher.class);
044                    upgrade(UpgradeBlogs.class);
045                    upgrade(UpgradeDocumentLibrary.class);
046                    upgrade(UpgradeExpando.class);
047                    upgrade(UpgradeJournal.class);
048                    upgrade(UpgradePolls.class);
049                    upgrade(UpgradePortletId.class);
050                    upgrade(UpgradeResourceAction.class);
051                    upgrade(UpgradeShopping.class);
052            }
053    
054    }