Interface ConstraintFactory
-
- All Superinterfaces:
Comparable<ConstraintFactory>
- All Known Subinterfaces:
ScopingConstraintFactory
- All Known Implementing Classes:
ApplicationTypeConstraint.Factory,SensitiveTargetConstraint.Factory
public interface ConstraintFactory extends Comparable<ConstraintFactory>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstraintgetRequiredConstraint(Action.ActionEffect actionEffect, Action action, TargetAttribute target)Provides a constraint appropriate for the givenactionandtargetConstraintgetRequiredConstraint(Action.ActionEffect actionEffect, Action action, TargetResource target)Provides a constraint appropriate for the givenactionandtargetConstraintgetRequiredConstraint(Action.ActionEffect actionEffect, JmxAction action, JmxTarget target)Provides a constraint appropriate for the givenactionandtargetConstraintgetStandardUserConstraint(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 Detail
-
getStandardUserConstraint
Constraint getStandardUserConstraint(StandardRole role, Action.ActionEffect actionEffect)
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
-
-