mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
15.59.2006 e0945faec05238c33d2c3b4c0d272e52c144ac45
Update the LastMod plugin so that the changes to modifiersName and
modifyTimestamp applied to modify and modify DN operations are marked as
internal modifications.

OpenDS Issue Number: 1106
1 files modified
8 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/plugins/LastModPlugin.java 8 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/plugins/LastModPlugin.java
@@ -237,7 +237,7 @@
    try
    {
      modifyOperation.addModification(new Modification(ModificationType.REPLACE,
                                                       nameAttr));
                                                       nameAttr, true));
    }
    catch (DirectoryException de)
    {
@@ -261,7 +261,7 @@
    try
    {
      modifyOperation.addModification(new Modification(ModificationType.REPLACE,
                                                       timeAttr));
                                                       timeAttr, true));
    }
    catch (DirectoryException de)
    {
@@ -310,7 +310,7 @@
    Attribute nameAttr = new Attribute(modifiersNameType,
                                       OP_ATTR_MODIFIERS_NAME, nameValues);
    modifyDNOperation.addModification(new Modification(ModificationType.REPLACE,
                                                       nameAttr));
                                                       nameAttr, true));
    //  Create the modifyTimestamp attribute.
@@ -322,7 +322,7 @@
    Attribute timeAttr = new Attribute(modifyTimestampType,
                                       OP_ATTR_MODIFY_TIMESTAMP, timeValues);
    modifyDNOperation.addModification(new Modification(ModificationType.REPLACE,
                                                       timeAttr));
                                                       timeAttr, true));
    // We shouldn't ever need to return a non-success result.