com.evolveum.midpoint.model.lens
Class ObjectDeltaWaves<O extends ObjectType>

java.lang.Object
  extended by com.evolveum.midpoint.model.lens.ObjectDeltaWaves<O>
All Implemented Interfaces:
DebugDumpable, Dumpable, java.io.Serializable, java.lang.Iterable<ObjectDelta<O>>, java.util.Collection<ObjectDelta<O>>, java.util.List<ObjectDelta<O>>

public class ObjectDeltaWaves<O extends ObjectType>
extends java.lang.Object
implements java.util.List<ObjectDelta<O>>, Dumpable, DebugDumpable, java.io.Serializable

Author:
semancik
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
 
Constructor Summary
ObjectDeltaWaves()
           
 
Method Summary
 void add(int index, ObjectDelta<O> element)
           
 boolean add(ObjectDelta<O> e)
           
 boolean addAll(java.util.Collection<? extends ObjectDelta<O>> c)
           
 boolean addAll(int index, java.util.Collection<? extends ObjectDelta<O>> c)
           
 void adopt(PrismContext prismContext)
           
 void checkConsistence(boolean requireOid, java.lang.String shortDesc)
           
 void clear()
           
 ObjectDeltaWaves<O> clone()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
protected  void copyValues(ObjectDeltaWaves<O> clone)
           
 java.lang.String debugDump()
          Show the content of the object intended for diagnostics by system administrator.
 java.lang.String debugDump(int indent)
           
 java.lang.String debugDump(int indent, boolean showTriples)
           
 java.lang.String dump()
          Show the content of the object intended for diagnostics by developer.
 java.lang.String dump(boolean showTriples)
           
 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(java.lang.Object o)
           
 boolean isEmpty()
           
 java.util.Iterator<ObjectDelta<O>> iterator()
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator<ObjectDelta<O>> listIterator()
           
 java.util.ListIterator<ObjectDelta<O>> listIterator(int index)
           
 void normalize()
           
 ObjectDelta<O> remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean retainAll(java.util.Collection<?> c)
           
 ObjectDelta<O> set(int index, ObjectDelta<O> element)
           
 void setOid(java.lang.String oid)
           
 int size()
           
 java.util.List<ObjectDelta<O>> subList(int fromIndex, int toIndex)
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

ObjectDeltaWaves

public ObjectDeltaWaves()
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(java.lang.String oid)

checkConsistence

public void checkConsistence(boolean requireOid,
                             java.lang.String shortDesc)

normalize

public void normalize()

clone

public ObjectDeltaWaves<O> clone()
Overrides:
clone in class java.lang.Object

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 interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
size in interface java.util.List<ObjectDelta<O extends ObjectType>>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
isEmpty in interface java.util.List<ObjectDelta<O extends ObjectType>>

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
contains in interface java.util.List<ObjectDelta<O extends ObjectType>>

iterator

public java.util.Iterator<ObjectDelta<O>> iterator()
Specified by:
iterator in interface java.lang.Iterable<ObjectDelta<O extends ObjectType>>
Specified by:
iterator in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
iterator in interface java.util.List<ObjectDelta<O extends ObjectType>>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
toArray in interface java.util.List<ObjectDelta<O extends ObjectType>>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
toArray in interface java.util.List<ObjectDelta<O extends ObjectType>>

add

public boolean add(ObjectDelta<O> e)
Specified by:
add in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
add in interface java.util.List<ObjectDelta<O extends ObjectType>>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
remove in interface java.util.List<ObjectDelta<O extends ObjectType>>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
containsAll in interface java.util.List<ObjectDelta<O extends ObjectType>>

addAll

public boolean addAll(java.util.Collection<? extends ObjectDelta<O>> c)
Specified by:
addAll in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
addAll in interface java.util.List<ObjectDelta<O extends ObjectType>>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends ObjectDelta<O>> c)
Specified by:
addAll in interface java.util.List<ObjectDelta<O extends ObjectType>>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
removeAll in interface java.util.List<ObjectDelta<O extends ObjectType>>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
retainAll in interface java.util.List<ObjectDelta<O extends ObjectType>>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<ObjectDelta<O extends ObjectType>>
Specified by:
clear in interface java.util.List<ObjectDelta<O extends ObjectType>>

get

public ObjectDelta<O> get(int index)
Specified by:
get in interface java.util.List<ObjectDelta<O extends ObjectType>>

set

public ObjectDelta<O> set(int index,
                          ObjectDelta<O> element)
Specified by:
set in interface java.util.List<ObjectDelta<O extends ObjectType>>

add

public void add(int index,
                ObjectDelta<O> element)
Specified by:
add in interface java.util.List<ObjectDelta<O extends ObjectType>>

remove

public ObjectDelta<O> remove(int index)
Specified by:
remove in interface java.util.List<ObjectDelta<O extends ObjectType>>

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List<ObjectDelta<O extends ObjectType>>

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List<ObjectDelta<O extends ObjectType>>

listIterator

public java.util.ListIterator<ObjectDelta<O>> listIterator()
Specified by:
listIterator in interface java.util.List<ObjectDelta<O extends ObjectType>>

listIterator

public java.util.ListIterator<ObjectDelta<O>> listIterator(int index)
Specified by:
listIterator in interface java.util.List<ObjectDelta<O extends ObjectType>>

subList

public java.util.List<ObjectDelta<O>> subList(int fromIndex,
                                              int toIndex)
Specified by:
subList in interface java.util.List<ObjectDelta<O extends ObjectType>>

debugDump

public java.lang.String debugDump()
Description copied from interface: DebugDumpable
Show the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.

Specified by:
debugDump in interface DebugDumpable
Returns:
content of the object intended for diagnostics by system administrator.

dump

public java.lang.String dump()
Description copied from interface: Dumpable
Show the content of the object intended for diagnostics by developer. The content may be multi-line, in case of hierarchical objects it may be intended. The use of this method may not be efficient. It is not supposed to be used in normal operation. However, it is very useful in tests or in case of dumping objects in severe error situations.

Specified by:
dump in interface Dumpable
Returns:
content of the object intended for diagnostics.

dump

public java.lang.String dump(boolean showTriples)

debugDump

public java.lang.String debugDump(int indent)
Specified by:
debugDump in interface DebugDumpable

debugDump

public java.lang.String debugDump(int indent,
                                  boolean showTriples)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 evolveum. All Rights Reserved.