Class SyncDeltaBuilder
java.lang.Object
org.identityconnectors.framework.common.objects.SyncDeltaBuilder
Builder for
SyncDelta
.-
Constructor Summary
ConstructorDescriptionCreate a newSyncDeltaBuilder
SyncDeltaBuilder
(SyncDelta delta) Creates a newSyncDeltaBuilder
whose values are initialized to those of the delta. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a SyncDelta.Returns the type of the change that occurred.Returns the object that changed.Gets the ObjectClass of the object that deleted.Gets the Uid of the object before the change.getToken()
Returns theSyncToken
of the object that changed.getUid()
Gets the Uid of the object that changed.setDeltaType
(SyncDeltaType type) Sets the type of the change that occurred.setObject
(ConnectorObject object) Sets the object that changed and implicitly sets Uid if object is not null.setObjectClass
(ObjectClass objectClass) Sets the ObjectClass of the object that deleted.setPreviousUid
(Uid previousUid) Sets the Uid of the object before the change.Sets theSyncToken
of the object that changed.Sets the Uid of the object that changed.
-
Constructor Details
-
SyncDeltaBuilder
public SyncDeltaBuilder()Create a newSyncDeltaBuilder
-
SyncDeltaBuilder
Creates a newSyncDeltaBuilder
whose values are initialized to those of the delta.- Parameters:
delta
- The original delta.
-
-
Method Details
-
getToken
Returns theSyncToken
of the object that changed.- Returns:
- the
SyncToken
of the object that changed.
-
setToken
Sets theSyncToken
of the object that changed.- Parameters:
token
- theSyncToken
of the object that changed.
-
getDeltaType
Returns the type of the change that occurred.- Returns:
- The type of change that occurred.
-
setDeltaType
Sets the type of the change that occurred.- Parameters:
type
- The type of change that occurred.
-
getPreviousUid
Gets the Uid of the object before the change.- Returns:
- The Uid of the object before the change.
-
setPreviousUid
Sets the Uid of the object before the change.- Parameters:
previousUid
- The Uid of the object before the change.
-
getObjectClass
Gets the ObjectClass of the object that deleted.- Returns:
- The ObjectClass of the object that deleted.
-
setObjectClass
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
Gets the Uid of the object that changed.- Returns:
- The Uid of the object that changed.
-
setUid
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
Returns the object that changed.- Returns:
- The object that changed. May be null for deletes.
-
setObject
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
Creates a SyncDelta. Prior to calling the following must be specified:Object
(for anything other than delete)Uid
(this is implictly set when callingsetObject(ConnectorObject)
)Token
DeltaType
-