use of com.evolveum.midpoint.prism.PrismValue in project midpoint by Evolveum.
the class CredentialPolicyEvaluator method hasValueDelta.
private <F extends FocusType> boolean hasValueDelta(ObjectDelta<UserType> focusDelta, ItemPath credentialsPath) {
if (focusDelta == null) {
return false;
}
for (PartiallyResolvedDelta<PrismValue, ItemDefinition> partialDelta : focusDelta.findPartial(credentialsPath)) {
if (LOGGER.isTraceEnabled()) {
LOGGER.trace("Residual delta:\n{}", partialDelta.debugDump());
}
ItemPath residualPath = partialDelta.getResidualPath();
if (residualPath == null || residualPath.isEmpty()) {
continue;
}
LOGGER.trace("PATH: {}", residualPath);
QName name = ItemPath.getFirstName(residualPath);
LOGGER.trace("NAME: {}", name);
if (isValueElement(name)) {
return true;
}
}
return false;
}
Aggregations