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.kernel.security.pacl;
016    
017    /**
018     * @author Raymond Aug??
019     */
020    public interface PACLConstants {
021    
022            public static final String FILE_PERMISSION_ACTION_DELETE = "delete";
023    
024            public static final String FILE_PERMISSION_ACTION_EXECUTE = "execute";
025    
026            public static final String FILE_PERMISSION_ACTION_READ = "read";
027    
028            public static final String FILE_PERMISSION_ACTION_WRITE = "write";
029    
030            public static final String MBEAN_PERMISSION_IS_INSTANCE_OF = "isInstanceOf";
031    
032            public static final String MBEAN_PERMISSION_REGISTER_MBEAN =
033                    "registerMBean";
034    
035            public static final String MBEAN_PERMISSION_UNREGISTER_MBEAN =
036                    "unregisterMBean";
037    
038            public static final String MBEAN_TRUST_PERMISSION_REGISTER = "register";
039    
040            public static final String NET_PERMISSION_GET_PROXY_SELECTOR =
041                    "getProxySelector";
042    
043            public static final String NET_PERMISSION_SPECIFY_STREAM_HANDLER =
044                    "specifyStreamHandler";
045    
046            public static final String PORTAL_HOOK_PERMISSION_CUSTOM_JSP_DIR =
047                    "customJspDir";
048    
049            public static final String PORTAL_HOOK_PERMISSION_INDEXER = "hasIndexer";
050    
051            public static final String
052                    PORTAL_HOOK_PERMISSION_LANGUAGE_PROPERTIES_LOCALE =
053                            "languagePropertiesLocale";
054    
055            public static final String PORTAL_HOOK_PERMISSION_PORTAL_PROPERTIES_KEY =
056                    "hasPortalPropertiesKey";
057    
058            public static final String PORTAL_HOOK_PERMISSION_SERVICE = "service";
059    
060            public static final String PORTAL_HOOK_PERMISSION_SERVLET_FILTERS =
061                    "servletFilters";
062    
063            public static final String PORTAL_HOOK_PERMISSION_STRUTS_ACTION_PATH =
064                    "strutsActionPath";
065    
066            public static final String PORTAL_MESSAGE_BUS_PERMISSION_LISTEN = "listen";
067    
068            public static final String PORTAL_MESSAGE_BUS_PERMISSION_SEND = "send";
069    
070            public static final String PORTAL_RUNTIME_PERMISSION_EXPANDO_BRIDGE =
071                    "expandoBridge";
072    
073            public static final String PORTAL_RUNTIME_PERMISSION_GET_BEAN_PROPERTY =
074                    "getBeanProperty";
075    
076            public static final String PORTAL_RUNTIME_PERMISSION_GET_CLASSLOADER =
077                    "getClassLoader";
078    
079            public static final String PORTAL_RUNTIME_PERMISSION_PORTLET_BAG_POOL =
080                    "portletBagPool";
081    
082            public static final String
083                    PORTAL_RUNTIME_PERMISSION_PORTLET_BAG_POOL_ALL_PORTLETS =
084                            "<<ALL PORTLETS>>";
085    
086            public static final String PORTAL_RUNTIME_PERMISSION_SEARCH_ENGINE =
087                    "searchEngine";
088    
089            public static final String PORTAL_RUNTIME_PERMISSION_SET_BEAN_PROPERTY =
090                    "setBeanProperty";
091    
092            public static final String
093                    PORTAL_RUNTIME_PERMISSION_THREAD_POOL_ALL_EXECUTORS =
094                            "<<ALL EXECUTORS>>";
095    
096            public static final String PORTAL_RUNTIME_PERMISSION_THREAD_POOL_EXECUTOR =
097                    "threadPoolExecutor";
098    
099            public static final String PORTAL_SERVICE_PERMISSION_SERVICE = "service";
100    
101            public static final String RUNTIME_PERMISSION_ACCESS_CLASS_IN_PACKAGE =
102                    "accessClassInPackage";
103    
104            public static final String RUNTIME_PERMISSION_ACCESS_DECLARED_MEMBERS =
105                    "accessDeclaredMembers";
106    
107            public static final String RUNTIME_PERMISSION_CREATE_CLASS_LOADER =
108                    "createClassLoader";
109    
110            public static final String RUNTIME_PERMISSION_CREATE_SECURITY_MANAGER =
111                    "createSecurityManager";
112    
113            public static final String RUNTIME_PERMISSION_GET_CLASSLOADER =
114                    "getClassLoader";
115    
116            public static final String RUNTIME_PERMISSION_GET_ENV = "getenv";
117    
118            public static final String RUNTIME_PERMISSION_GET_PROTECTION_DOMAIN =
119                    "getProtectionDomain";
120    
121            public static final String RUNTIME_PERMISSION_LOAD_LIBRARY = "loadLibrary";
122    
123            public static final String RUNTIME_PERMISSION_MODIFY_THREAD =
124                    "modifyThread";
125    
126            public static final String RUNTIME_PERMISSION_READ_FILE_DESCRIPTOR =
127                    "readFileDescriptor";
128    
129            public static final String RUNTIME_PERMISSION_SET_CONTEXT_CLASS_LOADER =
130                    "setContextClassLoader";
131    
132            public static final String RUNTIME_PERMISSION_SET_SECURITY_MANAGER =
133                    "setSecurityManager";
134    
135            public static final String RUNTIME_PERMISSION_SUPPRESS_ACCESS_CHECKS =
136                    "suppressAccessChecks";
137    
138            public static final String RUNTIME_PERMISSION_WRITE_FILE_DESCRIPTOR =
139                    "writeFileDescriptor";
140    
141            public static final String SECURITY_PERMISSION_GET_POLICY = "getPolicy";
142    
143            public static final String SECURITY_PERMISSION_SET_POLICY = "setPolicy";
144    
145            public static final String SOCKET_PERMISSION_ACCEPT = "accept";
146    
147            public static final String SOCKET_PERMISSION_CONNECT = "connect";
148    
149            public static final String SOCKET_PERMISSION_LISTEN = "listen";
150    
151            public static final String SOCKET_PERMISSION_RESOLVE = "resolve";
152    
153    }