@Override public String getRejectionLogMessage(Map<String, ModelNode> attributes) { return RejectAttributeChecker.UNDEFINED.getRejectionLogMessage(attributes); }
@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); }
@Override public boolean rejectResourceAttribute(PathAddress address, String attributeName, ModelNode attributeValue, TransformationContext context) { return attributeValue.isDefined() && !RejectAttributeChecker.SIMPLE_EXPRESSIONS.rejectResourceAttribute(address, attributeName, attributeValue, context) && this.isRejected(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); } } }
public String getRejectionLogMessageId() { return elementChecker.getRejectionLogMessageId(); }
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); } } }
public String getRejectionLogMessageId() { return elementChecker.getRejectionLogMessageId(); }
@Override public String getRejectionLogMessage(Map<String, ModelNode> attributes) { return RejectAttributeChecker.UNDEFINED.getRejectionLogMessage(attributes); }
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); } } }
/** * {@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 rejectResourceAttribute(PathAddress address, String attributeName, ModelNode attributeValue, 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().rejectResourceAttribute(address, attributeName, fieldValue, context)) { return true; } } return false; }
public String getRejectionLogMessageId() { return elementChecker.getRejectionLogMessageId(); }
@Override public String getRejectionLogMessage(Map<String, ModelNode> attributes) { return elementChecker.getRejectionLogMessage(attributes); } }
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); } } }
/** * {@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 rejectResourceAttribute(PathAddress address, String attributeName, ModelNode attributeValue, 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().rejectResourceAttribute(address, attributeName, fieldValue, context)) { return true; } } return false; }
public String getRejectionLogMessageId() { return elementChecker.getRejectionLogMessageId(); }
@Override public String getRejectionLogMessage(Map<String, ModelNode> attributes) { return elementChecker.getRejectionLogMessage(attributes); } }
/** * {@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 rejectResourceAttribute(PathAddress address, String attributeName, ModelNode attributeValue, 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().rejectResourceAttribute(address, attributeName, fieldValue, context)) { return true; } } return false; }