directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r754513 - /directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java
Date Sat, 14 Mar 2009 20:20:15 GMT
Author: seelmann
Date: Sat Mar 14 20:20:14 2009
New Revision: 754513

URL: http://svn.apache.org/viewvc?rev=754513&view=rev
Log:
If feature 'All Operational Attributes' is supported by the server it is enough to add '+'
to the list of requested attributes.

Modified:
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java?rev=754513&r1=754512&r2=754513&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java
Sat Mar 14 20:20:14 2009
@@ -171,15 +171,18 @@
         raSet.add( ISearch.ALL_USER_ATTRIBUTES );
         if ( initOperationalAttributes )
         {
-            Collection<AttributeTypeDescription> opAtds = SchemaUtils.getOperationalAttributeDescriptions(
entry
-                .getBrowserConnection().getSchema() );
-            Collection<String> atdNames = SchemaUtils.getNames( opAtds );
-            raSet.addAll( atdNames );
             if ( entry.getBrowserConnection().getRootDSE().isFeatureSupported(
                 IRootDSE.FEATURE_ALL_OPERATIONAL_ATTRIBUTES_OID ) )
             {
                 raSet.add( ISearch.ALL_OPERATIONAL_ATTRIBUTES );
             }
+            else
+            {
+                Collection<AttributeTypeDescription> opAtds = SchemaUtils.getOperationalAttributeDescriptions(
entry
+                    .getBrowserConnection().getSchema() );
+                Collection<String> atdNames = SchemaUtils.getNames( opAtds );
+                raSet.addAll( atdNames );
+            }
         }
         if ( entry.isReferral() )
         {



Mime
View raw message