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.v6_0_0.UpgradeAsset;
020    import com.liferay.portal.upgrade.v6_0_0.UpgradeAssetPublisher;
021    import com.liferay.portal.upgrade.v6_0_0.UpgradeBlogs;
022    import com.liferay.portal.upgrade.v6_0_0.UpgradeDocumentLibrary;
023    import com.liferay.portal.upgrade.v6_0_0.UpgradeExpando;
024    import com.liferay.portal.upgrade.v6_0_0.UpgradeGroup;
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.UpgradeSchema;
030    import com.liferay.portal.upgrade.v6_0_0.UpgradeShopping;
031    import com.liferay.portal.upgrade.v6_0_0.UpgradeSocial;
032    import com.liferay.portal.upgrade.v6_0_0.UpgradeWiki;
033    
034    /**
035     * @author Jorge Ferrer
036     */
037    public class UpgradeProcess_6_0_0 extends UpgradeProcess {
038    
039            public int getThreshold() {
040                    return ReleaseInfo.RELEASE_6_0_0_BUILD_NUMBER;
041            }
042    
043            protected void doUpgrade() throws Exception {
044                    upgrade(UpgradeSchema.class);
045                    upgrade(UpgradeAsset.class);
046                    upgrade(UpgradeAssetPublisher.class);
047                    upgrade(UpgradeBlogs.class);
048                    upgrade(UpgradeDocumentLibrary.class);
049                    upgrade(UpgradeExpando.class);
050                    upgrade(UpgradeGroup.class);
051                    upgrade(UpgradeJournal.class);
052                    upgrade(UpgradePolls.class);
053                    upgrade(UpgradePortletId.class);
054                    upgrade(UpgradeResourceAction.class);
055                    upgrade(UpgradeShopping.class);
056                    upgrade(UpgradeSocial.class);
057                    upgrade(UpgradeWiki.class);
058            }
059    
060    }