Interface ConstraintFactory
- All Superinterfaces:
Comparable<ConstraintFactory>
- All Known Subinterfaces:
ScopingConstraintFactory
- All Known Implementing Classes:
ApplicationTypeConstraint.Factory,SensitiveTargetConstraint.Factory
A factory for constraints.
Implementations of this interface should implement #equals(Object) and #hashCode()
such that two factories that produce the same constraints can be treated as equal in hash-based collections.
- Author:
- Brian Stansberry (c) 2013 Red Hat Inc.
-
Method Summary
Modifier and TypeMethodDescriptiongetRequiredConstraint(Action.ActionEffect actionEffect, Action action, TargetAttribute target) Provides a constraint appropriate for the givenactionandtargetgetRequiredConstraint(Action.ActionEffect actionEffect, Action action, TargetResource target) Provides a constraint appropriate for the givenactionandtargetgetRequiredConstraint(Action.ActionEffect actionEffect, JmxAction action, JmxTarget target) Provides a constraint appropriate for the givenactionandtargetgetStandardUserConstraint(StandardRole role, Action.ActionEffect actionEffect) Provides a constraint suitable for the givenrolein the standard WildFly role based access control system.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getStandardUserConstraint
Provides a constraint suitable for the givenrolein the standard WildFly role based access control system.- Parameters:
role- the roleactionEffect- theAction.ActionEffectfor 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 givenactionandtarget- Parameters:
actionEffect- theAction.ActionEffectfor which the constraint is relevantaction- the actiontarget- 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 givenactionandtarget- Parameters:
actionEffect- theAction.ActionEffectfor which the constraint is relevantaction- the actiontarget- 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 givenactionandtarget- Parameters:
actionEffect- theAction.ActionEffectfor which the constraint is relevantaction- the actiontarget- the jmx bean that is the target of the action- Returns:
- the constraint. Cannot return
null
-