Search in sources :

Example 51 with ObjectModificationType

use of com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectModificationType in project midpoint by Evolveum.

the class AbstractPhotoTest method parseDelta.

ObjectDelta<T> parseDelta(String oid, File file) throws SchemaException, IOException {
    ObjectModificationType modification = PrismTestUtil.parseAtomicValue(file, ObjectModificationType.COMPLEX_TYPE);
    ObjectDelta<T> delta = DeltaConvertor.createObjectDelta(modification, getObjectType(), prismContext);
    delta.setOid(oid);
    return delta;
}
Also used : ObjectModificationType(com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectModificationType)

Aggregations

ObjectModificationType (com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectModificationType)50 Test (org.testng.annotations.Test)44 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)34 File (java.io.File)32 ObjectDelta (com.evolveum.midpoint.prism.delta.ObjectDelta)13 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)13 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)9 Task (com.evolveum.midpoint.task.api.Task)9 UserType (com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)6 Session (org.hibernate.Session)6 ROrgClosure (com.evolveum.midpoint.repo.sql.data.common.ROrgClosure)5 OrgType (com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType)5 Entry (org.opends.server.types.Entry)5 QName (javax.xml.namespace.QName)4 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)3 HookOperationMode (com.evolveum.midpoint.model.api.hooks.HookOperationMode)2 LensProjectionContext (com.evolveum.midpoint.model.impl.lens.LensProjectionContext)2 ItemDelta (com.evolveum.midpoint.prism.delta.ItemDelta)2 ItemDeltaType (com.evolveum.prism.xml.ns._public.types_3.ItemDeltaType)2 PolyStringType (com.evolveum.prism.xml.ns._public.types_3.PolyStringType)2