directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r995112 - in /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative: AbstractAdministrativePoint.java AutonomousAdministrativePoint.java InnerAdministrativePoint.java SpecificAdministrativePoint.java
Date Wed, 08 Sep 2010 16:06:57 GMT
Author: elecharny
Date: Wed Sep  8 16:06:57 2010
New Revision: 995112

URL: http://svn.apache.org/viewvc?rev=995112&view=rev
Log:
Added a toString() method

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AbstractAdministrativePoint.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AutonomousAdministrativePoint.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/InnerAdministrativePoint.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/SpecificAdministrativePoint.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AbstractAdministrativePoint.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AbstractAdministrativePoint.java?rev=995112&r1=995111&r2=995112&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AbstractAdministrativePoint.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AbstractAdministrativePoint.java
Wed Sep  8 16:06:57 2010
@@ -19,12 +19,14 @@
  */
 package org.apache.directory.server.core.administrative;
 
+
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
 import org.apache.directory.shared.ldap.name.DN;
 import org.apache.directory.shared.ldap.subtree.AdministrativeRole;
 
+
 /**
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -46,6 +48,7 @@ public abstract class AbstractAdministra
     /** The children AdministrativePoints */
     protected Map<String, AdministrativePoint> children;
 
+
     protected AbstractAdministrativePoint( DN dn, String uuid, AdministrativeRole role )
     {
         this.dn = dn;
@@ -54,6 +57,7 @@ public abstract class AbstractAdministra
         this.children = new ConcurrentHashMap<String, AdministrativePoint>();
     }
 
+
     /**
      * {@inheritDoc}
      */
@@ -151,4 +155,19 @@ public abstract class AbstractAdministra
     {
         children.put( child.getUuid(), child );
     }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder();
+
+        sb.append( "Role: '" ).append( role ).append( "', " );
+        sb.append( "DN: '" ).append( dn ).append( "', " );
+        sb.append( "UUID: " ).append( uuid ).append( '\n' );
+
+        return sb.toString();
+    }
 }

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AutonomousAdministrativePoint.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AutonomousAdministrativePoint.java?rev=995112&r1=995111&r2=995112&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AutonomousAdministrativePoint.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/AutonomousAdministrativePoint.java
Wed Sep  8 16:06:57 2010
@@ -19,9 +19,11 @@
  */
 package org.apache.directory.server.core.administrative;
 
+
 import org.apache.directory.shared.ldap.name.DN;
 import org.apache.directory.shared.ldap.subtree.AdministrativeRole;
 
+
 /**
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -47,4 +49,13 @@ public class AutonomousAdministrativePoi
     {
         return true;
     }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String toString()
+    {
+        return "AAP : " + super.toString();
+    }
 }

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/InnerAdministrativePoint.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/InnerAdministrativePoint.java?rev=995112&r1=995111&r2=995112&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/InnerAdministrativePoint.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/InnerAdministrativePoint.java
Wed Sep  8 16:06:57 2010
@@ -19,9 +19,11 @@
  */
 package org.apache.directory.server.core.administrative;
 
+
 import org.apache.directory.shared.ldap.name.DN;
 import org.apache.directory.shared.ldap.subtree.AdministrativeRole;
 
+
 /**
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -57,4 +59,13 @@ public class InnerAdministrativePoint ex
     {
         return parent;
     }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String toString()
+    {
+        return "IAP : " + super.toString();
+    }
 }

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/SpecificAdministrativePoint.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/SpecificAdministrativePoint.java?rev=995112&r1=995111&r2=995112&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/SpecificAdministrativePoint.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/administrative/SpecificAdministrativePoint.java
Wed Sep  8 16:06:57 2010
@@ -19,9 +19,11 @@
  */
 package org.apache.directory.server.core.administrative;
 
+
 import org.apache.directory.shared.ldap.name.DN;
 import org.apache.directory.shared.ldap.subtree.AdministrativeRole;
 
+
 /**
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -57,4 +59,13 @@ public class SpecificAdministrativePoint
     {
         return parent;
     }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String toString()
+    {
+        return "SAP : " + super.toString();
+    }
 }



Mime
View raw message