Package org.elasticsearch.bootstrap
Class FilePermissionUtils
org.elasticsearch.bootstrap.FilePermissionUtils
public class FilePermissionUtils
extends
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
policy, configurationName, path, permissions, boolean recursiveAccessOnly)
Add access to path with direct and/or recursive access.static void
policy, path, permissions)
Add access to single file pathMethods inherited from class java.lang.
, , , , , , , , , ,
-
Method Details
-
addSingleFilePath
public static void addSingleFilePath( policy, path, permissions) throwsAdd access to single file path- Parameters:
policy
- current policy to add permissions topath
- the path itselfpermissions
- set of file permissions to grant to the path- Throws:
-
addDirectoryPath
public static void addDirectoryPath( policy, configurationName, path, permissions, boolean recursiveAccessOnly) throwsAdd access to path with direct and/or recursive access. This also creates the directory if it does not exist.- Parameters:
policy
- current policy to add permissions toconfigurationName
- the configuration name associated with the path (for error messages only)path
- the path itselfpermissions
- set of file permissions to grant to the pathrecursiveAccessOnly
- indicates if the permission should provide recursive access to files underneath- Throws:
-