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)
Constraint
violates
in interface Constraint
other
- the other constraintactionEffect
- the effect being evaluatedtrue
if the combination of constraints is a violationpublic boolean replaces(Constraint other)
AbstractConstraint
ManagementPermission
.
This default implementation always returns false
.
replaces
in interface Constraint
replaces
in class AbstractConstraint
other
- the other constraintfalse
, alwayspublic ScopingConstraintFactory getFactory()
ScopingConstraint
getFactory
in interface ScopingConstraint
public Constraint getStandardConstraint()
getStandardConstraint
in interface ScopingConstraint
public Constraint getOutofScopeReadConstraint()
ScopingConstraint
getOutofScopeReadConstraint
in interface ScopingConstraint
Copyright © 2023 JBoss by Red Hat. All rights reserved.