001    /**
002     * Copyright (c) 2000-present 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.v7_0_0;
016    
017    import com.liferay.portal.kernel.util.PortletKeys;
018    
019    /**
020     * @author Cristina Gonz??lez
021     */
022    @SuppressWarnings("deprecation")
023    public class UpgradePortletId
024            extends com.liferay.portal.upgrade.util.UpgradePortletId {
025    
026            @Override
027            protected String[][] getRenamePortletIdsArray() {
028                    return new String[][] {
029                            new String[] {"115", PortletKeys.BLOGS_AGGREGATOR},
030                            new String[] {"125", PortletKeys.USERS_ADMIN},
031                            new String[] {"127", PortletKeys.USER_GROUPS_ADMIN},
032                            new String[] {"128", PortletKeys.ROLES_ADMIN},
033                            new String[] {"129", PortletKeys.PASSWORD_POLICIES_ADMIN},
034                            new String[] {"134", PortletKeys.SITE_ADMIN},
035                            new String[] {"139", PortletKeys.EXPANDO},
036                            new String[] {"140", PortletKeys.MY_PAGES},
037                            new String[] {"146", _LAYOUT_PROTOTYPE},
038                            new String[] {"147", _ASSET_CATEGORIES_ADMIN},
039                            new String[] {"149", _LAYOUT_SET_PROTOTYPE},
040                            new String[] {"156", PortletKeys.GROUP_PAGES},
041                            new String[] {"161", PortletKeys.BLOGS_ADMIN},
042                            new String[] {"162", PortletKeys.MESSAGE_BOARDS_ADMIN},
043                            new String[] {"165", _SITE_SETTINGS},
044                            new String[] {"174", _SITE_MEMBERSHIPS_ADMIN},
045                            new String[] {"19", PortletKeys.MESSAGE_BOARDS},
046                            new String[] {"191", _SITE_TEAMS},
047                            new String[] {"192", _SITE_TEMPLATE_SETTINGS},
048                            new String[] {"199", PortletKeys.DOCUMENT_LIBRARY_ADMIN},
049                            new String[] {"20", PortletKeys.DOCUMENT_LIBRARY},
050                            new String[] {"31", PortletKeys.MEDIA_GALLERY_DISPLAY},
051                            new String[] {"33", PortletKeys.BLOGS},
052                            new String[] {"83", PortletKeys.ALERTS},
053                            new String[] {"88", _LAYOUTS_ADMIN},
054                            new String[] {"99", _ASSET_TAGS_ADMIN}
055                    };
056            }
057    
058            private static final String _ASSET_CATEGORIES_ADMIN =
059                    "com_liferay_asset_categories_admin_web_portlet_" +
060                            "AssetCategoriesAdminPortlet";
061    
062            private static final String _ASSET_TAGS_ADMIN =
063                    "com_liferay_asset_tags_admin_web_portlet_AssetTagsAdminPortlet";
064    
065            private static final String _LAYOUT_PROTOTYPE =
066                    "com_liferay_layout_prototype_web_portlet_LayoutPrototypePortlet";
067    
068            private static final String _LAYOUT_SET_PROTOTYPE =
069                    "com_liferay_layout_set_prototype_web_portlet_" +
070                            "LayoutSetPrototypePortlet";
071    
072            private static final String _LAYOUTS_ADMIN =
073                    "com_liferay_layout_admin_web_portlet_LayoutAdminPortlet";
074    
075            private static final String _SITE_MEMBERSHIPS_ADMIN =
076                    "com_liferay_site_memberships_web_portlet_SiteMembershipsPortlet";
077    
078            private static final String _SITE_SETTINGS =
079                    "com_liferay_site_admin_web_portlet_SiteSettingsPortlet";
080    
081            private static final String _SITE_TEAMS =
082                    "com_liferay_site_teams_web_portlet_SiteTeamsPortlet";
083    
084            private static final String _SITE_TEMPLATE_SETTINGS =
085                    "com_liferay_layout_set_prototype_web_portlet_" +
086                            "SiteTemplateSettingsPortlet";
087    
088    }