Record Class FileSystemRule
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.FileSystemRule
- Record Components:
access- operation classroot- root path for this ruleallow- whether matching access is allowedredactPath- whether public status should show only a path summary
public record FileSystemRule(FileSystemAccess access, Path root, boolean allow, boolean redactPath)
extends Record
Filesystem access rule evaluated against normalized paths.
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemRule(FileSystemAccess access, Path root, boolean allow, boolean redactPath) Creates a validated filesystem rule. -
Method Summary
Modifier and TypeMethodDescriptionaccess()Returns the value of theaccessrecord component.booleanallow()Returns the value of theallowrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theredactPathrecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileSystemRule
Creates a validated filesystem rule.
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
access
-
root
-
allow
-
redactPath
public boolean redactPath()Returns the value of theredactPathrecord component.- Returns:
- the value of the
redactPathrecord component
-