Record Class PosixAcl.Direct
java.lang.Object
java.lang.Record
com.norconex.crawler.fs.fetch.acl.PosixAcl.Direct
- Record Components:
kind- user or groupprincipal- whoallow- allowed, or deniedrights- the rights concerned, asPosixAcl.READ,PosixAcl.WRITEandPosixAcl.EXECUTEbitseveryone- whether the principal stands for everybody (macOS'severyonegroup)
- Enclosing class:
PosixAcl
public static record PosixAcl.Direct(AclKind kind, PosixAcl.Principal principal, boolean allow, int rights, boolean everyone)
extends Record
An entry beside the mode bits that allows or denies rights directly,
the way macOS ACL entries do (they are checked before the mode bits).
-
Constructor Summary
ConstructorsConstructorDescriptionDirect(AclKind kind, PosixAcl.Principal principal, boolean allow, int rights, boolean everyone) Creates an instance of aDirectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallow()Returns the value of theallowrecord component.final booleanIndicates whether some other object is "equal to" this one.booleaneveryone()Returns the value of theeveryonerecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of theprincipalrecord component.intrights()Returns the value of therightsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Direct
public Direct(AclKind kind, PosixAcl.Principal principal, boolean allow, int rights, boolean everyone) Creates an instance of aDirectrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
allow
public boolean allow()Returns the value of theallowrecord component.- Returns:
- the value of the
allowrecord component
-
rights
public int rights()Returns the value of therightsrecord component.- Returns:
- the value of the
rightsrecord component
-
everyone
public boolean everyone()Returns the value of theeveryonerecord component.- Returns:
- the value of the
everyonerecord component
-