directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r527119 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java
Date Tue, 10 Apr 2007 13:00:11 GMT
Author: elecharny
Date: Tue Apr 10 06:00:10 2007
New Revision: 527119

URL: http://svn.apache.org/viewvc?view=rev&rev=527119
Log:
Modified the add and modify methods to reflect the use of
ServcieContext parameter

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java?view=diff&rev=527119&r1=527118&r2=527119
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java
Tue Apr 10 06:00:10 2007
@@ -30,6 +30,8 @@
 
 import org.apache.directory.server.core.DirectoryServiceConfiguration;
 import org.apache.directory.server.core.configuration.PartitionConfiguration;
+import org.apache.directory.server.core.interceptor.context.AddServiceContext;
+import org.apache.directory.server.core.interceptor.context.ModifyServiceContext;
 import org.apache.directory.server.core.interceptor.context.ServiceContext;
 import org.apache.directory.server.core.partition.Partition;
 import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
@@ -307,9 +309,9 @@
     }
 
     
-    public final void add( LdapDN normName, Attributes entry ) throws NamingException
+    public final void add( ServiceContext addContext ) throws NamingException
     {
-        store.add( normName, entry );
+        store.add( addContext.getDn(), ((AddServiceContext)addContext).getEntry() );
     }
 
 
@@ -372,9 +374,10 @@
     }
 
     
-    public final void modify( LdapDN dn, int modOp, Attributes mods ) throws NamingException
+    public final void modify( ServiceContext modifyContext ) throws NamingException
     {
-        store.modify( dn, modOp, mods );
+    	ModifyServiceContext ctx = (ModifyServiceContext)modifyContext;
+        store.modify( ctx.getDn(), ctx.getModOp(), ctx.getMods() );
     }
 
 



Mime
View raw message