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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
replaces(Constraint other)
Gets whether this constraint is equivalent to and can thus replace another constraint in aManagementPermission
.boolean
violates(Constraint other, Action.ActionEffect actionEffect)
Gets whether this constraint violates another constraint
-
-
-
Method Detail
-
violates
boolean violates(Constraint other, Action.ActionEffect actionEffect)
Gets whether this constraint violates another constraint- Parameters:
other
- the other constraintactionEffect
- the effect being evaluated- Returns:
true
if the combination of constraints is a violation
-
replaces
boolean replaces(Constraint other)
Gets whether this constraint is equivalent to and can thus replace another constraint in aManagementPermission
.- Parameters:
other
- the other constraint- Returns:
true
if replacement is valid
-
-