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 2007/08/29 12:40:47 UTC

svn commit: r570747 - /directory/shared/trunk/ldap-constants/src/main/java/org/apache/directory/shared/ldap/constants/SchemaConstants.java

Author: elecharny
Date: Wed Aug 29 03:40:45 2007
New Revision: 570747

URL: http://svn.apache.org/viewvc?rev=570747&view=rev
Log:
o Added constants for "*", "+" and "1.1" special attributes
o Modified the code to use those constants
o Added a workaround for clients who are sending empty parameters
o Correctly handling the "1.1" special attribute mixed with other attributes (=> ignoring it) 

Modified:
    directory/shared/trunk/ldap-constants/src/main/java/org/apache/directory/shared/ldap/constants/SchemaConstants.java

Modified: directory/shared/trunk/ldap-constants/src/main/java/org/apache/directory/shared/ldap/constants/SchemaConstants.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-constants/src/main/java/org/apache/directory/shared/ldap/constants/SchemaConstants.java?rev=570747&r1=570746&r2=570747&view=diff
==============================================================================
--- directory/shared/trunk/ldap-constants/src/main/java/org/apache/directory/shared/ldap/constants/SchemaConstants.java (original)
+++ directory/shared/trunk/ldap-constants/src/main/java/org/apache/directory/shared/ldap/constants/SchemaConstants.java Wed Aug 29 03:40:45 2007
@@ -29,6 +29,16 @@
  */
 public interface SchemaConstants
 {
+    // Special attributes 1.1 , * and + for search operations
+    String NO_ATTRIBUTE = "1.1";
+    String[] NO_ATTRIBUTE_ARRAY = new String[]{ NO_ATTRIBUTE };
+    
+    String ALL_USER_ATTRIBUTES = "*";
+    String[] ALL_USER_ATTRIBUTES_ARRAY = new String[]{ ALL_USER_ATTRIBUTES };
+    
+    String ALL_OPERATIONAL_ATTRIBUTES = "+";
+    String[] ALL_OPERATIONAL_ATTRIBUTES_ARRAY = new String[]{ ALL_OPERATIONAL_ATTRIBUTES };
+    
     // ---- ObjectClasses -----------------------------------------------------
 	// Krb5Principal
     String KRB5_PRINCIPAL_OC = "krb5Principal";