001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }