Search in sources :

Example 1 with EntityState

use of com.evolveum.midpoint.repo.sql.util.EntityState in project midpoint by Evolveum.

the class CollectionUpdate method mapToRepo.

private R mapToRepo(V value, boolean trans) {
    MapperContext context = new MapperContext();
    context.setRepositoryContext(ctx.beans.createRepositoryContext());
    context.setDelta(delta);
    context.setOwner(collectionOwner);
    R repo = ctx.beans.prismEntityMapper.mapPrismValue(value, attributeValueType, context);
    if (repo instanceof EntityState) {
        ((EntityState) repo).setTransient(trans);
    }
    return repo;
}
Also used : MapperContext(com.evolveum.midpoint.repo.sql.helpers.modify.MapperContext) EntityState(com.evolveum.midpoint.repo.sql.util.EntityState)

Aggregations

MapperContext (com.evolveum.midpoint.repo.sql.helpers.modify.MapperContext)1 EntityState (com.evolveum.midpoint.repo.sql.util.EntityState)1