Class SyncDeltaBuilder


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

      • 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 Detail

      • 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.
      • 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.