public static class RejectAttributeChecker.ObjectFieldsRejectAttributeChecker extends Object implements RejectAttributeChecker
ModelType.OBJECT
attribute valuesRejectAttributeChecker.DefaultRejectAttributeChecker, RejectAttributeChecker.ListRejectAttributeChecker, RejectAttributeChecker.ObjectFieldsRejectAttributeChecker, RejectAttributeChecker.SimpleAcceptAttributeChecker, RejectAttributeChecker.SimpleRejectAttributeChecker
ALL, DEFINED, SIMPLE_EXPRESSIONS, UNDEFINED
Constructor and Description |
---|
ObjectFieldsRejectAttributeChecker(Map<String,RejectAttributeChecker> fields)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getRejectionLogMessage(Map<String,org.jboss.dmr.ModelNode> attributes)
Gets the log message if the attribute failed rejection
|
String |
getRejectionLogMessageId()
Returns the log message id used by this checker.
|
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.
|
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.
|
public ObjectFieldsRejectAttributeChecker(Map<String,RejectAttributeChecker> fields)
fields
- map of keys in the object type and the RejectAttributeChecker to use to check the entriespublic boolean rejectOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)
rejectOperationParameter
in interface RejectAttributeChecker
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 transformationtrue
if the parameter value is not understandable by the target process and so needs to be rejected, false
otherwise.public boolean rejectResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
rejectResourceAttribute
in interface RejectAttributeChecker
address
- the address of the resourceattributeName
- the name of the attributeattributeValue
- the value of the attributecontext
- the context of the transformationtrue
if the attribute value is not understandable by the target process and so needs to be rejected, false
otherwise.public String getRejectionLogMessageId()
RejectAttributeChecker
getRejectionLogMessageId
in interface RejectAttributeChecker
public String getRejectionLogMessage(Map<String,org.jboss.dmr.ModelNode> attributes)
RejectAttributeChecker
getRejectionLogMessage
in interface RejectAttributeChecker
attributes
- a map of all attributes failed in this checker and their valuesCopyright © 2023 JBoss by Red Hat. All rights reserved.