Class AllowAllowNotConstraint
- java.lang.Object
-
- org.jboss.as.controller.access.constraint.AbstractConstraint
-
- org.jboss.as.controller.access.constraint.AllowAllowNotConstraint
-
- All Implemented Interfaces:
Constraint
- Direct Known Subclasses:
ApplicationTypeConstraint
,AuditConstraint
,NonAuditConstraint
,SensitiveTargetConstraint
,SensitiveVaultExpressionConstraint
,TopRoleConstraint
public abstract class AllowAllowNotConstraint extends AbstractConstraint
A constraint meant for use in situations where the Action or Target "is" or "is not" something and the user "allows" or "allowsNot".- Author:
- Brian Stansberry (c) 2013 Red Hat Inc.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AllowAllowNotConstraint(boolean is)
protected
AllowAllowNotConstraint(boolean allows, boolean allowsNot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
violates(Constraint other, Action.ActionEffect actionEffect)
Gets whether this constraint violates another constraint-
Methods inherited from class org.jboss.as.controller.access.constraint.AbstractConstraint
replaces
-
-
-
-
Method Detail
-
violates
public boolean violates(Constraint other, Action.ActionEffect actionEffect)
Description copied from interface:Constraint
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
-
-