java.lang.Object
java.lang.Enum<FileAccess>
org.cryptomator.frontend.dokany.internal.constants.FileAccess
All Implemented Interfaces:
Serializable, Comparable<FileAccess>, Constable, EnumInteger

public enum FileAccess extends Enum<FileAccess> implements EnumInteger
Defines standard, specific, and generic rights. These rights are used in access control entries (ACEs) and are the primary means of specifying the requested or granted access to an object.
  • Enum Constant Details

    • READ_DATA

      public static final FileAccess READ_DATA
      Read access right to an object.

      nativeconst{FILE_READ_DATA,0x00000001,File & pipe}

      nativeconst{FILE_LIST_DIRECTORY,0x00000001,Directory}

    • WRITE_DATA

      public static final FileAccess WRITE_DATA
      Write access right to an object.

      nativeconst{FILE_WRITE_DATA,0x00000002,File & pipe}

      nativeconst{FILE_ADD_FILE,0x00000002,Directory}

    • APPEND_DATA

      public static final FileAccess APPEND_DATA
      For a file object, the right to append data to the file.

      nativeconst{FILE_APPEND_DATA,0x00000004,File}

      nativeconst{FILE_ADD_SUBDIRECTORY,0x00000004,Directory}

      nativeconst{FILE_CREATE_PIPE_INSTANCE,0x00000004,Named pipe}

    • READ_EXTENDED_ATTRIBUTES

      public static final FileAccess READ_EXTENDED_ATTRIBUTES
      The right to read extended file attributes.
    • WRITE_EXTENDED_ATTRIBUTES

      public static final FileAccess WRITE_EXTENDED_ATTRIBUTES
      The right to write extended file attributes.

      nativeconst{FILE_WRITE_EA,0x00000010,File & directory}

    • EXECUTE

      public static final FileAccess EXECUTE
      For a native code file, the right to execute the file. This access right given to scripts may cause the script to be executable, depending on the script interpreter.
    • DELETE_CHILD

      public static final FileAccess DELETE_CHILD
      For a directory, the right to delete a directory and all the files it contains, including read-only files.
    • READ_ATTRIBUTES

      public static final FileAccess READ_ATTRIBUTES
      The right to read file attributes.
    • WRITE_ATTRIBUTES

      public static final FileAccess WRITE_ATTRIBUTES
      The right to write file attributes.
    • DELETE

      public static final FileAccess DELETE
      The right to delete the object.
    • READ_PERMISSIONS

      public static final FileAccess READ_PERMISSIONS
      The right to read the information in the object's security descriptor, not including the information in the system access control list (SACL).

      nativeconst{READ_CONTROL,0x00020000}

    • CHANGE_PERMISSIONS

      public static final FileAccess CHANGE_PERMISSIONS
      The right to modify the discretionary access control list (DACL) in /// the object's security descriptor.

      nativeconst{WRITE_DAC,0x00040000}

    • SET_OWNERSHIP

      public static final FileAccess SET_OWNERSHIP
      The right to change the owner in the object's security descriptor.

      nativeconst{WRITE_OWNER,0x00080000}

    • SYNCHRONIZE

      public static final FileAccess SYNCHRONIZE
      The right to use the object for synchronization. This enables a thread to wait until the object is in the signaled state. Some object types do not support this access right.

      nativeconst{SYNCHRONIZE,0x00100000}

    • ACCESS_SYSTEM_SECURITY

      public static final FileAccess ACCESS_SYSTEM_SECURITY
      It is used to indicate access to a system access control list (SACL). This type of access requires the calling process to have the SE_SECURITY_NAME (Manage auditing and security log) privilege. If this flag is set in the access mask of an audit access ACE (successful or unsuccessful access), the SACL access will be audited.

      nativeconst{ACCESS_SYSTEM_SECURITY,0x01000000}

    • RESERVED

      @Deprecated public static final FileAccess RESERVED
      Deprecated.
      Obsolete, use ACCESS_SYSTEM_SECURITY instead.
    • MAXIMUM_ALLOWED

      public static final FileAccess MAXIMUM_ALLOWED
      All the access rights that are valid for the caller.

      nativeconst{MAXIMUM_ALLOWED,0x02000000}

    • GENERIC_ALL

      public static final FileAccess GENERIC_ALL
      All possible access rights.

      nativeconst{GENERIC_ALL,0x10000000}

    • GENERIC_EXECUTE

      public static final FileAccess GENERIC_EXECUTE
      Generic execute access.

      nativeconst{GENERIC_EXECUTE,0x20000000}

    • GENERIC_WRITE

      public static final FileAccess GENERIC_WRITE
      Generic write access.

      nativeconst{GENERIC_WRITE,0x40000000}

    • GENERIC_READ

      public static final FileAccess GENERIC_READ
      Generic read access.

      nativeconst{GENERIC_READ,0x80000000}

  • Method Details

    • values

      public static FileAccess[] 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 FileAccess 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
    • fromInt

      public static EnumIntegerSet<FileAccess> fromInt(int i)
    • getMask

      public int getMask()
      Specified by:
      getMask in interface EnumInteger