From 75b143a0bff605ca1d48f1fa9571386f95eb0588 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Thu, 15 Jan 2009 07:38:52 +0000
Subject: [PATCH] Fix for issue 3683
---
opends/src/server/org/opends/server/replication/plugin/Historical.java | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/Historical.java b/opends/src/server/org/opends/server/replication/plugin/Historical.java
index cd45bce..89443da 100644
--- a/opends/src/server/org/opends/server/replication/plugin/Historical.java
+++ b/opends/src/server/org/opends/server/replication/plugin/Historical.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2006-2008 Sun Microsystems, Inc.
+ * Copyright 2006-2009 Sun Microsystems, Inc.
*/
package org.opends.server.replication.plugin;
@@ -433,6 +433,26 @@
return builder.toAttribute();
}
+ /**
+ * Indicates if the Entry was renamed or added after the ChangeNumber
+ * that is given as a parameter.
+ *
+ * @param cn The ChangeNumber with which the ADD or Rename date must be
+ * compared.
+ *
+ * @return A boolean indicating if the Entry was renamed or added after
+ * the ChangeNumber that is given as a parameter.
+ */
+ public boolean AddedOrRenamedAfter(ChangeNumber cn)
+ {
+ if (cn.older(ADDDate) || cn.older(MODDNDate))
+ {
+ return true;
+ }
+ else
+ return false;
+ }
+
/**
* read the historical information from the entry attribute and
--
Gitblit v1.10.0