org.identityconnectors.framework.common.objects
Class SyncToken

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

public final class SyncToken
extends Object

Abstract "place-holder" for synchronization. The application must not make any attempt to interpret the value of the token. From the standpoint of the application the token is merely a black-box. The application may only persist the value of the token for use on subsequent synchronization requests.

What this token represents is entirely connector-specific. On some connectors this might be a last-modified value. On others, it might be a unique ID of a log table entry. On others such as JMS, this might be a dummy value since JMS itself keeps track of the state of the sync.


Constructor Summary
SyncToken(Object value)
          Creates a new
 
Method Summary
 boolean equals(Object o)
           
 Object getValue()
          Returns the value for the token.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyncToken

public SyncToken(Object value)
Creates a new

Parameters:
value - May not be null. TODO: define set of allowed value types (currently same as set of allowed attribute values).
Method Detail

getValue

public Object getValue()
Returns the value for the token.

Returns:
The value for the token.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.