directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r985411 [11/11] - in /directory: apacheds/branches/apacheds-codec-merge/core-api/src/main/java/org/apache/directory/server/core/ apacheds/branches/apacheds-codec-merge/core-integ/src/test/java/org/apache/directory/server/core/admin/ apached...
Date Sat, 14 Aug 2010 00:22:40 GMT
Modified: directory/clients/ldap/branches/ldap-client-codec-merge/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/listener/SearchListener.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/branches/ldap-client-codec-merge/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/listener/SearchListener.java?rev=985411&r1=985410&r2=985411&view=diff
==============================================================================
--- directory/clients/ldap/branches/ldap-client-codec-merge/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/listener/SearchListener.java
(original)
+++ directory/clients/ldap/branches/ldap-client-codec-merge/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/listener/SearchListener.java
Sat Aug 14 00:22:38 2010
@@ -19,11 +19,12 @@
  */
 package org.apache.directory.ldap.client.api.listener;
 
+
 import org.apache.directory.ldap.client.api.LdapAsyncConnection;
-import org.apache.directory.ldap.client.api.message.SearchResultDone;
-import org.apache.directory.ldap.client.api.message.SearchResultEntry;
-import org.apache.directory.ldap.client.api.message.SearchResultReference;
 import org.apache.directory.shared.ldap.exception.LdapException;
+import org.apache.directory.shared.ldap.message.internal.InternalSearchResultDone;
+import org.apache.directory.shared.ldap.message.internal.InternalSearchResultEntry;
+import org.apache.directory.shared.ldap.message.internal.InternalSearchResultReference;
 
 
 /**
@@ -42,23 +43,24 @@ public interface SearchListener extends 
      * @param connection The LdapConnection
      * @param searchResultEntry The found entry
      */
-    void entryFound( LdapAsyncConnection connection, SearchResultEntry searchResultEntry
) throws LdapException;
-    
-    
+    void entryFound( LdapAsyncConnection connection, InternalSearchResultEntry searchResultEntry
) throws LdapException;
+
+
     /**
      * A callback method for each referral returned by a search operation.
      *
      * @param connection The LdapConnection
      * @param searchResultReference The referral message
      */
-    void referralFound( LdapAsyncConnection connection, SearchResultReference searchResultReference
) throws LdapException;
+    void referralFound( LdapAsyncConnection connection, InternalSearchResultReference searchResultReference
)
+        throws LdapException;
+
 
-    
     /**
      * A callback method called when the search is done.
      * 
      * @param connection The LdapConnection
      * @param searchResultDone The searchResultDone response
      */
-    void searchDone( LdapAsyncConnection connection, SearchResultDone searchResultDone )
throws LdapException;
+    void searchDone( LdapAsyncConnection connection, InternalSearchResultDone searchResultDone
) throws LdapException;
 }

Modified: directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponseImpl.java?rev=985411&r1=985410&r2=985411&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponseImpl.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponseImpl.java
Sat Aug 14 00:22:38 2010
@@ -70,4 +70,14 @@ public class CompareResponseImpl extends
     {
         return compareResponseLength;
     }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean isTrue()
+    {
+        return getLdapResult().getResultCode() == ResultCodeEnum.COMPARE_TRUE;
+    }
+
 }

Modified: directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/internal/InternalAbstractResultResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/internal/InternalAbstractResultResponse.java?rev=985411&r1=985410&r2=985411&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/internal/InternalAbstractResultResponse.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/internal/InternalAbstractResultResponse.java
Sat Aug 14 00:22:38 2010
@@ -25,7 +25,7 @@ import org.apache.directory.shared.ldap.
 
 
 /**
- * Abstract base for a Lockable ResultResponse message.
+ * Abstract base for a ResultResponse message.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
@@ -43,10 +43,8 @@ public abstract class InternalAbstractRe
      * Allows subclasses based on the abstract type to create a response to a
      * request.
      * 
-     * @param id
-     *            the response eliciting this Request
-     * @param type
-     *            the message type of the response
+     * @param id the response eliciting this Request
+     * @param type the message type of the response
      */
     protected InternalAbstractResultResponse( final int id, final MessageTypeEnum type )
     {
@@ -57,7 +55,6 @@ public abstract class InternalAbstractRe
     // ------------------------------------------------------------------------
     // Response Interface Method Implementations
     // ------------------------------------------------------------------------
-
     /**
      * Gets the LdapResult components of this Response.
      * 
@@ -81,7 +78,7 @@ public abstract class InternalAbstractRe
             hash = hash * 17 + getLdapResult().hashCode();
         }
         hash = hash * 17 + super.hashCode();
-        
+
         return hash;
     }
 

Modified: directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/internal/InternalCompareResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/internal/InternalCompareResponse.java?rev=985411&r1=985410&r2=985411&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/internal/InternalCompareResponse.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/internal/InternalCompareResponse.java
Sat Aug 14 00:22:38 2010
@@ -46,4 +46,11 @@ public interface InternalCompareResponse
      * @return The encoded CompareResponse's length
      */
     int getCompareResponseLength();
+
+
+    /**
+     * @return True if the compared response is a success
+     * @return
+     */
+    boolean isTrue();
 }



Mime
View raw message