|
Oracle Virtual Directory Java API Reference 11g Release 1 (11.1.1) E10688-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
com.octetstring.vde.EntryChanges
public class EntryChanges
This class contains one set of changes to a single entry. A change may be an add, modify, delete, or rename. In the case of an add change, the entire changed entry is contained. For modify and delete changes, the distinguished name of the entry is contained. Modify changes will contain an array of EntryChange objects detailing each individual change from the original entry.
| Field Summary | |
|---|---|
static int |
CHANGE_ADDConstant indicating that change is an add operation |
static int |
CHANGE_DELETEConstant indicating that change is a delete operation |
static int |
CHANGE_MODIFYConstant indicating that change is a modify operation |
static int |
CHANGE_RENAMEConstant indicating that change is a rename operation |
| Constructor Summary | |
|---|---|
EntryChanges(byte[] ecBytes)Constructor that reads a set of entry bytes from a byte array |
|
EntryChanges(byte[] ecBytes, int version) |
|
EntryChanges(DirectoryString name, DirectoryString newname, Entry afterChange)Constructor that generates a rename change from old and new DN values. |
|
EntryChanges(DirectoryString name, Entry beforeDelete)Constructor that generates a delete entry change from a DN |
|
EntryChanges(DirectoryString name, EntryChange[] entryChanges, Entry afterChange)Constructor that generates a modification change from a DN and an EntryChange array. |
|
EntryChanges(Entry fullEntry)Constructor that generates an add entry change from a full entry. |
|
| Method Summary | |
|---|---|
byte[] |
getAsByteArray()Retrieve this object as an array of bytes suitable for storage on disk or otherwise serialized/persisted. |
int |
getChangeType()Retrieve the change type of this set of changes |
EntryChange[] |
getEntryChanges()Retrieve the EntryChanges array for modified entries |
Entry |
getFullEntry()Retrieve the Entry object for an added entry |
DirectoryString |
getName()Retrieve the name of a modified or deleted entry |
DirectoryString |
getNewName() |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CHANGE_ADD
public static final int CHANGE_MODIFY
public static final int CHANGE_DELETE
public static final int CHANGE_RENAME
| Constructor Detail |
|---|
public EntryChanges(byte[] ecBytes)
ecBytes - a byte representation of an EntryChanges representation generated by the getAsByteArray method
public EntryChanges(byte[] ecBytes,
int version)
public EntryChanges(Entry fullEntry)
fullEntry - an Entry object that has been added
public EntryChanges(DirectoryString name,
Entry beforeDelete)
name - distinguished name of the deleted entry
public EntryChanges(DirectoryString name,
EntryChange[] entryChanges,
Entry afterChange)
name - distinguished name of the changed entryentryChanges - array of individual changes to the entry
public EntryChanges(DirectoryString name,
DirectoryString newname,
Entry afterChange)
name - distinguished name of the changed entrynewname - new name for the changed entry| Method Detail |
|---|
public int getChangeType()
public EntryChange[] getEntryChanges()
EntryChanges array for modified entriespublic Entry getFullEntry()
Entry object for an added entrypublic DirectoryString getName()
public DirectoryString getNewName()
public byte[] getAsByteArray()
|
Oracle Virtual Directory Java API Reference 11g Release 1 (11.1.1) E10688-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||