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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the factory that produces constraints of this typeGet a constraint that should be used for reads of resources that are outside the scope of the constraint.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 Details
-
FACTORY
-
-
Constructor Details
-
ServerGroupEffectConstraint
-
-
Method Details
-
setAllowedGroups
-
violates
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
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
Description copied from interface:ScopingConstraintGet the factory that produces constraints of this type- Specified by:
getFactoryin interfaceScopingConstraint
-
getStandardConstraint
- Specified by:
getStandardConstraintin interfaceScopingConstraint
-
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
-