Enum Class FilePermissionHelper.PosixFilePermission

java.lang.Object
java.lang.Enum<FilePermissionHelper.PosixFilePermission>
org.italiangrid.voms.util.FilePermissionHelper.PosixFilePermission
All Implemented Interfaces:
Serializable, Comparable<FilePermissionHelper.PosixFilePermission>, Constable
Enclosing class:
FilePermissionHelper

public static enum FilePermissionHelper.PosixFilePermission extends Enum<FilePermissionHelper.PosixFilePermission>
Enumeration representing POSIX file permissions.
  • Enum Constant Details

  • Field Details

    • chmodForm

      private String chmodForm
    • statForm

      private String statForm
  • Constructor Details

    • PosixFilePermission

      private PosixFilePermission(String chmodForm, String statForm)
      Constructor for PosixFilePermission enum.
      Parameters:
      chmodForm - the chmod-style representation of the permission
      statForm - the stat-style representation of the permission
  • Method Details

    • values

      public static FilePermissionHelper.PosixFilePermission[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FilePermissionHelper.PosixFilePermission valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • statForm

      public String statForm()
      Gets the stat-style (symbolic) representation of the permission.
      Returns:
      the stat-formatted permission string (e.g., "-rw-------").
    • chmodForm

      public String chmodForm()
      Gets the chmod-style (numeric) representation of the permission.
      Returns:
      the chmod-formatted permission string (e.g., "600").