Base type for enforcer rules.
Type | Name and description |
---|---|
Property<EnforcerLevel> |
enforcerLevel |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
execute(EnforcerContext context) Executes this rule with the given context. |
|
Property<Boolean> |
getEnabled() Whether rule behavior is enabled or not. |
|
Property<EnforcerLevel> |
getEnforcerLevel() |
|
void |
setEnforcerLevel(String level) |
|
void |
validate(EnforcerContext context) Validates this rule with the given context. |
Executes this rule with the given context.
context
- the context for this rule.Validates this rule with the given context.
context
- the context for this rule.