DirectoryObject.getChanges()
The method returns the changes made to the entity.
- Availability
- IBM Security Identity Manager 7.0.
- Synopsis
- directoryObject.getChanges()
- Returns
- An array of change objects. If there are no changes, an empty array is returned. Each element in the array is an AttributeChangeOperation.
- Description
- This method returns the changes made to the entity. These changes are represented by change objects with the following members:
- attr
- String name of the attribute that is being changed.
- op
- An integer that identifies the type of change that is being made. The enumerated values are 1 for add, 2 for replace, and 3 for remove.
- values
- An array of objects that must be either added, removed, or replaced.
The changes are returned as an array of these change objects. If there are no changes, an empty array is returned.
- Usage
changes = directoryObject.getChanges(); for (i = 0; i < changes.length; i++) { name = changes[i].attr; if (changes[i].op == 1) { … } else if (changes[i].op == 2) { … } else { … }};
Parent topic: DirectoryObject