Package com.evolveum.midpoint.common
Class SynchronizationUtils
- java.lang.Object
-
- com.evolveum.midpoint.common.SynchronizationUtils
-
public class SynchronizationUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description SynchronizationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ItemDelta<?,?>
createFullSynchronizationTimestampDelta(ShadowType oldShadow, XMLGregorianCalendar timestamp)
static List<ItemDelta<?,?>>
createSynchronizationSituationAndDescriptionDelta(ShadowType shadow, SynchronizationSituationType situation, String sourceChannel, boolean full, XMLGregorianCalendar timestamp)
Creates situation, description, and timestamp deltas.static ItemDelta<?,?>
createSynchronizationSituationDelta(ShadowType shadow, SynchronizationSituationType situation)
static @NotNull ItemDelta<?,?>
createSynchronizationSituationDescriptionDelta(ShadowType shadow, SynchronizationSituationType situation, XMLGregorianCalendar timestamp, String sourceChannel, boolean full)
Creates delta for `synchronizationSituationDescription` (adding new, removing obsolete if present).static ItemDelta<?,?>
createSynchronizationTimestampDelta(ShadowType oldShadow, XMLGregorianCalendar timestamp)
-
-
-
Method Detail
-
createSynchronizationSituationAndDescriptionDelta
public static List<ItemDelta<?,?>> createSynchronizationSituationAndDescriptionDelta(ShadowType shadow, SynchronizationSituationType situation, String sourceChannel, boolean full, XMLGregorianCalendar timestamp) throws SchemaException
Creates situation, description, and timestamp deltas.- Parameters:
full
- if true, we consider this synchronization to be "full", and set the appropriate flag in `synchronizationSituationDescription` as well as update `fullSynchronizationTimestamp`.- Throws:
SchemaException
-
createSynchronizationSituationDelta
public static ItemDelta<?,?> createSynchronizationSituationDelta(ShadowType shadow, SynchronizationSituationType situation) throws SchemaException
- Throws:
SchemaException
-
createSynchronizationTimestampDelta
public static ItemDelta<?,?> createSynchronizationTimestampDelta(ShadowType oldShadow, XMLGregorianCalendar timestamp) throws SchemaException
- Throws:
SchemaException
-
createFullSynchronizationTimestampDelta
public static ItemDelta<?,?> createFullSynchronizationTimestampDelta(ShadowType oldShadow, XMLGregorianCalendar timestamp) throws SchemaException
- Throws:
SchemaException
-
createSynchronizationSituationDescriptionDelta
@NotNull public static @NotNull ItemDelta<?,?> createSynchronizationSituationDescriptionDelta(ShadowType shadow, SynchronizationSituationType situation, XMLGregorianCalendar timestamp, String sourceChannel, boolean full) throws SchemaException
Creates delta for `synchronizationSituationDescription` (adding new, removing obsolete if present).- Throws:
SchemaException
-
-