public class HostEffectConstraint extends AbstractConstraint implements Constraint, ScopingConstraint
| Modifier and Type | Field and Description |
|---|---|
static ScopingConstraintFactory |
FACTORY |
| Constructor and Description |
|---|
HostEffectConstraint(List<String> allowed) |
| Modifier and Type | Method and Description |
|---|---|
ScopingConstraintFactory |
getFactory()
Get the factory that produces constraints of this type
|
Constraint |
getOutofScopeReadConstraint()
Get a constraint that should be used for reads of resources that are outside the scope of the constraint.
|
Constraint |
getStandardConstraint() |
boolean |
replaces(Constraint other)
Gets whether this constraint is equivalent to and can thus replace another constraint
in a
ManagementPermission. |
void |
setAllowedHosts(List<String> allowed) |
boolean |
violates(Constraint other,
Action.ActionEffect actionEffect)
Gets whether this constraint violates another constraint
|
public static final ScopingConstraintFactory FACTORY
public boolean violates(Constraint other, Action.ActionEffect actionEffect)
Constraintviolates in interface Constraintother - the other constraintactionEffect - the effect being evaluatedtrue if the combination of constraints is a violationpublic boolean replaces(Constraint other)
AbstractConstraintManagementPermission.
This default implementation always returns false.
replaces in interface Constraintreplaces in class AbstractConstraintother - the other constraintfalse, alwayspublic ScopingConstraintFactory getFactory()
ScopingConstraintgetFactory in interface ScopingConstraintpublic Constraint getStandardConstraint()
getStandardConstraint in interface ScopingConstraintpublic Constraint getOutofScopeReadConstraint()
ScopingConstraintgetOutofScopeReadConstraint in interface ScopingConstraintCopyright © 2020 JBoss by Red Hat. All rights reserved.