Class ServerGroupEffectConstraint
- java.lang.Object
-
- org.jboss.as.controller.access.constraint.AbstractConstraint
-
- org.jboss.as.controller.access.constraint.ServerGroupEffectConstraint
-
- All Implemented Interfaces:
Constraint,ScopingConstraint
public class ServerGroupEffectConstraint extends AbstractConstraint implements Constraint, ScopingConstraint
Constraint related to whether the target resource is associated with one or more managed domain server groups.- Author:
- Brian Stansberry (c) 2013 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static ScopingConstraintFactoryFACTORY
-
Constructor Summary
Constructors Constructor Description ServerGroupEffectConstraint(List<String> allowed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopingConstraintFactorygetFactory()Get the factory that produces constraints of this typeConstraintgetOutofScopeReadConstraint()Get a constraint that should be used for reads of resources that are outside the scope of the constraint.ConstraintgetStandardConstraint()booleanreplaces(Constraint other)Gets whether this constraint is equivalent to and can thus replace another constraint in aManagementPermission.voidsetAllowedGroups(List<String> allowed)booleanviolates(Constraint other, Action.ActionEffect actionEffect)Gets whether this constraint violates another constraint
-
-
-
Field Detail
-
FACTORY
public static final ScopingConstraintFactory FACTORY
-
-
Method Detail
-
violates
public boolean violates(Constraint other, Action.ActionEffect actionEffect)
Description copied from interface:ConstraintGets whether this constraint violates another constraint- Specified by:
violatesin interfaceConstraint- Parameters:
other- the other constraintactionEffect- the effect being evaluated- Returns:
trueif the combination of constraints is a violation
-
replaces
public boolean replaces(Constraint other)
Description copied from class:AbstractConstraintGets whether this constraint is equivalent to and can thus replace another constraint in aManagementPermission.This default implementation always returns
false.- Specified by:
replacesin interfaceConstraint- Overrides:
replacesin classAbstractConstraint- Parameters:
other- the other constraint- Returns:
false, always
-
getFactory
public ScopingConstraintFactory getFactory()
Description copied from interface:ScopingConstraintGet the factory that produces constraints of this type- Specified by:
getFactoryin interfaceScopingConstraint
-
getStandardConstraint
public Constraint getStandardConstraint()
- Specified by:
getStandardConstraintin interfaceScopingConstraint
-
getOutofScopeReadConstraint
public Constraint getOutofScopeReadConstraint()
Description copied from interface:ScopingConstraintGet a constraint that should be used for reads of resources that are outside the scope of the constraint.- Specified by:
getOutofScopeReadConstraintin interfaceScopingConstraint
-
-