directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r526189 - in /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context: EntryServiceContext.java UnbindServiceContext.java
Date Fri, 06 Apr 2007 15:06:06 GMT
Author: elecharny
Date: Fri Apr  6 08:06:04 2007
New Revision: 526189

URL: http://svn.apache.org/viewvc?view=rev&rev=526189
Log:
Added a class for the EntryContext, use din hasEntry() method
Fixed a badly named method in UnbindContext class

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

Added: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EntryServiceContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EntryServiceContext.java?view=auto&rev=526189
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EntryServiceContext.java
(added)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EntryServiceContext.java
Fri Apr  6 08:06:04 2007
@@ -0,0 +1,78 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.server.core.interceptor.context;
+
+import org.apache.directory.shared.ldap.name.LdapDN;
+
+/**
+ * A Entry context used for Interceptors. It contains all the informations
+ * needed for the hasEntry operation, and used by all the interceptors
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class EntryServiceContext implements ServiceContext
+{
+    /** The entry DN */
+    private LdapDN entryDn;
+
+    /**
+     * Creates a new instance of EntryServiceContext.
+     */
+    public EntryServiceContext()
+    {
+    }
+    
+    /**
+     * Creates a new instance of EntryServiceContext.
+     *
+     * @param entryDn The Entry DN to unbind
+     */
+    public EntryServiceContext( LdapDN entryDn )
+    {
+        this.entryDn = entryDn;
+    }
+    
+    /**
+     * @return The Entry DN
+     */
+    public LdapDN getEntryDn()
+    {
+        return entryDn;
+    }
+    
+    /**
+     * Set the Entry DN.
+     *
+     * @param entryDn The Entry DN
+     */
+    public void setEntryDn( LdapDN entryDn )
+    {
+        this.entryDn = entryDn;
+    }
+    
+    /**
+     * @see Object#toString()
+     */
+    public String toString()
+    {
+        return "EntryContext for DN '" + entryDn.getUpName() + "'";
+    }
+}

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=526189&r1=526188&r2=526189
==============================================================================
--- 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 08:06:04 2007
@@ -63,7 +63,7 @@
      *
      * @param unbindDn The principal's DN
      */
-    public void setBindDn( LdapDN unbindDn )
+    public void setUnbindDn( LdapDN unbindDn )
     {
         this.unbindDn = unbindDn;
     }



Mime
View raw message