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
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
ConstructorsModifierConstructorDescriptionprotectedAllowAllowNotConstraint(boolean is) protectedAllowAllowNotConstraint(boolean allows, boolean allowsNot) -
Method Summary
Modifier and TypeMethodDescriptionbooleanviolates(Constraint other, Action.ActionEffect actionEffect) Gets whether this constraint violates another constraintMethods inherited from class org.jboss.as.controller.access.constraint.AbstractConstraint
replaces
-
Constructor Details
-
AllowAllowNotConstraint
protected AllowAllowNotConstraint(boolean is) -
AllowAllowNotConstraint
protected AllowAllowNotConstraint(boolean allows, boolean allowsNot)
-
-
Method Details
-
violates
Description copied from interface:ConstraintGets whether this constraint violates another constraint- Parameters:
other- the other constraintactionEffect- the effect being evaluated- Returns:
trueif the combination of constraints is a violation
-