Class SensitiveTargetConstraint.Factory
- java.lang.Object
-
- org.jboss.as.controller.access.constraint.SensitiveTargetConstraint.Factory
-
- All Implemented Interfaces:
Comparable<ConstraintFactory>
,ConstraintFactory
- Enclosing class:
- SensitiveTargetConstraint
public static class SensitiveTargetConstraint.Factory extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SensitivityClassification
addSensitivity(SensitivityClassification sensitivity)
Stores a sensitivity classification for use in constraints.int
compareTo(ConstraintFactory o)
Constraint
getRequiredConstraint(Action.ActionEffect actionEffect, Action action, TargetAttribute target)
Provides a constraint appropriate for the givenaction
andtarget
Constraint
getRequiredConstraint(Action.ActionEffect actionEffect, Action action, TargetResource target)
Provides a constraint appropriate for the givenaction
andtarget
Constraint
getRequiredConstraint(Action.ActionEffect actionEffect, JmxAction action, JmxTarget target)
Provides a constraint appropriate for the givenaction
andtarget
Collection<SensitivityClassification>
getSensitivities()
Constraint
getStandardUserConstraint(StandardRole role, Action.ActionEffect actionEffect)
Provides a constraint suitable for the givenrole
in the standard WildFly role based access control system.protected int
internalCompare(org.jboss.as.controller.access.constraint.AbstractConstraintFactory other)
Compare thisAbstractConstraintFactory
to another.
-
-
-
Method Detail
-
getStandardUserConstraint
public Constraint getStandardUserConstraint(StandardRole role, Action.ActionEffect actionEffect)
Description copied from interface:ConstraintFactory
Provides a constraint suitable for the givenrole
in the standard WildFly role based access control system.- Parameters:
role
- the roleactionEffect
- theAction.ActionEffect
for which the constraint is relevant- Returns:
- the constraint. Cannot return
null
-
getRequiredConstraint
public Constraint getRequiredConstraint(Action.ActionEffect actionEffect, Action action, TargetAttribute target)
Description copied from interface:ConstraintFactory
Provides a constraint appropriate for the givenaction
andtarget
- Parameters:
actionEffect
- theAction.ActionEffect
for which the constraint is relevantaction
- the actiontarget
- the attribute that is the target of the action- Returns:
- the constraint. Cannot return
null
-
getRequiredConstraint
public Constraint getRequiredConstraint(Action.ActionEffect actionEffect, Action action, TargetResource target)
Description copied from interface:ConstraintFactory
Provides a constraint appropriate for the givenaction
andtarget
- Parameters:
actionEffect
- theAction.ActionEffect
for which the constraint is relevantaction
- the actiontarget
- the resource that is the target of the action- Returns:
- the constraint. Cannot return
null
-
addSensitivity
public final SensitivityClassification addSensitivity(SensitivityClassification sensitivity)
Stores a sensitivity classification for use in constraints.- Parameters:
sensitivity
- the classification- Returns:
- either the provided classification, or if a compatible one with the same key is already present, that one
- Throws:
AssertionError
- if a classification with the same key is already register and it is not compatible with the one to be added
-
getSensitivities
public Collection<SensitivityClassification> getSensitivities()
-
internalCompare
protected int internalCompare(org.jboss.as.controller.access.constraint.AbstractConstraintFactory other)
Compare thisAbstractConstraintFactory
to another. Similar contract toComparable.compareTo(Object)
except that a return value of0
does not imply equality; rather it implies indifference with respect to order. The intended use for this method is inComparable.compareTo(Object)
implementations where the class implementing the method has no preference with respect to order and is willing to go with the preference of the passed in object if it has one.- Parameters:
other
- the other constraint factory
-
getRequiredConstraint
public Constraint getRequiredConstraint(Action.ActionEffect actionEffect, JmxAction action, JmxTarget target)
Description copied from interface:ConstraintFactory
Provides a constraint appropriate for the givenaction
andtarget
- Parameters:
actionEffect
- theAction.ActionEffect
for which the constraint is relevantaction
- the actiontarget
- the jmx bean that is the target of the action- Returns:
- the constraint. Cannot return
null
-
compareTo
public int compareTo(ConstraintFactory o)
- Specified by:
compareTo
in interfaceComparable<ConstraintFactory>
-
-