com.evolveum.midpoint.schema
Class DeltaConvertor
java.lang.Object
com.evolveum.midpoint.schema.DeltaConvertor
public class DeltaConvertor
- extends java.lang.Object
- Author:
- semancik
Method Summary |
static ItemDelta |
createItemDelta(ItemDeltaType propMod,
java.lang.Class<? extends Objectable> objectType,
PrismContext prismContext)
Creates delta from PropertyModificationType (XML). |
static ItemDelta |
createItemDelta(ItemDeltaType propMod,
PrismContainerDefinition pcDef)
|
static
|
createObjectDelta(ObjectModificationType objectModification,
java.lang.Class<T> type,
PrismContext prismContext)
|
static
|
createObjectDelta(ObjectModificationType objectModification,
PrismObjectDefinition<T> objDef)
|
static
|
toModifications(java.util.Collection<ItemDeltaType> itemDeltaTypes,
PrismObjectDefinition<T> objDef)
|
static
|
toModifications(ObjectModificationType objectModification,
java.lang.Class<T> type,
PrismContext prismContext)
|
static
|
toModifications(ObjectModificationType objectModification,
PrismObjectDefinition<T> objDef)
|
static ObjectDeltaType |
toObjectDeltaType(ObjectDelta<? extends Objectable> objectDelta)
|
static
|
toObjectModificationType(ObjectDelta<T> delta)
Converts this delta to ObjectModificationType (XML). |
static java.util.Collection<ItemDeltaType> |
toPropertyModificationTypes(ItemDelta delta)
Converts this delta to PropertyModificationType (XML). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_ELEMENT_NAME
public static final javax.xml.namespace.QName PATH_ELEMENT_NAME
DeltaConvertor
public DeltaConvertor()
createObjectDelta
public static <T extends Objectable> ObjectDelta<T> createObjectDelta(ObjectModificationType objectModification,
java.lang.Class<T> type,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
createObjectDelta
public static <T extends Objectable> ObjectDelta<T> createObjectDelta(ObjectModificationType objectModification,
PrismObjectDefinition<T> objDef)
throws SchemaException
- Throws:
SchemaException
toModifications
public static <T extends Objectable> java.util.Collection<? extends ItemDelta> toModifications(ObjectModificationType objectModification,
java.lang.Class<T> type,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
toModifications
public static <T extends Objectable> java.util.Collection<? extends ItemDelta> toModifications(ObjectModificationType objectModification,
PrismObjectDefinition<T> objDef)
throws SchemaException
- Throws:
SchemaException
toModifications
public static <T extends Objectable> java.util.Collection<? extends ItemDelta> toModifications(java.util.Collection<ItemDeltaType> itemDeltaTypes,
PrismObjectDefinition<T> objDef)
throws SchemaException
- Throws:
SchemaException
toObjectModificationType
public static <T extends Objectable> ObjectModificationType toObjectModificationType(ObjectDelta<T> delta)
throws SchemaException
- Converts this delta to ObjectModificationType (XML).
- Throws:
SchemaException
toObjectDeltaType
public static ObjectDeltaType toObjectDeltaType(ObjectDelta<? extends Objectable> objectDelta)
throws SchemaException
- Throws:
SchemaException
createItemDelta
public static ItemDelta createItemDelta(ItemDeltaType propMod,
java.lang.Class<? extends Objectable> objectType,
PrismContext prismContext)
throws SchemaException
- Creates delta from PropertyModificationType (XML). The values inside the PropertyModificationType are converted to java.
That's the reason this method needs schema and objectType (to locate the appropriate definitions).
- Throws:
SchemaException
createItemDelta
public static ItemDelta createItemDelta(ItemDeltaType propMod,
PrismContainerDefinition pcDef)
throws SchemaException
- Throws:
SchemaException
toPropertyModificationTypes
public static java.util.Collection<ItemDeltaType> toPropertyModificationTypes(ItemDelta delta)
throws SchemaException
- Converts this delta to PropertyModificationType (XML).
- Throws:
SchemaException
Copyright © 2012 evolveum. All Rights Reserved.