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.util;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public class PortletCategoryKeys {
021    
022            public static final String[] ALL = {
023                    PortletCategoryKeys.CONTROL_PANEL_APPS,
024                    PortletCategoryKeys.CONTROL_PANEL_CONFIGURATION,
025                    PortletCategoryKeys.CONTROL_PANEL_SITES,
026                    PortletCategoryKeys.CONTROL_PANEL_SYSTEM,
027                    PortletCategoryKeys.CONTROL_PANEL_USERS
028            };
029    
030            /**
031             * @deprecated As of 7.0.0, replaced by {@link #CONTROL_PANEL_APPS}
032             */
033            @Deprecated
034            public static final String APPS = "apps";
035    
036            /**
037             * @deprecated As of 7.0.0, replaced by {@link #CONTROL_PANEL_CONFIGURATION}
038             */
039            @Deprecated
040            public static final String CONFIGURATION = "control_panel.configuration";
041    
042            /**
043             * @deprecated As of 6.2.0
044             */
045            @Deprecated
046            public static final String CONTENT = "content";
047    
048            public static final String CONTROL_PANEL_APPS = "control_panel.apps";
049    
050            public static final String CONTROL_PANEL_CONFIGURATION =
051                    "control_panel.configuration";
052    
053            public static final String CONTROL_PANEL_SITES = "control_panel.sites";
054    
055            public static final String CONTROL_PANEL_SYSTEM = "control_panel.system";
056    
057            public static final String CONTROL_PANEL_USERS = "control_panel.users";
058    
059            public static final String CURRENT_SITE = "current_site";
060    
061            /**
062             * @deprecated As of 6.2.0, replaced by {@link #APPS}
063             */
064            @Deprecated
065            public static final String MARKETPLACE = "marketplace";
066    
067            /**
068             * @deprecated As of 7.0.0, replaced by {@link #USER_MY_ACCOUNT}
069             */
070            @Deprecated
071            public static final String MY = "user";
072    
073            /**
074             * @deprecated As of 6.2.0, replaced by {@link #CONFIGURATION}, {@link
075             *             #SITES}, or {@link #USERS}.
076             */
077            @Deprecated
078            public static final String PORTAL = CONFIGURATION;
079    
080            public static final String PORTLET = "portlet";
081    
082            /**
083             * @deprecated As of 6.2.0, replaced by {@link #APPS}
084             */
085            @Deprecated
086            public static final String SERVER = APPS;
087    
088            public static final String SITE_ADMINISTRATION = "site_administration.";
089    
090            public static final String[] SITE_ADMINISTRATION_ALL = {
091                    PortletCategoryKeys.SITE_ADMINISTRATION_CONFIGURATION,
092                    PortletCategoryKeys.SITE_ADMINISTRATION_CONTENT,
093                    PortletCategoryKeys.SITE_ADMINISTRATION_PAGES,
094                    PortletCategoryKeys.SITE_ADMINISTRATION_PUBLISHING_TOOLS,
095                    PortletCategoryKeys.SITE_ADMINISTRATION_USERS
096            };
097    
098            public static final String SITE_ADMINISTRATION_CONFIGURATION =
099                    "site_administration.configuration";
100    
101            public static final String SITE_ADMINISTRATION_CONTENT =
102                    "site_administration.content";
103    
104            public static final String SITE_ADMINISTRATION_PAGES =
105                    "site_administration.pages";
106    
107            public static final String SITE_ADMINISTRATION_PUBLISHING_TOOLS =
108                    "site_administration.publishing_tools";
109    
110            public static final String SITE_ADMINISTRATION_USERS =
111                    "site_administration.users";
112    
113            /**
114             * @deprecated As of 7.0.0, replaced by {@link #CONTROL_PANEL_SITES}
115             */
116            @Deprecated
117            public static final String SITES = "sites";
118    
119            public static final String USER_MY_ACCOUNT = "user.my_account";
120    
121            /**
122             * @deprecated As of 7.0.0, replaced by {@link #CONTROL_PANEL_USERS}
123             */
124            @Deprecated
125            public static final String USERS = "users";
126    
127    }