public interface Constraint
Modifier and Type | Method and Description |
---|---|
boolean |
replaces(Constraint other)
Gets whether this constraint is equivalent to and can thus replace another constraint
in a
ManagementPermission . |
boolean |
violates(Constraint other,
Action.ActionEffect actionEffect)
Gets whether this constraint violates another constraint
|
boolean violates(Constraint other, Action.ActionEffect actionEffect)
other
- the other constraintactionEffect
- the effect being evaluatedtrue
if the combination of constraints is a violationboolean replaces(Constraint other)
ManagementPermission
.other
- the other constrainttrue
if replacement is validCopyright © 2023 JBoss by Red Hat. All rights reserved.