directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r527113 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/LookupServiceContext.java
Date Tue, 10 Apr 2007 12:54:28 GMT
Author: elecharny
Date: Tue Apr 10 05:54:27 2007
New Revision: 527113

URL: http://svn.apache.org/viewvc?view=rev&rev=527113
Log:
Removed the dn member inheritated from the super class

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/LookupServiceContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/LookupServiceContext.java?view=diff&rev=527113&r1=527112&r2=527113
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/LookupServiceContext.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/LookupServiceContext.java
Tue Apr 10 05:54:27 2007
@@ -35,9 +35,6 @@
  */
 public class LookupServiceContext  extends AbstractServiceContext
 {
-    /** The entry DN */
-    private LdapDN dn;
-    
     /** The list of attributes id to return */
     private List<String> attrsId;
     
@@ -51,6 +48,7 @@
      */
     public LookupServiceContext()
     {
+    	super();
     }
 
     /**
@@ -60,7 +58,7 @@
      */
     public LookupServiceContext( LdapDN dn )
     {
-        this.dn = dn;
+        super( dn );
     }
 
     /**
@@ -70,6 +68,7 @@
      */
     public LookupServiceContext( String attrsId[] )
     {
+    	super();
         this.attrsId = new ArrayList<String>();
         attrsOid = new ArrayList<String>();
         setAttrsId( attrsId );
@@ -82,31 +81,13 @@
      */
     public LookupServiceContext( LdapDN dn, String attrsId[] )
     {
-        this.dn = dn;
+        super( dn );
         this.attrsId = new ArrayList<String>();
         attrsOid = new ArrayList<String>();
         setAttrsId( attrsId );
     }
 
     /**
-     * @return The entry's DN
-     */
-    public LdapDN getDn()
-    {
-        return dn;
-    }
-    
-    /**
-     * Set the principal's DN.
-     *
-     * @param unbindDn The principal's DN
-     */
-    public void setDn( LdapDN dn )
-    {
-        this.dn = dn;
-    }
-
-    /**
      * @return Get the attribute ids as a String array
      */
     public String[] getAttrsIdArray()
@@ -231,6 +212,6 @@
      */
     public String toString()
     {
-        return "LookupContext for DN '" + dn.getUpName() + "'" + ( ( attrsId != null ) ?
", attributes : <" + StringTools.listToString( attrsId ) + ">" : "" );
+        return "LookupContext for DN '" + getDn().getUpName() + "'" + ( ( attrsId != null
) ? ", attributes : <" + StringTools.listToString( attrsId ) + ">" : "" );
     }
 }



Mime
View raw message