Class ObjectDeltaWaves<O extends ObjectType>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.ObjectDeltaWaves<O>
-
- All Implemented Interfaces:
DebugDumpable
,Serializable
,Iterable<ObjectDelta<O>>
,Collection<ObjectDelta<O>>
,List<ObjectDelta<O>>
public class ObjectDeltaWaves<O extends ObjectType> extends Object implements List<ObjectDelta<O>>, DebugDumpable, Serializable
- Author:
- semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ObjectDeltaWaves()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, ObjectDelta<O> element)
boolean
add(ObjectDelta<O> e)
boolean
addAll(int index, Collection<? extends ObjectDelta<O>> c)
boolean
addAll(Collection<? extends ObjectDelta<O>> c)
void
adopt(PrismContext prismContext)
void
checkConsistence(boolean requireOid, String shortDesc)
void
checkEncrypted(String shortDesc)
void
clear()
ObjectDeltaWaves<O>
clone()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
protected void
copyValues(ObjectDeltaWaves<O> clone)
String
debugDump(int indent)
String
debugDump(int indent, boolean showTriples)
void
deleteDeltas()
String
dump(boolean showTriples)
static <O extends ObjectType>
ObjectDeltaWaves<O>fromObjectDeltaWavesType(ObjectDeltaWavesType secondaryDeltas, PrismContext prismContext)
ObjectDelta<O>
get(int index)
ObjectDelta<O>
getMergedDeltas()
Get merged deltas from all the waves.ObjectDelta<O>
getMergedDeltas(ObjectDelta<O> initialDelta, int maxWave)
Get merged deltas from the waves up to maxWave (including).int
indexOf(Object o)
boolean
isEmpty()
Iterator<ObjectDelta<O>>
iterator()
int
lastIndexOf(Object o)
ListIterator<ObjectDelta<O>>
listIterator()
ListIterator<ObjectDelta<O>>
listIterator(int index)
void
normalize()
ObjectDelta<O>
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
ObjectDelta<O>
set(int index, ObjectDelta<O> element)
void
setOid(String oid)
int
size()
List<ObjectDelta<O>>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<T> T[]
toArray(T[] a)
ObjectDeltaWavesType
toObjectDeltaWavesType()
String
toString()
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
getMergedDeltas
public ObjectDelta<O> getMergedDeltas() throws SchemaException
Get merged deltas from all the waves.- Throws:
SchemaException
-
getMergedDeltas
public ObjectDelta<O> getMergedDeltas(ObjectDelta<O> initialDelta, int maxWave) throws SchemaException
Get merged deltas from the waves up to maxWave (including). Optional initial delta may be supplied. Negative maxWave means to merge all available waves.- Throws:
SchemaException
-
setOid
public void setOid(String oid)
-
checkConsistence
public void checkConsistence(boolean requireOid, String shortDesc)
-
normalize
public void normalize()
-
clone
public ObjectDeltaWaves<O> clone()
-
copyValues
protected void copyValues(ObjectDeltaWaves<O> clone)
-
adopt
public void adopt(PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
size
public int size()
- Specified by:
size
in interfaceCollection<O extends ObjectType>
- Specified by:
size
in interfaceList<O extends ObjectType>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<O extends ObjectType>
- Specified by:
isEmpty
in interfaceList<O extends ObjectType>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<O extends ObjectType>
- Specified by:
contains
in interfaceList<O extends ObjectType>
-
iterator
public Iterator<ObjectDelta<O>> iterator()
- Specified by:
iterator
in interfaceCollection<O extends ObjectType>
- Specified by:
iterator
in interfaceIterable<O extends ObjectType>
- Specified by:
iterator
in interfaceList<O extends ObjectType>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<O extends ObjectType>
- Specified by:
toArray
in interfaceList<O extends ObjectType>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceCollection<O extends ObjectType>
- Specified by:
toArray
in interfaceList<O extends ObjectType>
-
add
public boolean add(ObjectDelta<O> e)
- Specified by:
add
in interfaceCollection<O extends ObjectType>
- Specified by:
add
in interfaceList<O extends ObjectType>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<O extends ObjectType>
- Specified by:
remove
in interfaceList<O extends ObjectType>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<O extends ObjectType>
- Specified by:
containsAll
in interfaceList<O extends ObjectType>
-
addAll
public boolean addAll(Collection<? extends ObjectDelta<O>> c)
- Specified by:
addAll
in interfaceCollection<O extends ObjectType>
- Specified by:
addAll
in interfaceList<O extends ObjectType>
-
addAll
public boolean addAll(int index, Collection<? extends ObjectDelta<O>> c)
- Specified by:
addAll
in interfaceList<O extends ObjectType>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<O extends ObjectType>
- Specified by:
removeAll
in interfaceList<O extends ObjectType>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<O extends ObjectType>
- Specified by:
retainAll
in interfaceList<O extends ObjectType>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<O extends ObjectType>
- Specified by:
clear
in interfaceList<O extends ObjectType>
-
get
public ObjectDelta<O> get(int index)
- Specified by:
get
in interfaceList<O extends ObjectType>
-
set
public ObjectDelta<O> set(int index, ObjectDelta<O> element)
- Specified by:
set
in interfaceList<O extends ObjectType>
-
add
public void add(int index, ObjectDelta<O> element)
- Specified by:
add
in interfaceList<O extends ObjectType>
-
remove
public ObjectDelta<O> remove(int index)
- Specified by:
remove
in interfaceList<O extends ObjectType>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interfaceList<O extends ObjectType>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<O extends ObjectType>
-
listIterator
public ListIterator<ObjectDelta<O>> listIterator()
- Specified by:
listIterator
in interfaceList<O extends ObjectType>
-
listIterator
public ListIterator<ObjectDelta<O>> listIterator(int index)
- Specified by:
listIterator
in interfaceList<O extends ObjectType>
-
subList
public List<ObjectDelta<O>> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceList<O extends ObjectType>
-
dump
public String dump(boolean showTriples)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
debugDump
public String debugDump(int indent, boolean showTriples)
-
toObjectDeltaWavesType
public ObjectDeltaWavesType toObjectDeltaWavesType() throws SchemaException
- Throws:
SchemaException
-
fromObjectDeltaWavesType
public static <O extends ObjectType> ObjectDeltaWaves<O> fromObjectDeltaWavesType(ObjectDeltaWavesType secondaryDeltas, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
checkEncrypted
public void checkEncrypted(String shortDesc)
-
deleteDeltas
public void deleteDeltas()
-
-