public final class Paths extends Object implements net.adamcin.oakpal.api.ProgressCheckFactory
Example config:
"config": { "rules": [{ "type": "deny", "pattern": "/etc/tags(/.*)?" },{ "type": "allow", "pattern": "/etc/tags/acme(/.*)?" }], "denyAllDeletes": true, "severity": "minor" }
config
options:
rules
Rule
elements. Rules are evaluated top-to-bottom. The type of the last rule to match is
the effective action taken for the element. Any affected path matching a DENY rule will be reported as a
violation.denyAllDeletes
severity
Modifier and Type | Class and Description |
---|---|
static interface |
Paths.JsonKeys |
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_DENY_ALL_DELETES
Deprecated.
|
static String |
CONFIG_RULES
Deprecated.
|
static String |
CONFIG_SEVERITY
Deprecated.
|
static net.adamcin.oakpal.api.Severity |
DEFAULT_SEVERITY |
Constructor and Description |
---|
Paths() |
Modifier and Type | Method and Description |
---|---|
static @NotNull Paths.JsonKeys |
keys() |
net.adamcin.oakpal.api.ProgressCheck |
newInstance(javax.json.JsonObject config) |
@Deprecated public static final String CONFIG_RULES
@Deprecated public static final String CONFIG_DENY_ALL_DELETES
@Deprecated public static final String CONFIG_SEVERITY
public static final net.adamcin.oakpal.api.Severity DEFAULT_SEVERITY
@NotNull public static @NotNull Paths.JsonKeys keys()
public net.adamcin.oakpal.api.ProgressCheck newInstance(javax.json.JsonObject config)
newInstance
in interface net.adamcin.oakpal.api.ProgressCheckFactory
Copyright © 2017–2020. All rights reserved.