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

Jean-Noel Rouvignac
21.51.2015 16a7fb0e49b5da15f64ed90a3f6af12d8b3eba96
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrValueHistorical.java
@@ -26,12 +26,10 @@
 */
package org.opends.server.replication.plugin;
import org.opends.server.replication.common.CSN;
import org.forgerock.opendj.ldap.ByteString;
import org.opends.server.replication.common.CSN;
/**
 * Store historical information for an attribute value.
 */
/** Store historical information for an attribute value. */
public class AttrValueHistorical
{
  private ByteString value;
@@ -115,4 +113,22 @@
  {
    return valueUpdateTime != null;
  }
  @Override
  public String toString()
  {
    if (valueUpdateTime != null)
    {
      return valueDeleteTime != null
          // valueUpdateTime and valueDeleteTime should have the same value
          ? valueUpdateTime + ":replace:" + value
          : valueUpdateTime + ":add:" + value;
    }
    else
    {
      return valueDeleteTime != null
          ? valueDeleteTime + ":delete:" + value
          : "????:" + value;
    }
  }
}