Class SyncDeltaBuilder

java.lang.Object
org.identityconnectors.framework.common.objects.SyncDeltaBuilder

public final class SyncDeltaBuilder extends Object
Builder for SyncDelta.
  • Constructor Details

    • SyncDeltaBuilder

      public SyncDeltaBuilder()
      Create a new SyncDeltaBuilder
    • SyncDeltaBuilder

      public SyncDeltaBuilder(SyncDelta delta)
      Creates a new SyncDeltaBuilder whose values are initialized to those of the delta.
      Parameters:
      delta - The original delta.
  • Method Details

    • getToken

      public SyncToken getToken()
      Returns the SyncToken of the object that changed.
      Returns:
      the SyncToken of the object that changed.
    • setToken

      public SyncDeltaBuilder setToken(SyncToken token)
      Sets the SyncToken of the object that changed.
      Parameters:
      token - the SyncToken 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 call setObject(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 call setObject(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.
    • build

      public SyncDelta build()
      Creates a SyncDelta. Prior to calling the following must be specified:
      1. Object (for anything other than delete)
      2. Uid (this is implictly set when calling setObject(ConnectorObject))
      3. Token
      4. DeltaType