Search in sources :

Example 1 with PrismEntityPair

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);
        }
    }
}
Also used : SchemaException(com.evolveum.midpoint.util.exception.SchemaException) PrismEntityPair(com.evolveum.midpoint.repo.sql.helpers.modify.PrismEntityPair) SystemException(com.evolveum.midpoint.util.exception.SystemException) PrismValue(com.evolveum.midpoint.prism.PrismValue)

Aggregations

PrismValue (com.evolveum.midpoint.prism.PrismValue)1 PrismEntityPair (com.evolveum.midpoint.repo.sql.helpers.modify.PrismEntityPair)1 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)1 SystemException (com.evolveum.midpoint.util.exception.SystemException)1