return null;
}
SyncopeClientCompositeException scce = SyncopeClientException.buildComposite();
SyncopeClientException requiredValuesMissing = SyncopeClientException.build(
ClientExceptionType.RequiredValuesMissing);
if (itemTO.getIntAttrName() == null) {
if (IntMappingType.getEmbedded().contains(itemTO.getIntMappingType())) {
itemTO.setIntAttrName(itemTO.getIntMappingType().toString());
} else {
requiredValuesMissing.getElements().add("intAttrName");
}
}
// Throw composite exception if there is at least one element set
// in the composing exceptions
if (!requiredValuesMissing.isEmpty()) {
scce.addException(requiredValuesMissing);
}
// no mandatory condition implies mandatory condition false
if (!JexlUtil.isExpressionValid(itemTO.getMandatoryCondition() == null
? "false" : itemTO.getMandatoryCondition())) {
SyncopeClientException invalidMandatoryCondition = SyncopeClientException.build(
ClientExceptionType.InvalidValues);
invalidMandatoryCondition.getElements().add(itemTO.getMandatoryCondition());
scce.addException(invalidMandatoryCondition);
}
if (scce.hasExceptions()) {