@Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { return attributeValue.isDefined() && !RejectAttributeChecker.SIMPLE_EXPRESSIONS.rejectOperationParameter(address, attributeName, attributeValue, operation, context) && this.isRejected(attributeValue); }
/** * {@inheritDoc} */ @Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { for (Map.Entry<String, RejectAttributeChecker> entry : fields.entrySet()) { ModelNode fieldValue = attributeValue.hasDefined(entry.getKey()) ? attributeValue.get(entry.getKey()) : new ModelNode(); if (entry.getValue().rejectOperationParameter(address, attributeName, fieldValue, operation, context)) { return true; } } return false; }
/** * {@inheritDoc} */ @Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { for (Map.Entry<String, RejectAttributeChecker> entry : fields.entrySet()) { ModelNode fieldValue = attributeValue.hasDefined(entry.getKey()) ? attributeValue.get(entry.getKey()) : new ModelNode(); if (entry.getValue().rejectOperationParameter(address, attributeName, fieldValue, operation, context)) { return true; } } return false; }
/** * {@inheritDoc} */ @Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { for (Map.Entry<String, RejectAttributeChecker> entry : fields.entrySet()) { ModelNode fieldValue = attributeValue.hasDefined(entry.getKey()) ? attributeValue.get(entry.getKey()) : new ModelNode(); if (entry.getValue().rejectOperationParameter(address, attributeName, fieldValue, operation, context)) { return true; } } return false; }
/** * {@inheritDoc} */ @Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { for (Map.Entry<String, RejectAttributeChecker> entry : fields.entrySet()) { ModelNode fieldValue = attributeValue.hasDefined(entry.getKey()) ? attributeValue.get(entry.getKey()) : new ModelNode(); if (entry.getValue().rejectOperationParameter(address, attributeName, fieldValue, operation, context)) { return true; } } return false; }
@Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { return attributeValue.isDefined() && !RejectAttributeChecker.SIMPLE_EXPRESSIONS.rejectOperationParameter(address, attributeName, attributeValue, operation, context) && this.isRejected(attributeValue); }
/** * {@inheritDoc} */ @Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { if (attributeValue.isDefined()) { for (ModelNode element : attributeValue.asList()) { if (elementChecker.rejectOperationParameter(address, attributeName, element, operation, context)) { return true; } } } return false; }
/** * {@inheritDoc} */ @Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { if (attributeValue.isDefined()) { for (ModelNode element : attributeValue.asList()) { if (elementChecker.rejectOperationParameter(address, attributeName, element, operation, context)) { return true; } } } return false; }
/** * {@inheritDoc} */ @Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { if (attributeValue.isDefined()) { for (ModelNode element : attributeValue.asList()) { if (elementChecker.rejectOperationParameter(address, attributeName, element, operation, context)) { return true; } } } return false; }
/** * {@inheritDoc} */ @Override public boolean rejectOperationParameter(PathAddress address, String attributeName, ModelNode attributeValue, ModelNode operation, TransformationContext context) { if (attributeValue.isDefined()) { for (ModelNode element : attributeValue.asList()) { if (elementChecker.rejectOperationParameter(address, attributeName, element, operation, context)) { return true; } } } return false; }
void checkAttribute(RejectAttributeChecker checker, String attributeName, ModelNode attributeValue) { if (op == null) { if (checker.rejectResourceAttribute(address, attributeName, attributeValue, context.getContext())) { reject(checker, attributeName, attributeValue); } } else { if (checker.rejectOperationParameter(address, attributeName, attributeValue, op, context.getContext())){ reject(checker, attributeName, attributeValue); } } }
void checkAttribute(RejectAttributeChecker checker, String attributeName, ModelNode attributeValue) { if (op == null) { if (checker.rejectResourceAttribute(address, attributeName, attributeValue, context.getContext())) { reject(checker, attributeName, attributeValue); } } else { if (checker.rejectOperationParameter(address, attributeName, attributeValue, op, context.getContext())){ reject(checker, attributeName, attributeValue); } } }
void checkAttribute(RejectAttributeChecker checker, String attributeName, ModelNode attributeValue) { if (op == null) { if (checker.rejectResourceAttribute(address, attributeName, attributeValue, context.getContext())) { reject(checker, attributeName, attributeValue); } } else { if (checker.rejectOperationParameter(address, attributeName, attributeValue, op, context.getContext())){ reject(checker, attributeName, attributeValue); } } }
void checkAttribute(RejectAttributeChecker checker, String attributeName, ModelNode attributeValue) { if (op == null) { if (checker.rejectResourceAttribute(address, attributeName, attributeValue, context.getContext())) { reject(checker, attributeName, attributeValue); } } else { if (checker.rejectOperationParameter(address, attributeName, attributeValue, op, context.getContext())){ reject(checker, attributeName, attributeValue); } } }