use of com.evolveum.midpoint.repo.sql.helpers.modify.PrismEntityPair in project midpoint by Evolveum.
the class ExtensionUpdate method processExtensionDeltaValueSet.
private void processExtensionDeltaValueSet(Collection<? extends PrismValue> prismValuesFromDelta, Integer itemId, RAnyConverter.ValueType valueType, RepositoryUpdater repositoryUpdater) {
if (prismValuesFromDelta != null) {
RAnyConverter converter = new RAnyConverter(beans.prismContext, beans.extItemDictionary);
try {
Collection<PrismEntityPair<RAnyValue<?>>> rValuesFromDelta = new ArrayList<>();
for (PrismValue prismValueFromDelta : prismValuesFromDelta) {
RAnyValue<?> rValueFromDelta = convertToRValue(itemId, converter, prismValueFromDelta);
rValuesFromDelta.add(new PrismEntityPair<>(prismValueFromDelta, rValueFromDelta));
}
processExtensionValues(valueType, rValuesFromDelta, repositoryUpdater);
} catch (SchemaException ex) {
throw new SystemException("Couldn't process extension attributes", ex);
}
}
}
Aggregations