From 76ebd1ad82e2a1fc421519f09c62b948e9376e8a Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Tue, 06 Oct 2009 12:34:32 +0000
Subject: [PATCH] Entry attributes for ECL - Protocol V4

---
 opends/src/server/org/opends/server/replication/service/ReplicationDomain.java |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/service/ReplicationDomain.java b/opends/src/server/org/opends/server/replication/service/ReplicationDomain.java
index c39d447..f70d3ae 100644
--- a/opends/src/server/org/opends/server/replication/service/ReplicationDomain.java
+++ b/opends/src/server/org/opends/server/replication/service/ReplicationDomain.java
@@ -64,6 +64,7 @@
 import java.net.SocketTimeoutException;
 import java.util.ArrayList;
 import java.util.Date;
+import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
 import java.util.SortedMap;
@@ -318,6 +319,9 @@
   private Map<Short, ServerState> replicaStates =
     new HashMap<Short, ServerState>();
 
+  Set<String> cfgEclIncludes = new HashSet<String>();
+  Set<String>    eClIncludes = new HashSet<String>();
+
   /**
    * Returns the {@link ChangeNumberGenerator} that will be used to
    * generate {@link ChangeNumber} for this domain.
@@ -2923,4 +2927,32 @@
     else
       return 0;
   }
+
+  /**
+   * Add an attribute to the list of attributes to include in the ECL.
+   * @param attribute The attribute to add.
+   */
+  synchronized public void addEclInclude(String attribute)
+  {
+    eClIncludes.add(attribute);
+  }
+
+  /**
+   * Get the list of attributes to include in the ECL.
+   * @return The list of attributes.
+   */
+  public Set<String> getEclInclude()
+  {
+    return eClIncludes;
+  }
+
+  /**
+   * Set the list of attributes to include in the ECL.
+   * @param eclIncludes The list of attributes.
+   */
+  protected void setCfgEclInclude(Set<String> eclIncludes)
+  {
+    this.cfgEclIncludes = eclIncludes;
+    this.eClIncludes = eclIncludes;
+  }
 }

--
Gitblit v1.10.0