public static class RejectAttributeChecker.ListRejectAttributeChecker extends Object implements RejectAttributeChecker
ModelType.LIST attribute valuesRejectAttributeChecker.DefaultRejectAttributeChecker, RejectAttributeChecker.ListRejectAttributeChecker, RejectAttributeChecker.ObjectFieldsRejectAttributeChecker, RejectAttributeChecker.SimpleAcceptAttributeChecker, RejectAttributeChecker.SimpleRejectAttributeCheckerALL, DEFINED, SIMPLE_EXPRESSIONS, UNDEFINED| Constructor and Description |
|---|
ListRejectAttributeChecker(RejectAttributeChecker elementChecker)
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 ListRejectAttributeChecker(RejectAttributeChecker elementChecker)
elementChecker - the checker to check the list elementspublic boolean rejectOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)
rejectOperationParameter in interface RejectAttributeCheckeraddress - 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 RejectAttributeCheckeraddress - 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()
RejectAttributeCheckergetRejectionLogMessageId in interface RejectAttributeCheckerpublic String getRejectionLogMessage(Map<String,org.jboss.dmr.ModelNode> attributes)
RejectAttributeCheckergetRejectionLogMessage in interface RejectAttributeCheckerattributes - a map of all attributes failed in this checker and their valuesCopyright © 2016 JBoss by Red Hat. All rights reserved.