Enum Class AclFetchMode
- All Implemented Interfaces:
Serializable,Comparable<AclFetchMode>,Constable
Which of a source's permissions a fetcher reads and writes on each
document, as an
Acl in the "crawler.acl" field.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanscope()static AclFetchModeReturns the enum constant of this class with the specified name.static AclFetchMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Permissions are not read, and no ACL is written. -
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 markedAclScope.BASICand is complete, as it holds all that was asked for. Sources without such a distinction read the same as withEXTENDED. -
EXTENDED
Everything the source has is read. What cannot be read makes the ACLAclStatus.PARTIAL.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isEnabled
public boolean isEnabled()- Returns:
trueunless this isNONE
-
scope
- Returns:
- the scope an ACL read this way has
-