001    /**
002     * Copyright (c) 2000-2013 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.v6_1_0.UpgradeAdminPortlets;
020    import com.liferay.portal.upgrade.v6_1_0.UpgradeAsset;
021    import com.liferay.portal.upgrade.v6_1_0.UpgradeAssetPublisher;
022    import com.liferay.portal.upgrade.v6_1_0.UpgradeBlogs;
023    import com.liferay.portal.upgrade.v6_1_0.UpgradeCamelCasePortletPreferences;
024    import com.liferay.portal.upgrade.v6_1_0.UpgradeCountry;
025    import com.liferay.portal.upgrade.v6_1_0.UpgradeDocumentLibrary;
026    import com.liferay.portal.upgrade.v6_1_0.UpgradeExpando;
027    import com.liferay.portal.upgrade.v6_1_0.UpgradeGroup;
028    import com.liferay.portal.upgrade.v6_1_0.UpgradeImageGallery;
029    import com.liferay.portal.upgrade.v6_1_0.UpgradeJournal;
030    import com.liferay.portal.upgrade.v6_1_0.UpgradeLayout;
031    import com.liferay.portal.upgrade.v6_1_0.UpgradeLock;
032    import com.liferay.portal.upgrade.v6_1_0.UpgradeMessageBoards;
033    import com.liferay.portal.upgrade.v6_1_0.UpgradeNavigation;
034    import com.liferay.portal.upgrade.v6_1_0.UpgradePermission;
035    import com.liferay.portal.upgrade.v6_1_0.UpgradePortletPreferences;
036    import com.liferay.portal.upgrade.v6_1_0.UpgradeResourcePermission;
037    import com.liferay.portal.upgrade.v6_1_0.UpgradeSchema;
038    import com.liferay.portal.upgrade.v6_1_0.UpgradeScopes;
039    import com.liferay.portal.upgrade.v6_1_0.UpgradeSocial;
040    import com.liferay.portal.upgrade.v6_1_0.UpgradeSubscription;
041    import com.liferay.portal.upgrade.v6_1_0.UpgradeUserName;
042    import com.liferay.portal.upgrade.v6_1_0.UpgradeVirtualHost;
043    import com.liferay.portal.upgrade.v6_1_0.UpgradeWorkflow;
044    
045    /**
046     * @author Jorge Ferrer
047     * @author Juan Fern??ndez
048     * @author Miguel Pastor
049     */
050    public class UpgradeProcess_6_1_0 extends UpgradeProcess {
051    
052            @Override
053            public int getThreshold() {
054                    return ReleaseInfo.RELEASE_6_1_0_BUILD_NUMBER;
055            }
056    
057            @Override
058            protected void doUpgrade() throws Exception {
059                    upgrade(UpgradeSchema.class);
060                    upgrade(UpgradeUserName.class);
061                    upgrade(UpgradeAdminPortlets.class);
062                    upgrade(UpgradeBlogs.class);
063                    upgrade(UpgradeCamelCasePortletPreferences.class);
064                    upgrade(UpgradeCountry.class);
065                    upgrade(UpgradeDocumentLibrary.class);
066                    upgrade(UpgradeExpando.class);
067                    upgrade(UpgradeGroup.class);
068                    upgrade(UpgradeImageGallery.class);
069                    upgrade(UpgradeJournal.class);
070                    upgrade(UpgradeLayout.class);
071                    upgrade(UpgradeLock.class);
072                    upgrade(UpgradeMessageBoards.class);
073                    upgrade(UpgradeNavigation.class);
074                    upgrade(UpgradePermission.class);
075                    upgrade(UpgradePortletPreferences.class);
076                    upgrade(UpgradeResourcePermission.class);
077                    upgrade(UpgradeScopes.class);
078                    upgrade(UpgradeSocial.class);
079                    upgrade(UpgradeSubscription.class);
080                    upgrade(UpgradeVirtualHost.class);
081                    upgrade(UpgradeWorkflow.class);
082                    upgrade(UpgradeAsset.class);
083                    upgrade(UpgradeAssetPublisher.class);
084            }
085    
086    }