Class SyncDeltaBuilder
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.SyncDeltaBuilder
-
-
Constructor Summary
Constructors Constructor Description SyncDeltaBuilder()
Create a newSyncDeltaBuilder
SyncDeltaBuilder(SyncDelta delta)
Creates a newSyncDeltaBuilder
whose values are initialized to those of the delta.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncDelta
build()
Creates a SyncDelta.SyncDeltaType
getDeltaType()
Returns the type of the change that occurred.ConnectorObject
getObject()
Returns the object that changed.ObjectClass
getObjectClass()
Gets the ObjectClass of the object that deleted.Uid
getPreviousUid()
Gets the Uid of the object before the change.SyncToken
getToken()
Returns theSyncToken
of the object that changed.Uid
getUid()
Gets the Uid of the object that changed.SyncDeltaBuilder
setDeltaType(SyncDeltaType type)
Sets the type of the change that occurred.SyncDeltaBuilder
setObject(ConnectorObject object)
Sets the object that changed and implicitly sets Uid if object is not null.SyncDeltaBuilder
setObjectClass(ObjectClass objectClass)
Sets the ObjectClass of the object that deleted.SyncDeltaBuilder
setPreviousUid(Uid previousUid)
Sets the Uid of the object before the change.SyncDeltaBuilder
setToken(SyncToken token)
Sets theSyncToken
of the object that changed.SyncDeltaBuilder
setUid(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 newSyncDeltaBuilder
whose values are initialized to those of the delta.- Parameters:
delta
- The original delta.
-
-
Method Detail
-
getToken
public SyncToken getToken()
Returns theSyncToken
of the object that changed.- Returns:
- the
SyncToken
of the object that changed.
-
setToken
public SyncDeltaBuilder setToken(SyncToken token)
Sets theSyncToken
of the object that changed.- Parameters:
token
- theSyncToken
of 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.
-
-