Enum Class AclFetchMode

java.lang.Object
java.lang.Enum<AclFetchMode>
com.norconex.crawler.fs.fetch.acl.AclFetchMode
All Implemented Interfaces:
Serializable, Comparable<AclFetchMode>, Constable

public enum AclFetchMode extends Enum<AclFetchMode>
Which of a source's permissions a fetcher reads and writes on each document, as an Acl in the "crawler.acl" field.
  • Enum Constant Details

    • NONE

      public static final AclFetchMode NONE
      Permissions are not read, and no ACL is written.
    • BASIC

      public static final AclFetchMode BASIC
      Only the basic permissions are read: for POSIX-style sources, the owner, group and mode bits, without extended ACLs (no native call). The ACL is marked AclScope.BASIC and is complete, as it holds all that was asked for. Sources without such a distinction read the same as with EXTENDED.
    • EXTENDED

      public static final AclFetchMode EXTENDED
      Everything the source has is read. What cannot be read makes the ACL AclStatus.PARTIAL.
  • Method Details

    • values

      public static AclFetchMode[] 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 AclFetchMode 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
    • isEnabled

      public boolean isEnabled()
      Returns:
      true unless this is NONE
    • scope

      public AclScope scope()
      Returns:
      the scope an ACL read this way has