Class SyncDeltaBuilder
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.SyncDeltaBuilder
-
public final class SyncDeltaBuilder extends java.lang.ObjectBuilder forSyncDelta.
-
-
Constructor Summary
Constructors Constructor Description SyncDeltaBuilder()Create a newSyncDeltaBuilderSyncDeltaBuilder(SyncDelta delta)Creates a newSyncDeltaBuilderwhose values are initialized to those of the delta.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncDeltabuild()Creates a SyncDelta.SyncDeltaTypegetDeltaType()Returns the type of the change that occurred.ConnectorObjectgetObject()Returns the object that changed.ObjectClassgetObjectClass()Gets the ObjectClass of the object that deleted.UidgetPreviousUid()Gets the Uid of the object before the change.SyncTokengetToken()Returns theSyncTokenof the object that changed.UidgetUid()Gets the Uid of the object that changed.SyncDeltaBuildersetDeltaType(SyncDeltaType type)Sets the type of the change that occurred.SyncDeltaBuildersetObject(ConnectorObject object)Sets the object that changed and implicitly sets Uid if object is not null.SyncDeltaBuildersetObjectClass(ObjectClass objectClass)Sets the ObjectClass of the object that deleted.SyncDeltaBuildersetPreviousUid(Uid previousUid)Sets the Uid of the object before the change.SyncDeltaBuildersetToken(SyncToken token)Sets theSyncTokenof the object that changed.SyncDeltaBuildersetUid(Uid uid)Sets the Uid of the object that changed.
-
-
-
Constructor Detail
-
SyncDeltaBuilder
public SyncDeltaBuilder()
Create a newSyncDeltaBuilder
-
SyncDeltaBuilder
public SyncDeltaBuilder(SyncDelta delta)
Creates a newSyncDeltaBuilderwhose values are initialized to those of the delta.- Parameters:
delta- The original delta.
-
-
Method Detail
-
getToken
public SyncToken getToken()
Returns theSyncTokenof the object that changed.- Returns:
- the
SyncTokenof the object that changed.
-
setToken
public SyncDeltaBuilder setToken(SyncToken token)
Sets theSyncTokenof the object that changed.- Parameters:
token- theSyncTokenof the object that changed.
-
getDeltaType
public SyncDeltaType getDeltaType()
Returns the type of the change that occurred.- Returns:
- The type of change that occurred.
-
setDeltaType
public SyncDeltaBuilder setDeltaType(SyncDeltaType type)
Sets the type of the change that occurred.- Parameters:
type- The type of change that occurred.
-
getPreviousUid
public Uid getPreviousUid()
Gets the Uid of the object before the change.- Returns:
- The Uid of the object before the change.
-
setPreviousUid
public SyncDeltaBuilder setPreviousUid(Uid previousUid)
Sets the Uid of the object before the change.- Parameters:
previousUid- The Uid of the object before the change.
-
getObjectClass
public ObjectClass getObjectClass()
Gets the ObjectClass of the object that deleted.- Returns:
- The ObjectClass of the object that deleted.
-
setObjectClass
public SyncDeltaBuilder 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 SyncDeltaBuilder 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 SyncDeltaBuilder 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.
-
-