public interface RejectAttributeChecker
Modifier and Type | Interface and Description |
---|---|
static class |
RejectAttributeChecker.DefaultRejectAttributeChecker
A standard implementation of RejectAttributeChecker.
|
static class |
RejectAttributeChecker.ListRejectAttributeChecker
A RejectAttributeChecker for
ModelType.LIST attribute values |
static class |
RejectAttributeChecker.ObjectFieldsRejectAttributeChecker
A RejectAttributeChecker for
ModelType.OBJECT attribute values |
static class |
RejectAttributeChecker.SimpleAcceptAttributeChecker
Rejects an attribute if the value is anything other than the specified value..
|
static class |
RejectAttributeChecker.SimpleRejectAttributeChecker
Rejects the attribute if the value is equal to the specified value.
|
Modifier and Type | Field and Description |
---|---|
static RejectAttributeChecker |
ALL |
static RejectAttributeChecker |
DEFINED |
static RejectAttributeChecker |
SIMPLE_EXPRESSIONS
Checks a simple attribute for expressions
|
static RejectAttributeChecker |
UNDEFINED |
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.
|
static final RejectAttributeChecker SIMPLE_EXPRESSIONS
static final RejectAttributeChecker DEFINED
static final RejectAttributeChecker UNDEFINED
static final RejectAttributeChecker ALL
boolean rejectOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)
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.boolean rejectResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
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.String getRejectionLogMessageId()
Copyright © 2023 JBoss by Red Hat. All rights reserved.