RoleAssignmentObject.getChanges()
The method returns the changes made to an entity.
- Availability
IBM® Security Identity Manager 6.x
IBM Security Identity Manager 7.0.
- Synopsis
RoleAssignmentObject.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 can 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 = assignmentObject.getChanges(); for (i = 0; i < changes.length; i++) { name = changes[i].attr; if (changes[i].op == 1) { … } else if (changes[i].op == 2) { … } else { … } };