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.v6_0_12_to_6_1_0;
016    
017    import com.liferay.portal.kernel.upgrade.CamelCaseUpgradePortletPreferences;
018    import com.liferay.portal.upgrade.v6_1_0.UpgradeCommunityProperties;
019    
020    /**
021     * @author Julio Camarero
022     * @author Douglas Wong
023     */
024    public class UpgradePortletPreferences
025            extends CamelCaseUpgradePortletPreferences {
026    
027            @Override
028            protected void doUpgrade() throws Exception {
029                    updatePortletPreferences();
030                    upgrade(UpgradeCommunityProperties.class);
031            }
032    
033            @Override
034            protected String[] getPortletIds() {
035                    return _CAMEL_CASE_UPGRADE_PORTLET_IDS;
036            }
037    
038            private static final String[] _CAMEL_CASE_UPGRADE_PORTLET_IDS = {
039                    "8", "15", "19", "20", "33", "34", "36", "39_INSTANCE_%",
040                    "47_INSTANCE_%", "48_INSTANCE_%", "54_INSTANCE_%", "56_INSTANCE_%",
041                    "59_INSTANCE_%", "62_INSTANCE_%", "71_INSTANCE_%", "73_INSTANCE_%",
042                    "77", "82_INSTANCE_%", "85_INSTANCE_%", "100", "101_INSTANCE_%",
043                    "102_INSTANCE_%", "114", "115", "118_INSTANCE_%", "122_INSTANCE_%"
044            };
045    
046    }