From f4a5896f6a012775fb3fb23f6cf4cc4660a28de9 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 04 Apr 2013 07:48:30 +0000
Subject: [PATCH] SchemaConstants.java: Added NO_ATTRIBUTES for OID "1.1".

---
 opends/src/server/org/opends/server/schema/SchemaConstants.java |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/schema/SchemaConstants.java b/opends/src/server/org/opends/server/schema/SchemaConstants.java
index 8decf70..8435ca6 100644
--- a/opends/src/server/org/opends/server/schema/SchemaConstants.java
+++ b/opends/src/server/org/opends/server/schema/SchemaConstants.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
- *      Portions copyright 2011 ForgeRock AS
+ *      Portions copyright 2011-2013 ForgeRock AS
  */
 package org.opends.server.schema;
 
@@ -32,10 +32,34 @@
 /**
  * This class defines a number of constants used by Directory Server schema
  * elements, like matching rules, syntaxes, attribute types, and objectclasses.
+ * <p>
+ * Here is a definition for the prefixes:
+ * <dl>
+ * <dt>AMR</dt>
+ * <dd>Approximate Matching Rule</dd>
+ * <dt>EMR</dt>
+ * <dd>Equality Matching Rule</dd>
+ * <dt>OMR</dt>
+ * <dd>Ordering Matching Rule</dd>
+ * <dt>SMR</dt>
+ * <dd>Syntax Matching Rule</dd>
+ * </dl>
+ * </p>
  */
 public class SchemaConstants
 {
   /**
+   * RFC 2251, Section 4.5.1: 'If the client does not want any attributes
+   * returned, it can specify a list containing only the attribute with OID
+   * "1.1". This OID was chosen arbitrarily and does not correspond to any
+   * attribute in use.'
+   *
+   * @see <a href="http://www.rfc-editor.org/rfc/rfc2251.txt"
+   * >RFC 2251 for LDAP v3</a>
+   */
+  public static final String NO_ATTRIBUTES = "1.1";
+
+  /**
    * The IANA-assigned base OID for all things under the OpenDS umbrella.
    */
   private static final String OID_OPENDS_BASE = "1.3.6.1.4.1.26027";

--
Gitblit v1.10.0