directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1095943 - in /directory/apacheds/trunk: core-api/src/main/java/org/apache/directory/server/core/ core-api/src/test/java/org/apache/directory/server/core/ core/src/main/java/org/apache/directory/server/core/
Date Fri, 22 Apr 2011 15:17:12 GMT
Author: elecharny
Date: Fri Apr 22 15:17:12 2011
New Revision: 1095943

URL: http://svn.apache.org/viewvc?rev=1095943&view=rev
Log:
Added an exists( String dn ) method

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/CoreSession.java
    directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/MockCoreSession.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/CoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/CoreSession.java?rev=1095943&r1=1095942&r2=1095943&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/CoreSession.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/CoreSession.java
Fri Apr 22 15:17:12 2011
@@ -359,6 +359,12 @@ public interface CoreSession
     /**
      * Checks to see if an entry exists. 
      */
+    boolean exists( String dn ) throws LdapException;
+    
+    
+    /**
+     * Checks to see if an entry exists. 
+     */
     boolean exists( Dn dn ) throws LdapException;
     
     

Modified: directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/MockCoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/MockCoreSession.java?rev=1095943&r1=1095942&r2=1095943&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/MockCoreSession.java
(original)
+++ directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/MockCoreSession.java
Fri Apr 22 15:17:12 2011
@@ -839,6 +839,15 @@ public class MockCoreSession implements 
     }
 
 
+    /**
+     * {@inheritDoc} 
+     */
+    public boolean exists( String dn ) throws LdapException
+    {
+        return exists( new Dn( dn ) );
+    }
+
+    
     public boolean exists( Dn dn ) throws LdapException
     {
         EntryOperationContext hasEntryContext = new EntryOperationContext( this, dn );

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java?rev=1095943&r1=1095942&r2=1095943&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
Fri Apr 22 15:17:12 2011
@@ -874,8 +874,20 @@ public class DefaultCoreSession implemen
 
         deleteRequest.getResultResponse().addAllControls( deleteContext.getResponseControls()
);
     }
+    
+    
+    /**
+     * {@inheritDoc} 
+     */
+    public boolean exists( String dn ) throws LdapException
+    {
+        return exists( new Dn( dn ) );
+    }
 
 
+    /**
+     * {@inheritDoc} 
+     */
     public boolean exists( Dn dn ) throws LdapException
     {
         EntryOperationContext hasEntryContext = new EntryOperationContext( this, dn );



Mime
View raw message