Interface Constraint
- All Known Implementing Classes:
AbstractConstraint,AllowAllowNotConstraint,ApplicationTypeConstraint,AuditConstraint,HostEffectConstraint,NonAuditConstraint,SensitiveTargetConstraint,SensitiveVaultExpressionConstraint,ServerGroupEffectConstraint,TopRoleConstraint
public interface Constraint
A constraint that can help govern whether access is allowed.
- Author:
- Brian Stansberry (c) 2013 Red Hat Inc.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanreplaces(Constraint other) Gets whether this constraint is equivalent to and can thus replace another constraint in aManagementPermission.booleanviolates(Constraint other, Action.ActionEffect actionEffect) Gets whether this constraint violates another constraint
-
Method Details
-
violates
Gets whether this constraint violates another constraint- Parameters:
other- the other constraintactionEffect- the effect being evaluated- Returns:
trueif the combination of constraints is a violation
-
replaces
Gets whether this constraint is equivalent to and can thus replace another constraint in aManagementPermission.- Parameters:
other- the other constraint- Returns:
trueif replacement is valid
-