Class LiveSyncDeltaBuilder
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.LiveSyncDeltaBuilder
-
public final class LiveSyncDeltaBuilder extends Object
Builder forLiveSyncDelta.
-
-
Constructor Summary
Constructors Constructor Description LiveSyncDeltaBuilder()Create a newLiveSyncDeltaBuilderLiveSyncDeltaBuilder(LiveSyncDelta delta)Creates a newLiveSyncDeltaBuilderwhose values are initialized to those of the delta.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LiveSyncDeltabuild()Creates a LiveSyncDelta.ConnectorObjectgetObject()Returns the object that changed.ObjectClassgetObjectClass()Gets the ObjectClass of the object that deleted.UidgetUid()Gets the Uid of the object that changed.LiveSyncDeltaBuildersetObject(ConnectorObject object)Sets the object that changed and implicitly sets Uid if object is not null.LiveSyncDeltaBuildersetObjectClass(ObjectClass objectClass)Sets the ObjectClass of the object that deleted.LiveSyncDeltaBuildersetUid(Uid uid)Sets the Uid of the object that changed.
-
-
-
Constructor Detail
-
LiveSyncDeltaBuilder
public LiveSyncDeltaBuilder()
Create a newLiveSyncDeltaBuilder
-
LiveSyncDeltaBuilder
public LiveSyncDeltaBuilder(LiveSyncDelta delta)
Creates a newLiveSyncDeltaBuilderwhose values are initialized to those of the delta.- Parameters:
delta- the original delta.
-
-
Method Detail
-
getObjectClass
public ObjectClass getObjectClass()
Gets the ObjectClass of the object that deleted.- Returns:
- The ObjectClass of the object that deleted.
-
setObjectClass
public LiveSyncDeltaBuilder setObjectClass(ObjectClass objectClass)
Sets the ObjectClass of the object that deleted. Note that this is implicitly set when you callsetObject(ConnectorObject).- Parameters:
objectClass- The ObjectClass of the object that changed.
-
getUid
public Uid getUid()
Gets the Uid of the object that changed.- Returns:
- The Uid of the object that changed.
-
setUid
public LiveSyncDeltaBuilder setUid(Uid uid)
Sets the Uid of the object that changed. Note that this is implicitly set when you callsetObject(ConnectorObject).- Parameters:
uid- The Uid of the object that changed.
-
getObject
public ConnectorObject getObject()
Returns the object that changed.- Returns:
- The object that changed. May be null for deletes.
-
setObject
public LiveSyncDeltaBuilder setObject(ConnectorObject object)
Sets the object that changed and implicitly sets Uid if object is not null.- Parameters:
object- The object that changed. May be null for deletes.
-
build
public LiveSyncDelta build()
Creates a LiveSyncDelta. Prior to calling the following must be specified:ObjectUid(this is implictly set when callingsetObject(ConnectorObject))
-
-