Skip navigation links


org.identityconnectors.framework.common.objects
Class SyncDeltaBuilder

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


public final class SyncDeltaBuilder
extends java.lang.Object

Builder for SyncDelta.


Constructor Summary
SyncDeltaBuilder()
          Create a new SyncDeltaBuilder
SyncDeltaBuilder(SyncDelta delta)
          Creates a new SyncDeltaBuilder whose values are initialized to those of the delta.

 

Method Summary
 SyncDelta build()
          Creates a SyncDelta.
 SyncDeltaType getDeltaType()
          Returns the type of the change that occurred.
 ConnectorObject getObject()
          Returns the object that changed.
 Uid getPreviousUid()
          Gets the Uid of the object before the change.
 SyncToken getToken()
          Returns the SyncToken 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.
 void setPreviousUid(Uid previousUid)
          Sets the Uid of the object before the change.
 SyncDeltaBuilder setToken(SyncToken token)
          Sets the SyncToken of the object that changed.
 SyncDeltaBuilder setUid(Uid uid)
          Sets the Uid of the object that changed.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

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 void setPreviousUid(Uid previousUid)
Sets the Uid of the object before the change.
Parameters:
previousUid - The Uid of the object before the change.

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

Skip navigation links


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.