Class FilePermissionUtils

org.elasticsearch.bootstrap.FilePermissionUtils

public class FilePermissionUtils extends
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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 path

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Method Details

    • addSingleFilePath

      public static void addSingleFilePath( policy,  path,  permissions) throws
      Add access to single file path
      Parameters:
      policy - current policy to add permissions to
      path - the path itself
      permissions - set of file permissions to grant to the path
      Throws:
    • addDirectoryPath

      public static void addDirectoryPath( policy,  configurationName,  path,  permissions, boolean recursiveAccessOnly) throws
      Add 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 to
      configurationName - the configuration name associated with the path (for error messages only)
      path - the path itself
      permissions - set of file permissions to grant to the path
      recursiveAccessOnly - indicates if the permission should provide recursive access to files underneath
      Throws: