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.util.PortletKeys;
018    
019    /**
020     * @author Cristina González
021     */
022    public class UpgradePortletId
023            extends com.liferay.portal.upgrade.util.UpgradePortletId {
024    
025            @Override
026            protected String[][] getRenamePortletIdsArray() {
027                    return new String[][] {
028                            new String[] {"115", PortletKeys.BLOGS_AGGREGATOR},
029                            new String[] {"125", PortletKeys.USERS_ADMIN},
030                            new String[] {"127", PortletKeys.USER_GROUPS_ADMIN},
031                            new String[] {"128", PortletKeys.ROLES_ADMIN},
032                            new String[] {"129", PortletKeys.PASSWORD_POLICIES_ADMIN},
033                            new String[] {"134", PortletKeys.SITE_ADMIN},
034                            new String[] {"139", PortletKeys.EXPANDO},
035                            new String[] {"140", PortletKeys.MY_PAGES},
036                            new String[] {"146", PortletKeys.LAYOUT_PROTOTYPE},
037                            new String[] {"147", PortletKeys.ASSET_CATEGORIES_ADMIN},
038                            new String[] {"149", PortletKeys.LAYOUT_SET_PROTOTYPE},
039                            new String[] {"156", PortletKeys.GROUP_PAGES},
040                            new String[] {"161", PortletKeys.BLOGS_ADMIN},
041                            new String[] {"162", PortletKeys.MESSAGE_BOARDS_ADMIN},
042                            new String[] {"165", PortletKeys.SITE_SETTINGS},
043                            new String[] {"174", PortletKeys.SITE_MEMBERSHIPS_ADMIN},
044                            new String[] {"19", PortletKeys.MESSAGE_BOARDS},
045                            new String[] {"191", PortletKeys.SITE_TEAMS},
046                            new String[] {"192", PortletKeys.SITE_TEMPLATE_SETTINGS},
047                            new String[] {"199", PortletKeys.DOCUMENT_LIBRARY_ADMIN},
048                            new String[] {
049                                    "1_WAR_soannouncementsportlet", PortletKeys.ANNOUNCEMENTS
050                            },
051                            new String[] {"20", PortletKeys.DOCUMENT_LIBRARY},
052                            new String[] {"31", PortletKeys.MEDIA_GALLERY_DISPLAY},
053                            new String[] {"33", PortletKeys.BLOGS},
054                            new String[] {"83", PortletKeys.ALERTS},
055                            new String[] {"84", PortletKeys.ANNOUNCEMENTS},
056                            new String[] {"88", PortletKeys.LAYOUTS_ADMIN},
057                            new String[] {"99", PortletKeys.ASSET_TAGS_ADMIN}
058                    };
059            }
060    
061    }