Liferay 6.2.0-ce-m1

com.liferay.portal.security.pacl.checker
Class FileChecker

java.lang.Object
  extended by com.liferay.portal.security.pacl.checker.BaseChecker
      extended by com.liferay.portal.security.pacl.checker.FileChecker
All Implemented Interfaces:
PACLConstants, Checker

public class FileChecker
extends BaseChecker


Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.security.pacl.PACLConstants
FILE_PERMISSION_ACTION_DELETE, FILE_PERMISSION_ACTION_EXECUTE, FILE_PERMISSION_ACTION_READ, FILE_PERMISSION_ACTION_WRITE, MBEAN_PERMISSION_IS_INSTANCE_OF, MBEAN_PERMISSION_REGISTER_MBEAN, MBEAN_TRUST_PERMISSION_REGISTER, NET_PERMISSION_GET_PROXY_SELECTOR, NET_PERMISSION_SPECIFY_STREAM_HANDLER, PORTAL_HOOK_PERMISSION_CUSTOM_JSP_DIR, PORTAL_HOOK_PERMISSION_INDEXER, PORTAL_HOOK_PERMISSION_LANGUAGE_PROPERTIES_LOCALE, PORTAL_HOOK_PERMISSION_PORTAL_PROPERTIES_KEY, PORTAL_HOOK_PERMISSION_SERVICE, PORTAL_HOOK_PERMISSION_SERVLET_FILTERS, PORTAL_HOOK_PERMISSION_STRUTS_ACTION_PATH, PORTAL_MESSAGE_BUS_PERMISSION_LISTEN, PORTAL_MESSAGE_BUS_PERMISSION_SEND, PORTAL_RUNTIME_PERMISSION_EXPANDO_BRIDGE, PORTAL_RUNTIME_PERMISSION_GET_BEAN_PROPERTY, PORTAL_RUNTIME_PERMISSION_SEARCH_ENGINE, PORTAL_RUNTIME_PERMISSION_SET_BEAN_PROPERTY, PORTAL_RUNTIME_PERMISSION_THREAD_POOL_EXECUTOR, PORTAL_SERVICE_PERMISSION_DYNAMIC_QUERY, PORTAL_SERVICE_PERMISSION_SERVICE, RUNTIME_PERMISSION_ACCESS_CLASS_IN_PACKAGE, RUNTIME_PERMISSION_ACCESS_DECLARED_MEMBERS, RUNTIME_PERMISSION_CREATE_CLASS_LOADER, RUNTIME_PERMISSION_GET_CLASSLOADER, RUNTIME_PERMISSION_GET_ENV, RUNTIME_PERMISSION_GET_PROTECTION_DOMAIN, RUNTIME_PERMISSION_READ_FILE_DESCRIPTOR, RUNTIME_PERMISSION_SET_CONTEXT_CLASS_LOADER, RUNTIME_PERMISSION_SET_SECURITY_MANAGER, RUNTIME_PERMISSION_WRITE_FILE_DESCRIPTOR, SECURITY_PERMISSION_GET_POLICY, SECURITY_PERMISSION_SET_POLICY, SOCKET_PERMISSION_ACCEPT, SOCKET_PERMISSION_CONNECT, SOCKET_PERMISSION_LISTEN
 
Constructor Summary
FileChecker()
           
 
Method Summary
protected  void addCanonicalPath(List<String> paths, String path)
           
protected  void addCanonicalPaths(List<String> paths, File directory)
           
protected  void addDefaultReadPaths(List<String> paths, String selector)
           
protected  void addPermission(List<Permission> permissions, String path, String actions)
           
 void afterPropertiesSet()
           
 void checkPermission(Permission permission)
           
protected  List<Permission> getPermissions(String key, String actions)
           
protected  boolean hasDelete(Permission permission)
           
protected  boolean hasExecute(Permission permission)
           
protected  boolean hasRead(Permission permission)
           
protected  boolean hasWrite(Permission permission)
           
protected  void initPermissions()
           
 
Methods inherited from class com.liferay.portal.security.pacl.checker.BaseChecker
getClassLoader, getCommonClassLoader, getPACLPolicy, getPortalClassLoader, getProperties, getProperty, getPropertyArray, getPropertyBoolean, getPropertySet, getServletContextName, getSystemClassLoader, isJSPCompiler, setPACLPolicy, throwSecurityException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChecker

public FileChecker()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

checkPermission

public void checkPermission(Permission permission)

addCanonicalPath

protected void addCanonicalPath(List<String> paths,
                                String path)

addCanonicalPaths

protected void addCanonicalPaths(List<String> paths,
                                 File directory)
                          throws IOException
Throws:
IOException

addDefaultReadPaths

protected void addDefaultReadPaths(List<String> paths,
                                   String selector)

addPermission

protected void addPermission(List<Permission> permissions,
                             String path,
                             String actions)

getPermissions

protected List<Permission> getPermissions(String key,
                                          String actions)

hasDelete

protected boolean hasDelete(Permission permission)

hasExecute

protected boolean hasExecute(Permission permission)

hasRead

protected boolean hasRead(Permission permission)

hasWrite

protected boolean hasWrite(Permission permission)

initPermissions

protected void initPermissions()

Liferay 6.2.0-ce-m1