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;
}
Aggregations