You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2015/04/05 20:25:49 UTC

svn commit: r1671414 - /directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/model/OlcDatabaseConfig.java

Author: elecharny
Date: Sun Apr  5 18:25:48 2015
New Revision: 1671414

URL: http://svn.apache.org/r1671414
Log:
Added the missing attribute in 2.4.40 : olcDisabled and olcExtraAttrs

Modified:
    directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/model/OlcDatabaseConfig.java

Modified: directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/model/OlcDatabaseConfig.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/model/OlcDatabaseConfig.java?rev=1671414&r1=1671413&r2=1671414&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/model/OlcDatabaseConfig.java (original)
+++ directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/model/OlcDatabaseConfig.java Sun Apr  5 18:25:48 2015
@@ -70,6 +70,18 @@ public class OlcDatabaseConfig extends O
     private Boolean olcAddContentAcl;
 
     /**
+     * Field for the 'olcDisabled' attribute. (Added in OpenLDAP 2.4.36)
+     */
+    @ConfigurationElement(attributeType = "olcDisabled")
+    private Boolean olcDisabled;
+
+    /**
+     * Field for the 'olcExtraAttrs' attribute. (Added in OpenLDAP 2.4.22)
+     */
+    @ConfigurationElement(attributeType = "olcExtraAttrs")
+    private List<String> olcExtraAttrs;
+
+    /**
      * Field for the 'olcHidden' attribute.
      */
     @ConfigurationElement(attributeType = "olcHidden")
@@ -208,7 +220,7 @@ public class OlcDatabaseConfig extends O
     private List<String> olcSyncrepl = new ArrayList<String>();
 
     /**
-     * Field for the 'olcSyncUseSubentry' attribute.
+     * Field for the 'olcSyncUseSubentry' attribute. (Added in OpenLDAP 2.4.20)
      */
     @ConfigurationElement(attributeType = "olcSyncUseSubentry")
     private Boolean olcSyncUseSubentry;
@@ -245,6 +257,18 @@ public class OlcDatabaseConfig extends O
 
 
     /**
+     * @param strings The olcExtraAttrs to add
+     */
+    public void addOlcExtraAttrs( String... strings )
+    {
+        for ( String string : strings )
+        {
+            olcExtraAttrs.add( string );
+        }
+    }
+
+
+    /**
      * @param strings
      */
     public void addOlcLimits( String... strings )
@@ -370,6 +394,12 @@ public class OlcDatabaseConfig extends O
     }
 
 
+    public void clearOlcExtraAttrs()
+    {
+        olcExtraAttrs.clear();
+    }
+
+
     public void clearOlcLimits()
     {
         olcLimits.clear();
@@ -458,6 +488,24 @@ public class OlcDatabaseConfig extends O
 
 
     /**
+     * @return the olcDisabled
+     */
+    public Boolean getOlcDisabled()
+    {
+        return olcDisabled;
+    }
+
+
+    /**
+     * @return the olcExtraAttrs
+     */
+    public List<String> getOlcExtraAttrs()
+    {
+        return olcExtraAttrs;
+    }
+
+
+    /**
      * @return the olcHidden
      */
     public Boolean getOlcHidden()
@@ -773,6 +821,24 @@ public class OlcDatabaseConfig extends O
     }
 
 
+    /**
+     * @param oldDisabled the olcDisabled to set
+     */
+    public void setOlcDisabled( Boolean olcDisabled )
+    {
+        this.olcDisabled = olcDisabled;
+    }
+
+
+    /**
+     * @param olcExtraAttrs the olcExtraAttrs to set
+     */
+    public void setOlcExtraAttrs( List<String> olcExtraAttrs )
+    {
+        this.olcExtraAttrs = olcExtraAttrs;
+    }
+
+
     /**
      * @param olcHidden the olcHidden to set
      */