public abstract static class RejectAttributeChecker.DefaultRejectAttributeChecker extends Object implements RejectAttributeChecker
RejectAttributeChecker.DefaultRejectAttributeChecker, RejectAttributeChecker.ListRejectAttributeChecker, RejectAttributeChecker.ObjectFieldsRejectAttributeChecker, RejectAttributeChecker.SimpleAcceptAttributeChecker, RejectAttributeChecker.SimpleRejectAttributeChecker
ALL, DEFINED, SIMPLE_EXPRESSIONS, UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
DefaultRejectAttributeChecker()
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getRejectionLogMessageId()
Returns the log message id used by this checker.
|
protected abstract boolean |
rejectAttribute(PathAddress address,
String attributeName,
org.jboss.dmr.ModelNode attributeValue,
TransformationContext context)
Gets called by the default implementations of
rejectOperationParameter(PathAddress, String, ModelNode, ModelNode, TransformationContext)
and rejectResourceAttribute(PathAddress, String, ModelNode, TransformationContext) . |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRejectionLogMessage
protected DefaultRejectAttributeChecker()
public 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.protected abstract boolean rejectAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
rejectOperationParameter(PathAddress, String, ModelNode, ModelNode, TransformationContext)
and rejectResourceAttribute(PathAddress, String, ModelNode, TransformationContext)
.address
- the address of the operationattributeName
- the name of the attributeattributeValue
- the value of the attributecontext
- the context of the transformationtrue
if the attribute or parameter value is not understandable by the target process and so needs to be rejected, false
otherwise.public String getRejectionLogMessageId()
getRejectionLogMessageId
in interface RejectAttributeChecker
Copyright © 2023 JBoss by Red Hat. All rights reserved.