directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r504954 - /directory/apacheds/trunk/core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/AttributeTypeLiteral.java
Date Thu, 08 Feb 2007 16:50:29 GMT
Author: elecharny
Date: Thu Feb  8 08:50:28 2007
New Revision: 504954

URL: http://svn.apache.org/viewvc?view=rev&rev=504954
Log:
Added a way to modify the OID. It is helpfull when using this class to edit an AttributeType
(in LdapStudio, for instance).

Modified:
    directory/apacheds/trunk/core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/AttributeTypeLiteral.java

Modified: directory/apacheds/trunk/core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/AttributeTypeLiteral.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/AttributeTypeLiteral.java?view=diff&rev=504954&r1=504953&r2=504954
==============================================================================
--- directory/apacheds/trunk/core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/AttributeTypeLiteral.java
(original)
+++ directory/apacheds/trunk/core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/AttributeTypeLiteral.java
Thu Feb  8 08:50:28 2007
@@ -38,7 +38,7 @@
     private boolean collective = false;
     private boolean noUserModification = false;
 
-    private final String oid;
+    private String oid;
     private String description;
     private String superior;
     private String equality;
@@ -258,5 +258,13 @@
     public String toString()
     {
         return getOid();
+    }
+
+    /**
+     * Method used to modify the AttributeType OID if it is edited.
+     */
+    public void setOid( String oid )
+    {
+        this.oid = oid;
     }
 }



Mime
View raw message