001    /**
002     * Copyright (c) 2000-2011 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.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_%", "56_INSTANCE_%", "54_INSTANCE_%", "59_INSTANCE_%",
041                    "62_INSTANCE_%", "71_INSTANCE_%", "73_INSTANCE_%", "77",
042                    "82_INSTANCE_%", "85_INSTANCE_%", "100", "101_INSTANCE_%",
043                    "102_INSTANCE_%", "114", "115", "118_INSTANCE_%", "122_INSTANCE_%"
044            };
045    
046    }