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 Details

    • violates

      boolean violates(Constraint other, Action.ActionEffect actionEffect)
      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
    • replaces

      boolean replaces(Constraint other)
      Gets whether this constraint is equivalent to and can thus replace another constraint in a ManagementPermission.
      Parameters:
      other - the other constraint
      Returns:
      true if replacement is valid