Package com.evolveum.midpoint.schema
Class DeltaConvertor
- java.lang.Object
-
- com.evolveum.midpoint.schema.DeltaConvertor
-
public class DeltaConvertor extends Object
- Author:
- semancik
-
-
Field Summary
Fields Modifier and Type Field Description static QName
PATH_ELEMENT_NAME
-
Constructor Summary
Constructors Constructor Description DeltaConvertor()
-
Method Summary
-
-
-
Field Detail
-
PATH_ELEMENT_NAME
public static final QName PATH_ELEMENT_NAME
-
-
Method Detail
-
createObjectDelta
public static <T extends Objectable> ObjectDelta<T> createObjectDelta(ObjectModificationType objectModification, 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
-
createObjectDelta
public static <T extends Objectable> ObjectDelta<T> createObjectDelta(ObjectDeltaType objectDeltaType, PrismContext prismContext, boolean allowRawValues) throws SchemaException
- Throws:
SchemaException
-
createObjectDelta
public static <T extends Objectable> ObjectDelta<T> createObjectDelta(ObjectDeltaType objectDeltaType, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
createObjectDeltaOperation
public static ObjectDeltaOperation createObjectDeltaOperation(ObjectDeltaOperationType objectDeltaOperationType, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
toModifications
public static <T extends Objectable> Collection<? extends ItemDelta> toModifications(ObjectModificationType objectModification, Class<T> type, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
toModifications
public static <T extends Objectable> Collection<? extends ItemDelta> toModifications(ObjectModificationType objectModification, PrismObjectDefinition<T> objDef) throws SchemaException
- Throws:
SchemaException
-
toModifications
public static <T extends Objectable> Collection<? extends ItemDelta> toModifications(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 ObjectType> objectDelta) throws SchemaException
- Throws:
SchemaException
-
toObjectDeltaType
public static ObjectDeltaType toObjectDeltaType(ObjectDelta<? extends ObjectType> objectDelta, DeltaConversionOptions options) throws SchemaException
- Throws:
SchemaException
-
toObjectDeltaTypeXml
public static String toObjectDeltaTypeXml(ObjectDelta<? extends ObjectType> delta) throws SchemaException, javax.xml.bind.JAXBException
- Throws:
SchemaException
javax.xml.bind.JAXBException
-
toObjectDeltaTypeXml
public static String toObjectDeltaTypeXml(ObjectDelta<? extends ObjectType> delta, DeltaConversionOptions options) throws SchemaException, javax.xml.bind.JAXBException
- Throws:
SchemaException
javax.xml.bind.JAXBException
-
toObjectDeltaOperationType
public static ObjectDeltaOperationType toObjectDeltaOperationType(ObjectDeltaOperation objectDeltaOperation) throws SchemaException
- Throws:
SchemaException
-
toObjectDeltaOperationType
public static ObjectDeltaOperationType toObjectDeltaOperationType(ObjectDeltaOperation objectDeltaOperation, DeltaConversionOptions options) throws SchemaException
- Throws:
SchemaException
-
toObjectDeltaOperationType
public static void toObjectDeltaOperationType(ObjectDeltaOperation delta, ObjectDeltaOperationType odo, DeltaConversionOptions options) throws SchemaException
- Throws:
SchemaException
-
createItemDelta
public static <IV extends PrismValue,ID extends ItemDefinition> ItemDelta<IV,ID> createItemDelta(ItemDeltaType propMod, Class<? extends Containerable> 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 <IV extends PrismValue,ID extends ItemDefinition> ItemDelta<IV,ID> createItemDelta(ItemDeltaType propMod, PrismContainerDefinition<?> pcDef, boolean allowRawValues) throws SchemaException
- Throws:
SchemaException
-
createItemDelta
public static <IV extends PrismValue,ID extends ItemDefinition> ItemDelta<IV,ID> createItemDelta(ItemDeltaType propMod, PrismContainerDefinition<?> pcDef) throws SchemaException
- Throws:
SchemaException
-
toItemDeltaTypes
public static Collection<ItemDeltaType> toItemDeltaTypes(ItemDelta delta) throws SchemaException
Converts this delta to PropertyModificationType (XML).- Throws:
SchemaException
-
toItemDeltaTypes
public static Collection<ItemDeltaType> toItemDeltaTypes(ItemDelta delta, DeltaConversionOptions options) throws SchemaException
- Throws:
SchemaException
-
createObjectDeltas
public static Collection<ObjectDelta> createObjectDeltas(ObjectDeltaListType deltaList, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
-