directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1418306 - in /directory/apacheds/trunk: interceptors/authz/src/main/java/org/apache/directory/server/core/authz/ interceptors/collective/src/main/java/org/apache/directory/server/core/collective/ interceptors/operational/src/main/java/org/...
Date Fri, 07 Dec 2012 13:31:58 GMT
Author: elecharny
Date: Fri Dec  7 13:31:55 2012
New Revision: 1418306

URL: http://svn.apache.org/viewvc?rev=1418306&view=rev
Log:
Added a pretty printer 

Modified:
    directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
    directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java
    directory/apacheds/trunk/interceptors/collective/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeInterceptor.java
    directory/apacheds/trunk/interceptors/operational/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
    directory/apacheds/trunk/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
    directory/apacheds/trunk/interceptors/subtree/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
    directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/DelayInducingInterceptor.java

Modified: directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java?rev=1418306&r1=1418305&r2=1418306&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
(original)
+++ directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
Fri Dec  7 13:31:55 2012
@@ -1457,12 +1457,24 @@ public class AciAuthorizationInterceptor
      */
     private class AuthorizationFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext searchContext, Entry entry ) throws
Exception
         {
             Dn normName = entry.getDn().apply( schemaManager );
 
             return filter( searchContext, normName, entry );
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "AuthorizationFilter";
+        }
     }
 
 

Modified: directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java?rev=1418306&r1=1418305&r2=1418306&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java
(original)
+++ directory/apacheds/trunk/interceptors/authz/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java
Fri Dec  7 13:31:55 2012
@@ -93,10 +93,22 @@ public class DefaultAuthorizationInterce
      */
     private class DefaultAuthorizationSearchFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext operation, Entry entry ) throws
Exception
         {
             return DefaultAuthorizationInterceptor.this.isSearchable( operation, entry );
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "DefaultAuthorizationSearchFilter";
+        }
     }
 
 

Modified: directory/apacheds/trunk/interceptors/collective/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/collective/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeInterceptor.java?rev=1418306&r1=1418305&r2=1418306&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/collective/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeInterceptor.java
(original)
+++ directory/apacheds/trunk/interceptors/collective/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeInterceptor.java
Fri Dec  7 13:31:55 2012
@@ -85,6 +85,9 @@ public class CollectiveAttributeIntercep
      */
     private class CollectiveAttributeFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext operation, Entry entry ) throws
Exception
         {
             String[] retAttrs = operation.getReturningAttributesString();
@@ -92,6 +95,15 @@ public class CollectiveAttributeIntercep
 
             return true;
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "CollectiveAttributeFilter";
+        }
     }
 
     /** The CollectiveAttribute search filter */

Modified: directory/apacheds/trunk/interceptors/operational/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/operational/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java?rev=1418306&r1=1418305&r2=1418306&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/operational/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
(original)
+++ directory/apacheds/trunk/interceptors/operational/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
Fri Dec  7 13:31:55 2012
@@ -104,6 +104,9 @@ public class OperationalAttributeInterce
      */
     private class OperationalAttributeDenormalizingSearchFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext operation, Entry entry ) throws
Exception
         {
             if ( operation.getReturningAttributesString() == null )
@@ -113,6 +116,15 @@ public class OperationalAttributeInterce
 
             return filterDenormalized( entry );
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "OperationalAttributeDenormalizingSearchFilter";
+        }
     }
 
     /**
@@ -120,11 +132,23 @@ public class OperationalAttributeInterce
      */
     private class OperationalAttributeSearchFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext operation, Entry entry ) throws
Exception
         {
             return operation.getReturningAttributesString() != null
                 || filterOperationalAttributes( entry );
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "OperationalAttributeSearchFilter";
+        }
     }
 
 

Modified: directory/apacheds/trunk/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java?rev=1418306&r1=1418305&r2=1418306&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
(original)
+++ directory/apacheds/trunk/interceptors/schema/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
Fri Dec  7 13:31:55 2012
@@ -1067,12 +1067,24 @@ public class SchemaInterceptor extends B
      */
     private class BinaryAttributeFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext operation, Entry entry ) throws
Exception
         {
             filterBinaryAttributes( entry );
 
             return true;
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "BinaryAttributeFilter";
+        }
     }
 
     /**
@@ -1080,12 +1092,24 @@ public class SchemaInterceptor extends B
      */
     private class TopFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext operation, Entry entry ) throws
Exception
         {
             filterAttributeTypes( operation, entry );
 
             return true;
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "TopFilter";
+        }
     }
 
 

Modified: directory/apacheds/trunk/interceptors/subtree/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/subtree/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java?rev=1418306&r1=1418305&r2=1418306&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/subtree/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
(original)
+++ directory/apacheds/trunk/interceptors/subtree/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
Fri Dec  7 13:31:55 2012
@@ -137,6 +137,9 @@ public class SubentryInterceptor extends
      */
     private class HideSubentriesFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext searchContext, Entry entry ) throws
Exception
         {
             // See if the requested entry is a subentry
@@ -148,6 +151,15 @@ public class SubentryInterceptor extends
             // see if we can use objectclass if present
             return !entry.contains( OBJECT_CLASS_AT, SchemaConstants.SUBENTRY_OC );
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "HideSubentriesFilter";
+        }
     }
 
     /**
@@ -156,6 +168,9 @@ public class SubentryInterceptor extends
      */
     private class HideEntriesFilter implements EntryFilter
     {
+        /**
+         * {@inheritDoc}
+         */
         public boolean accept( SearchingOperationContext searchContext, Entry entry ) throws
Exception
         {
             // See if the requested entry is a subentry
@@ -167,6 +182,15 @@ public class SubentryInterceptor extends
             // see if we can use objectclass if present
             return entry.contains( OBJECT_CLASS_AT, SchemaConstants.SUBENTRY_OC );
         }
+        
+        
+        /**
+         * {@inheritDoc}
+         */
+        public String toString( String tabs )
+        {
+            return tabs + "HideEntriesFilter";
+        }
     }
 
 

Modified: directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/DelayInducingInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/DelayInducingInterceptor.java?rev=1418306&r1=1418305&r2=1418306&view=diff
==============================================================================
--- directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/DelayInducingInterceptor.java
(original)
+++ directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/DelayInducingInterceptor.java
Fri Dec  7 13:31:55 2012
@@ -52,6 +52,9 @@ public class DelayInducingInterceptor ex
         EntryFilteringCursor cursor = next( searchContext );
         cursor.addEntryFilter( new EntryFilter()
         {
+            /**
+             * {@inheritDoc}
+             */
             public boolean accept( SearchingOperationContext operation, Entry result ) throws
Exception
             {
                 if ( delayMillis != null )
@@ -61,6 +64,15 @@ public class DelayInducingInterceptor ex
 
                 return true;
             }
+            
+            
+            /**
+             * {@inheritDoc}
+             */
+            public String toString( String tabs )
+            {
+                return tabs + "DelayInducingFilter";
+            }
         } );
 
         return cursor;



Mime
View raw message