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 Details

    • AllowAllowNotConstraint

      protected AllowAllowNotConstraint(boolean is)
    • AllowAllowNotConstraint

      protected AllowAllowNotConstraint(boolean allows, boolean allowsNot)
  • Method Details

    • 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 constraint
      actionEffect - the effect being evaluated
      Returns:
      true if the combination of constraints is a violation