directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r536260 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreeSearchResult.java
Date Tue, 08 May 2007 17:25:08 GMT
Author: elecharny
Date: Tue May  8 10:25:07 2007
New Revision: 536260

URL: http://svn.apache.org/viewvc?view=rev&rev=536260
Log:
This class now extends the ServerSearchResult, and each constructor can throw an InvalidName
exception

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreeSearchResult.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreeSearchResult.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreeSearchResult.java?view=diff&rev=536260&r1=536259&r2=536260
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreeSearchResult.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreeSearchResult.java
Tue May  8 10:25:07 2007
@@ -20,9 +20,12 @@
 package org.apache.directory.server.core.partition.impl.btree;
 
 
+import javax.naming.InvalidNameException;
 import javax.naming.directory.Attributes;
 import javax.naming.directory.SearchResult;
 
+import org.apache.directory.shared.ldap.message.ServerSearchResult;
+
 
 /**
  * A special search result that includes the unique database primary key or 
@@ -32,7 +35,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class BTreeSearchResult extends SearchResult
+public class BTreeSearchResult extends ServerSearchResult
 {
     private static final long serialVersionUID = 3976739172700860977L;
 
@@ -52,7 +55,7 @@
      * @param obj the object if any
      * @param attrs the attributes of the entry
      */
-    public BTreeSearchResult(Long id, String name, Object obj, Attributes attrs)
+    public BTreeSearchResult(Long id, String name, Object obj, Attributes attrs) throws InvalidNameException
     {
         super( name, obj, attrs );
         this.id = id;
@@ -68,7 +71,7 @@
      * @param attrs the attributes of the entry
      * @param isRelative whether or not the name is relative to the base
      */
-    public BTreeSearchResult(Long id, String name, Object obj, Attributes attrs, boolean
isRelative)
+    public BTreeSearchResult(Long id, String name, Object obj, Attributes attrs, boolean
isRelative) throws InvalidNameException
     {
         super( name, obj, attrs, isRelative );
         this.id = id;
@@ -84,7 +87,7 @@
      * @param obj the object if any
      * @param attrs the attributes of the entry
      */
-    public BTreeSearchResult(Long id, String name, String className, Object obj, Attributes
attrs)
+    public BTreeSearchResult(Long id, String name, String className, Object obj, Attributes
attrs) throws InvalidNameException
     {
         super( name, className, obj, attrs );
         this.id = id;
@@ -102,7 +105,7 @@
      * @param isRelative whether or not the name is relative to the base
      */
     public BTreeSearchResult(Long id, String name, String className, Object obj, Attributes
attrs,
-        boolean isRelative)
+        boolean isRelative) throws InvalidNameException
     {
         super( name, className, obj, attrs, isRelative );
         this.id = id;



Mime
View raw message