You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2006/08/14 00:32:18 UTC

svn commit: r431258 - in /directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions: AttributeType.java MatchingRule.java ObjectClass.java Syntax.java

Author: akarasulu
Date: Sun Aug 13 15:32:16 2006
New Revision: 431258

URL: http://svn.apache.org/viewvc?rev=431258&view=rev
Log:
added ObjectClass description class

Added:
    directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/ObjectClass.java
Modified:
    directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/AttributeType.java
    directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/MatchingRule.java
    directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/Syntax.java

Modified: directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/AttributeType.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/AttributeType.java?rev=431258&r1=431257&r2=431258&view=diff
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/AttributeType.java (original)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/AttributeType.java Sun Aug 13 15:32:16 2006
@@ -129,13 +129,12 @@
  * @see <a
  *      href="http://www.ietf.org/internet-drafts/draft-ietf-ldapbis-models-11.txt">
  *      ldapbis [MODELS]</a>
- * @see DescriptionUtils#getDescription(AttributeType)
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev: 379008 $
  */
 public interface AttributeType extends OidObject
 {
-    public enum Usage { USERAPPLICATIONS, DIRECTORYOPERATION, DISTRIBUTEDOPERATION, DSAOPERATION };
+    public enum Usage { USERAPPLICATIONS, DIRECTORYOPERATION, DISTRIBUTEDOPERATION, DSAOPERATION }
     
     /**
      * Gets whether or not this AttributeType is single-valued.

Modified: directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/MatchingRule.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/MatchingRule.java?rev=431258&r1=431257&r2=431258&view=diff
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/MatchingRule.java (original)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/MatchingRule.java Sun Aug 13 15:32:16 2006
@@ -64,7 +64,6 @@
  * </pre>
  * 
  * @see <a href="http://www.faqs.org/rfcs/rfc4512.html">RFC 4512 Section 4.1.3</a>
- * @see DescriptionUtils#getDescription(MatchingRule)
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */

Added: directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/ObjectClass.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/ObjectClass.java?rev=431258&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/ObjectClass.java (added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/ObjectClass.java Sun Aug 13 15:32:16 2006
@@ -0,0 +1,82 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.directory.server2.schema.descriptions;
+
+
+import java.util.List;
+
+import javax.naming.NamingException;
+
+
+/**
+ * An objectClass definition.
+ * <p>
+ * According to section 4.1.1 of RFC 4512:
+ * </p>
+ * 
+ * <pre>
+ * </pre>
+ * 
+ * @see <a href="http://www.faqs.org/rfcs/rfc4512.html">RFC 4512 Section 4.1.1</a>
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface ObjectClass extends OidObject
+{
+    public enum Type { ABSTRACT, AUXILLARY, STRUCTURAL }
+    
+    /**
+     * Gets the superclasses of this ObjectClass.
+     * 
+     * @return the superclasses
+     * @throws NamingException
+     *             if there is a failure resolving the object
+     */
+    List<ObjectClass> getSuperClasses() throws NamingException;
+
+
+    /**
+     * Gets the type of this ObjectClass as a type safe enum.
+     * 
+     * @return the ObjectClass type as an enum
+     */
+    Type getType();
+
+
+    /**
+     * Gets the AttributeTypes whose attributes must be present within an entry
+     * of this ObjectClass.
+     * 
+     * @return the AttributeTypes of attributes that must be within entries of
+     *         this ObjectClass
+     * @throws NamingException
+     *             if there is a failure resolving the object
+     */
+    List<AttributeType> getMustList() throws NamingException;
+
+
+    /**
+     * Gets the AttributeTypes whose attributes may be present within an entry
+     * of this ObjectClass.
+     * 
+     * @return the AttributeTypes of attributes that may be within entries of
+     *         this ObjectClass
+     * @throws NamingException
+     *             if there is a failure resolving the object
+     */
+    List<AttributeType> getMayList() throws NamingException;
+}
\ No newline at end of file

Modified: directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/Syntax.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/Syntax.java?rev=431258&r1=431257&r2=431258&view=diff
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/Syntax.java (original)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/descriptions/src/main/java/org/apache/directory/server2/schema/descriptions/Syntax.java Sun Aug 13 15:32:16 2006
@@ -32,7 +32,7 @@
  * 4.1.5.  LDAP Syntaxes
 
  *    LDAP Syntaxes of (attribute and assertion) values are described in
- *    terms of ASN.1 [X.680] and, optionally, have an octet string encoding
+ *    terms of ASN.1 [X.6   80] and, optionally, have an octet string encoding
  *    known as the LDAP-specific encoding.  Commonly, the LDAP-specific
  *    encoding is constrained to a string of Unicode [Unicode] characters
  *    in UTF-8 [RFC3629] form.