Interface ConstraintFactory

    • Method Detail

      • getStandardUserConstraint

        Constraint getStandardUserConstraint​(StandardRole role,
                                             Action.ActionEffect actionEffect)
        Provides a constraint suitable for the given role in the standard WildFly role based access control system.
        Parameters:
        role - the role
        actionEffect - the Action.ActionEffect for which the constraint is relevant
        Returns:
        the constraint. Cannot return null
      • getRequiredConstraint

        Constraint getRequiredConstraint​(Action.ActionEffect actionEffect,
                                         Action action,
                                         TargetAttribute target)
        Provides a constraint appropriate for the given action and target
        Parameters:
        actionEffect - the Action.ActionEffect for which the constraint is relevant
        action - the action
        target - the attribute that is the target of the action
        Returns:
        the constraint. Cannot return null
      • getRequiredConstraint

        Constraint getRequiredConstraint​(Action.ActionEffect actionEffect,
                                         Action action,
                                         TargetResource target)
        Provides a constraint appropriate for the given action and target
        Parameters:
        actionEffect - the Action.ActionEffect for which the constraint is relevant
        action - the action
        target - the resource that is the target of the action
        Returns:
        the constraint. Cannot return null
      • getRequiredConstraint

        Constraint getRequiredConstraint​(Action.ActionEffect actionEffect,
                                         JmxAction action,
                                         JmxTarget target)
        Provides a constraint appropriate for the given action and target
        Parameters:
        actionEffect - the Action.ActionEffect for which the constraint is relevant
        action - the action
        target - the jmx bean that is the target of the action
        Returns:
        the constraint. Cannot return null