Class RejectAttributeChecker.ObjectFieldsRejectAttributeChecker
java.lang.Object
org.jboss.as.controller.transform.description.RejectAttributeChecker.ObjectFieldsRejectAttributeChecker
- All Implemented Interfaces:
RejectAttributeChecker
- Enclosing interface:
- RejectAttributeChecker
public static class RejectAttributeChecker.ObjectFieldsRejectAttributeChecker
extends Object
implements RejectAttributeChecker
A RejectAttributeChecker for
ModelType.OBJECT attribute values-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.transform.description.RejectAttributeChecker
RejectAttributeChecker.DefaultRejectAttributeChecker, RejectAttributeChecker.ListRejectAttributeChecker, RejectAttributeChecker.ObjectFieldsRejectAttributeChecker, RejectAttributeChecker.SimpleAcceptAttributeChecker, RejectAttributeChecker.SimpleRejectAttributeChecker -
Field Summary
Fields inherited from interface org.jboss.as.controller.transform.description.RejectAttributeChecker
ALL, DEFINED, SIMPLE_EXPRESSIONS, UNDEFINED -
Constructor Summary
ConstructorsConstructorDescriptionConstructor -
Method Summary
Modifier and TypeMethodDescriptiongetRejectionLogMessage(Map<String, org.jboss.dmr.ModelNode> attributes) Gets the log message if the attribute failed rejectionReturns the log message id used by this checker.booleanrejectOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context) Determines whether the given operation parameter value is not understandable by the target process and needs to be rejected.booleanrejectResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context) Gets whether the given resource attribute value is not understandable by the target process and needs to be rejected.
-
Constructor Details
-
ObjectFieldsRejectAttributeChecker
Constructor- Parameters:
fields- map of keys in the object type and the RejectAttributeChecker to use to check the entries
-
-
Method Details
-
rejectOperationParameter
public boolean rejectOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context) Determines whether the given operation parameter value is not understandable by the target process and needs to be rejected.- Specified by:
rejectOperationParameterin interfaceRejectAttributeChecker- Parameters:
address- the address of the operationattributeName- the name of the attributeattributeValue- the value of the attributeoperation- the operation executed. This is unmodifiable.context- the context of the transformation- Returns:
trueif the parameter value is not understandable by the target process and so needs to be rejected,falseotherwise.
-
rejectResourceAttribute
public boolean rejectResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context) Gets whether the given resource attribute value is not understandable by the target process and needs to be rejected.- Specified by:
rejectResourceAttributein interfaceRejectAttributeChecker- Parameters:
address- the address of the resourceattributeName- the name of the attributeattributeValue- the value of the attributecontext- the context of the transformation- Returns:
trueif the attribute value is not understandable by the target process and so needs to be rejected,falseotherwise.
-
getRejectionLogMessageId
Description copied from interface:RejectAttributeCheckerReturns the log message id used by this checker. This is used to group it so that all attributes failing a type of rejction end up in the same error message- Specified by:
getRejectionLogMessageIdin interfaceRejectAttributeChecker- Returns:
- the log message id
-
getRejectionLogMessage
Description copied from interface:RejectAttributeCheckerGets the log message if the attribute failed rejection- Specified by:
getRejectionLogMessagein interfaceRejectAttributeChecker- Parameters:
attributes- a map of all attributes failed in this checker and their values- Returns:
- the formatted log message
-