@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ChangeRecord extends java.lang.Object
fetchEntry()
method on the SyncSource
extension.Modifier and Type | Class and Description |
---|---|
static class |
ChangeRecord.Builder
This class is used to construct ChangeRecord instances.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getChangedAttributes()
Get the set of changed attributes for this change.
|
long |
getChangeNumber()
Get the change number that identifies this particular change.
|
long |
getChangeTime()
Get the time at which the change occurred.
|
com.unboundid.ldap.sdk.ChangeType |
getChangeType()
Get the change type (ADD/MODIFY/MOD-DN/DELETE).
|
CompletionStatus |
getCompletionStatus()
Gets the completion status for this change.
|
com.unboundid.ldap.sdk.Entry |
getFullEntry()
Get the full source entry (if it was set on this ChangeRecord when it was
created).
|
com.unboundid.ldap.sdk.DN |
getIdentifiableInfo()
Get a DN that identifies the entry or record that changed (for example
"accountID=123").
|
java.lang.String |
getModifier()
Get the user account name that made the change.
|
java.lang.Object |
getProperty(java.lang.Object key)
Get the property value (if one exists) for the given key.
|
void |
setCompletionStatus(CompletionStatus status)
This method is used by the Sync Pipe to indicate if the completion status
of a synchronization operation.
|
java.lang.String |
toString() |
public long getChangeNumber()
public com.unboundid.ldap.sdk.ChangeType getChangeType()
null
.public com.unboundid.ldap.sdk.DN getIdentifiableInfo()
public java.lang.String[] getChangedAttributes()
public java.lang.String getModifier()
public long getChangeTime()
public com.unboundid.ldap.sdk.Entry getFullEntry()
null
, but some extensions
may opt to set the entry when the ChangeRecord is constructed in order to
skip the fetchEntry()
phase of processing.null
if it has not been setpublic java.lang.Object getProperty(java.lang.Object key)
key
- the key for a given property to returnnull
if the key is null@InternalUseOnly public void setCompletionStatus(CompletionStatus status)
status
- the completion status for this ChangeRecordpublic CompletionStatus getCompletionStatus()
public java.lang.String toString()
toString
in class java.lang.Object