directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1545952 - /directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/SchemaService.java
Date Wed, 27 Nov 2013 07:28:26 GMT
Author: seelmann
Date: Wed Nov 27 07:28:25 2013
New Revision: 1545952

URL: http://svn.apache.org/r1545952
Log:
Use new SchemaObjectRenderer

Modified:
    directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/SchemaService.java

Modified: directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/SchemaService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/SchemaService.java?rev=1545952&r1=1545951&r2=1545952&view=diff
==============================================================================
--- directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/SchemaService.java
(original)
+++ directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/SchemaService.java
Wed Nov 27 07:28:25 2013
@@ -37,6 +37,7 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.schema.Normalizer;
 import org.apache.directory.api.ldap.model.schema.ObjectClass;
 import org.apache.directory.api.ldap.model.schema.SchemaManager;
+import org.apache.directory.api.ldap.model.schema.SchemaObjectRenderer;
 import org.apache.directory.api.ldap.model.schema.SchemaUtils;
 import org.apache.directory.api.ldap.model.schema.SyntaxChecker;
 import org.apache.directory.api.ldap.model.schema.registries.NormalizerRegistry;
@@ -116,7 +117,7 @@ public class SchemaService
 
         for ( ObjectClass objectClass : schemaManager.getObjectClassRegistry() )
         {
-            attr.add( SchemaUtils.render( objectClass ).toString() );
+            attr.add( SchemaObjectRenderer.SUBSCHEMA_SUBENTRY_RENDERER.render( objectClass
) );
         }
 
         return attr;
@@ -130,7 +131,7 @@ public class SchemaService
 
         for ( AttributeType attributeType : schemaManager.getAttributeTypeRegistry() )
         {
-            attr.add( SchemaUtils.render( attributeType ).toString() );
+            attr.add( SchemaObjectRenderer.SUBSCHEMA_SUBENTRY_RENDERER.render( attributeType
) );
         }
 
         return attr;



Mime
View raw message