directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r526169 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java
Date Fri, 06 Apr 2007 13:59:27 GMT
Author: elecharny
Date: Fri Apr  6 06:59:26 2007
New Revision: 526169

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

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java?view=diff&rev=526169&r1=526168&r2=526169
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java
Fri Apr  6 06:59:26 2007
@@ -34,6 +34,16 @@
     private LdapDN unbindDn;
 
     /**
+     * Creates a new instance of UnbindServiceContext.
+     *
+     * @param unbindDn The principal DN to unbind
+     */
+    public UnbindServiceContext( LdapDN unbindDn )
+    {
+        this.unbindDn = unbindDn;
+    }
+    
+    /**
      * @return The Principal's DN
      */
     public LdapDN getUnbindDn()
@@ -49,5 +59,13 @@
     public void setBindDn( LdapDN unbindDn )
     {
         this.unbindDn = unbindDn;
+    }
+    
+    /**
+     * @see Object#toString()
+     */
+    public String toString()
+    {
+        return "UnbindContext for DN '" + unbindDn.getUpName() + "'";
     }
 }



Mime
View raw message