directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1024063 - /directory/shared/branches/shared-config/ldap/src/main/java/org/apache/directory/shared/converter/schema/SchemaElement.java
Date Mon, 18 Oct 2010 23:47:14 GMT
Author: elecharny
Date: Mon Oct 18 23:47:13 2010
New Revision: 1024063

URL: http://svn.apache.org/viewvc?rev=1024063&view=rev
Log:
Changes the storage of Extensions, as we may have more than one extension per schema element

Modified:
    directory/shared/branches/shared-config/ldap/src/main/java/org/apache/directory/shared/converter/schema/SchemaElement.java

Modified: directory/shared/branches/shared-config/ldap/src/main/java/org/apache/directory/shared/converter/schema/SchemaElement.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-config/ldap/src/main/java/org/apache/directory/shared/converter/schema/SchemaElement.java?rev=1024063&r1=1024062&r2=1024063&view=diff
==============================================================================
--- directory/shared/branches/shared-config/ldap/src/main/java/org/apache/directory/shared/converter/schema/SchemaElement.java
(original)
+++ directory/shared/branches/shared-config/ldap/src/main/java/org/apache/directory/shared/converter/schema/SchemaElement.java
Mon Oct 18 23:47:13 2010
@@ -21,6 +21,7 @@ package org.apache.directory.shared.conv
 
 
 import java.util.List;
+import java.util.Map;
 
 import org.apache.directory.shared.ldap.exception.LdapException;
 
@@ -84,14 +85,21 @@ public interface SchemaElement
     /**
      * @return The list of extensions for the schemaElement
      */
-    List<String> getExtensions();
+    Map<String, List<String>> getExtensions();
+
+
+    /**
+     * @param key the Extension key
+     * @return The list of a values for a given extension
+     */
+    List<String> getExtension( String key );
 
 
     /**
      * Set a list of extensions for a schemaElement
      * @param extensions The list of extensions of this schemaElement
      */
-    void setExtensions( List<String> extensions );
+    void setExtensions( Map<String, List<String>> extensions );
 
 
     /**



Mime
View raw message