Class ObjectDeltaFactoryImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.delta.ObjectDeltaFactoryImpl
-
- All Implemented Interfaces:
DeltaFactory.Object
public class ObjectDeltaFactoryImpl extends Object implements DeltaFactory.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <O extends Objectable>
ObjectDelta<O>create(Class<O> type, ChangeType changeType)
<O extends Objectable>
ObjectDelta<O>createDeleteDelta(Class<O> type, String oid)
<O extends Objectable>
ObjectDelta<O>createEmptyAddDelta(Class<O> type, String oid)
<O extends Objectable>
ObjectDelta<O>createEmptyDeleteDelta(Class<O> type, String oid)
<O extends Objectable>
ObjectDelta<O>createEmptyDelta(Class<O> type, String oid, ChangeType changeType)
<O extends Objectable>
ObjectDelta<O>createEmptyModifyDelta(Class<O> type, String oid)
<O extends Objectable,C extends Containerable>
ObjectDelta<O>createModificationAddContainer(Class<O> type, String oid, ItemPath propertyPath, C... containerValues)
<O extends Objectable,C extends Containerable>
ObjectDelta<O>createModificationAddContainer(Class<O> type, String oid, ItemPath propertyPath, PrismContainerValue<C>... containerValues)
<O extends Objectable,X>
ObjectDelta<O>createModificationAddProperty(Class<O> type, String oid, ItemPath propertyPath, X... propertyValues)
<O extends Objectable>
ObjectDelta<O>createModificationAddReference(Class<O> type, String oid, QName propertyName, PrismObject<?>... referenceObjects)
Convenience method for quick creation of object deltas that replace a single object property.<O extends Objectable>
ObjectDelta<O>createModificationAddReference(Class<O> type, String oid, QName propertyName, PrismReferenceValue... referenceValues)
Convenience method for quick creation of object deltas that replace a single object property.<O extends Objectable>
ObjectDelta<O>createModificationAddReference(Class<O> type, String oid, QName propertyName, String... targetOids)
<O extends Objectable,C extends Containerable>
ObjectDelta<O>createModificationDeleteContainer(Class<O> type, String oid, ItemPath propertyPath, C... containerValues)
<O extends Objectable,C extends Containerable>
ObjectDelta<O>createModificationDeleteContainer(Class<O> type, String oid, ItemPath containerPath, PrismContainerValue<C>... containerValues)
<O extends Objectable,X>
ObjectDelta<O>createModificationDeleteProperty(Class<O> type, String oid, ItemPath propertyPath, X... propertyValues)
<O extends Objectable>
ObjectDelta<O>createModificationDeleteReference(Class<O> type, String oid, QName propertyName, PrismReferenceValue... referenceValues)
Convenience method for quick creation of object deltas that replace a single object property.<O extends Objectable>
ObjectDelta<O>createModificationDeleteReference(Class<O> type, String oid, QName propertyName, String... targetOids)
<O extends Objectable,C extends Containerable>
ObjectDelta<O>createModificationReplaceContainer(Class<O> type, String oid, ItemPath propertyPath, C... containerValues)
<O extends Objectable,C extends Containerable>
ObjectDelta<O>createModificationReplaceContainer(Class<O> type, String oid, ItemPath containerPath, PrismContainerValue<C>... containerValues)
<O extends Objectable,X>
ObjectDelta<O>createModificationReplaceProperty(Class<O> type, String oid, ItemPath propertyPath, X... propertyValues)
Convenience method for quick creation of object deltas that replace a single object property.<O extends Objectable>
ObjectDelta<O>createModificationReplaceReference(Class<O> type, String oid, ItemPath refPath, PrismReferenceValue... refValues)
Convenience method for quick creation of object deltas that replace a single object reference.<T extends Objectable>
ObjectDelta<T>createModifyDelta(String oid, ItemDelta modification, Class<T> objectTypeClass)
<T extends Objectable>
ObjectDelta<T>createModifyDelta(String oid, Collection<? extends ItemDelta> modifications, Class<T> objectTypeClass)
static <O extends Objectable,C extends Containerable>
voidfillInModificationAddContainer(ObjectDelta<O> objectDelta, ItemPath propertyPath, PrismContainerValue<C>... containerValues)
static <O extends Objectable>
voidfillInModificationAddReference(ObjectDelta<O> objectDelta, ItemPath refPath, PrismReferenceValue... refValues)
static <O extends Objectable,C extends Containerable>
voidfillInModificationDeleteContainer(ObjectDelta<O> objectDelta, ItemPath propertyPath, PrismContainerValue<C>... containerValues)
static <O extends Objectable,X>
voidfillInModificationDeleteProperty(ObjectDelta<O> objectDelta, ItemPath propertyPath, X... propertyValues)
static <O extends Objectable,X>
PropertyDelta<X>fillInModificationReplaceProperty(ObjectDelta<O> objectDelta, ItemPath propertyPath, X... propertyValues)
static <O extends Objectable>
voidfillInModificationReplaceReference(ObjectDelta<O> objectDelta, ItemPath refPath, PrismReferenceValue... refValues)
-
-
-
Method Detail
-
fillInModificationReplaceProperty
@SafeVarargs public static <O extends Objectable,X> PropertyDelta<X> fillInModificationReplaceProperty(ObjectDelta<O> objectDelta, ItemPath propertyPath, X... propertyValues)
-
fillInModificationDeleteProperty
@SafeVarargs public static <O extends Objectable,X> void fillInModificationDeleteProperty(ObjectDelta<O> objectDelta, ItemPath propertyPath, X... propertyValues)
-
fillInModificationReplaceReference
public static <O extends Objectable> void fillInModificationReplaceReference(ObjectDelta<O> objectDelta, ItemPath refPath, PrismReferenceValue... refValues)
-
fillInModificationAddReference
public static <O extends Objectable> void fillInModificationAddReference(ObjectDelta<O> objectDelta, ItemPath refPath, PrismReferenceValue... refValues)
-
fillInModificationDeleteContainer
@SafeVarargs public static <O extends Objectable,C extends Containerable> void fillInModificationDeleteContainer(ObjectDelta<O> objectDelta, ItemPath propertyPath, PrismContainerValue<C>... containerValues)
-
fillInModificationAddContainer
@SafeVarargs public static <O extends Objectable,C extends Containerable> void fillInModificationAddContainer(ObjectDelta<O> objectDelta, ItemPath propertyPath, PrismContainerValue<C>... containerValues)
-
create
public <O extends Objectable> ObjectDelta<O> create(Class<O> type, ChangeType changeType)
- Specified by:
create
in interfaceDeltaFactory.Object
-
createModificationReplaceProperty
public <O extends Objectable,X> ObjectDelta<O> createModificationReplaceProperty(Class<O> type, String oid, ItemPath propertyPath, X... propertyValues)
Convenience method for quick creation of object deltas that replace a single object property. This is used quite often to justify a separate method.- Specified by:
createModificationReplaceProperty
in interfaceDeltaFactory.Object
-
createEmptyDelta
public <O extends Objectable> ObjectDelta<O> createEmptyDelta(Class<O> type, String oid, ChangeType changeType)
- Specified by:
createEmptyDelta
in interfaceDeltaFactory.Object
-
createEmptyDeleteDelta
public <O extends Objectable> ObjectDelta<O> createEmptyDeleteDelta(Class<O> type, String oid)
- Specified by:
createEmptyDeleteDelta
in interfaceDeltaFactory.Object
-
createEmptyModifyDelta
public <O extends Objectable> ObjectDelta<O> createEmptyModifyDelta(Class<O> type, String oid)
- Specified by:
createEmptyModifyDelta
in interfaceDeltaFactory.Object
-
createEmptyAddDelta
public <O extends Objectable> ObjectDelta<O> createEmptyAddDelta(Class<O> type, String oid) throws SchemaException
- Specified by:
createEmptyAddDelta
in interfaceDeltaFactory.Object
- Throws:
SchemaException
-
createModifyDelta
public <T extends Objectable> ObjectDelta<T> createModifyDelta(String oid, ItemDelta modification, Class<T> objectTypeClass)
- Specified by:
createModifyDelta
in interfaceDeltaFactory.Object
-
createDeleteDelta
public <O extends Objectable> ObjectDelta<O> createDeleteDelta(Class<O> type, String oid)
- Specified by:
createDeleteDelta
in interfaceDeltaFactory.Object
-
createModifyDelta
public <T extends Objectable> ObjectDelta<T> createModifyDelta(String oid, Collection<? extends ItemDelta> modifications, Class<T> objectTypeClass)
- Specified by:
createModifyDelta
in interfaceDeltaFactory.Object
-
createModificationDeleteReference
public <O extends Objectable> ObjectDelta<O> createModificationDeleteReference(Class<O> type, String oid, QName propertyName, String... targetOids)
- Specified by:
createModificationDeleteReference
in interfaceDeltaFactory.Object
-
createModificationDeleteReference
public <O extends Objectable> ObjectDelta<O> createModificationDeleteReference(Class<O> type, String oid, QName propertyName, PrismReferenceValue... referenceValues)
Convenience method for quick creation of object deltas that replace a single object property. This is used quite often to justify a separate method.- Specified by:
createModificationDeleteReference
in interfaceDeltaFactory.Object
-
createModificationDeleteProperty
public <O extends Objectable,X> ObjectDelta<O> createModificationDeleteProperty(Class<O> type, String oid, ItemPath propertyPath, X... propertyValues)
- Specified by:
createModificationDeleteProperty
in interfaceDeltaFactory.Object
-
createModificationAddProperty
public <O extends Objectable,X> ObjectDelta<O> createModificationAddProperty(Class<O> type, String oid, ItemPath propertyPath, X... propertyValues)
- Specified by:
createModificationAddProperty
in interfaceDeltaFactory.Object
-
createModificationAddReference
public <O extends Objectable> ObjectDelta<O> createModificationAddReference(Class<O> type, String oid, QName propertyName, String... targetOids)
- Specified by:
createModificationAddReference
in interfaceDeltaFactory.Object
-
createModificationAddReference
public <O extends Objectable> ObjectDelta<O> createModificationAddReference(Class<O> type, String oid, QName propertyName, PrismReferenceValue... referenceValues)
Convenience method for quick creation of object deltas that replace a single object property. This is used quite often to justify a separate method.- Specified by:
createModificationAddReference
in interfaceDeltaFactory.Object
-
createModificationAddReference
public <O extends Objectable> ObjectDelta<O> createModificationAddReference(Class<O> type, String oid, QName propertyName, PrismObject<?>... referenceObjects)
Convenience method for quick creation of object deltas that replace a single object property. This is used quite often to justify a separate method.- Specified by:
createModificationAddReference
in interfaceDeltaFactory.Object
-
createModificationReplaceContainer
public <O extends Objectable,C extends Containerable> ObjectDelta<O> createModificationReplaceContainer(Class<O> type, String oid, ItemPath containerPath, PrismContainerValue<C>... containerValues)
- Specified by:
createModificationReplaceContainer
in interfaceDeltaFactory.Object
-
createModificationDeleteContainer
public <O extends Objectable,C extends Containerable> ObjectDelta<O> createModificationDeleteContainer(Class<O> type, String oid, ItemPath propertyPath, C... containerValues) throws SchemaException
- Specified by:
createModificationDeleteContainer
in interfaceDeltaFactory.Object
- Throws:
SchemaException
-
createModificationDeleteContainer
public <O extends Objectable,C extends Containerable> ObjectDelta<O> createModificationDeleteContainer(Class<O> type, String oid, ItemPath containerPath, PrismContainerValue<C>... containerValues)
- Specified by:
createModificationDeleteContainer
in interfaceDeltaFactory.Object
-
createModificationAddContainer
public <O extends Objectable,C extends Containerable> ObjectDelta<O> createModificationAddContainer(Class<O> type, String oid, ItemPath propertyPath, C... containerValues) throws SchemaException
- Specified by:
createModificationAddContainer
in interfaceDeltaFactory.Object
- Throws:
SchemaException
-
createModificationAddContainer
public <O extends Objectable,C extends Containerable> ObjectDelta<O> createModificationAddContainer(Class<O> type, String oid, ItemPath propertyPath, PrismContainerValue<C>... containerValues)
- Specified by:
createModificationAddContainer
in interfaceDeltaFactory.Object
-
createModificationReplaceContainer
public <O extends Objectable,C extends Containerable> ObjectDelta<O> createModificationReplaceContainer(Class<O> type, String oid, ItemPath propertyPath, C... containerValues) throws SchemaException
- Specified by:
createModificationReplaceContainer
in interfaceDeltaFactory.Object
- Throws:
SchemaException
-
createModificationReplaceReference
public <O extends Objectable> ObjectDelta<O> createModificationReplaceReference(Class<O> type, String oid, ItemPath refPath, PrismReferenceValue... refValues)
Convenience method for quick creation of object deltas that replace a single object reference.- Specified by:
createModificationReplaceReference
in interfaceDeltaFactory.Object
-
-