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_2_0.UpgradeAssetPublisher;
020    import com.liferay.portal.upgrade.v6_2_0.UpgradeBlogs;
021    import com.liferay.portal.upgrade.v6_2_0.UpgradeBlogsAggregator;
022    import com.liferay.portal.upgrade.v6_2_0.UpgradeCompany;
023    import com.liferay.portal.upgrade.v6_2_0.UpgradeCustomizablePortlets;
024    import com.liferay.portal.upgrade.v6_2_0.UpgradeDocumentLibrary;
025    import com.liferay.portal.upgrade.v6_2_0.UpgradeDynamicDataListDisplay;
026    import com.liferay.portal.upgrade.v6_2_0.UpgradeDynamicDataMapping;
027    import com.liferay.portal.upgrade.v6_2_0.UpgradeGroup;
028    import com.liferay.portal.upgrade.v6_2_0.UpgradeImageGallery;
029    import com.liferay.portal.upgrade.v6_2_0.UpgradeJournal;
030    import com.liferay.portal.upgrade.v6_2_0.UpgradeMessageBoards;
031    import com.liferay.portal.upgrade.v6_2_0.UpgradeMessageBoardsAttachments;
032    import com.liferay.portal.upgrade.v6_2_0.UpgradePortletPreferences;
033    import com.liferay.portal.upgrade.v6_2_0.UpgradeSchema;
034    import com.liferay.portal.upgrade.v6_2_0.UpgradeSocial;
035    import com.liferay.portal.upgrade.v6_2_0.UpgradeUser;
036    import com.liferay.portal.upgrade.v6_2_0.UpgradeWikiAttachments;
037    
038    /**
039     * @author Raymond Augé
040     * @author Juan Fernández
041     */
042    public class UpgradeProcess_6_2_0 extends UpgradeProcess {
043    
044            @Override
045            public int getThreshold() {
046                    return ReleaseInfo.RELEASE_6_2_0_BUILD_NUMBER;
047            }
048    
049            @Override
050            protected void doUpgrade() throws Exception {
051                    upgrade(UpgradeSchema.class);
052                    upgrade(UpgradeAssetPublisher.class);
053                    upgrade(UpgradeBlogs.class);
054                    upgrade(UpgradeBlogsAggregator.class);
055                    upgrade(UpgradeCompany.class);
056                    upgrade(UpgradeCustomizablePortlets.class);
057                    upgrade(UpgradeDocumentLibrary.class);
058                    upgrade(UpgradeDynamicDataListDisplay.class);
059                    upgrade(UpgradeDynamicDataMapping.class);
060                    upgrade(UpgradeGroup.class);
061                    upgrade(UpgradeImageGallery.class);
062                    upgrade(UpgradeJournal.class);
063                    upgrade(UpgradeMessageBoards.class);
064                    upgrade(UpgradeMessageBoardsAttachments.class);
065                    upgrade(UpgradePortletPreferences.class);
066                    upgrade(UpgradeSocial.class);
067                    upgrade(UpgradeUser.class);
068                    upgrade(UpgradeWikiAttachments.class);
069            }
070    
071    }