directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r440196 - in /directory/sandbox/ersiner/sptriggerdemo/src/main: java/sptriggerdemo/SPMainDemo.java java/sptriggerdemo/common/BulkOperations.java resources/sptriggerdemo.ldif
Date Mon, 04 Sep 2006 22:08:12 GMT
Author: ersiner
Date: Mon Sep  4 15:08:12 2006
New Revision: 440196

URL: http://svn.apache.org/viewvc?view=rev&rev=440196
Log:
Added more documentation.
Made the ldif ldapbrowser friendly.

Modified:
    directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/SPMainDemo.java
    directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/common/BulkOperations.java
    directory/sandbox/ersiner/sptriggerdemo/src/main/resources/sptriggerdemo.ldif

Modified: directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/SPMainDemo.java
URL: http://svn.apache.org/viewvc/directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/SPMainDemo.java?view=diff&rev=440196&r1=440195&r2=440196
==============================================================================
--- directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/SPMainDemo.java (original)
+++ directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/SPMainDemo.java Mon
Sep  4 15:08:12 2006
@@ -39,7 +39,7 @@
 public class SPMainDemo
 {
     private static String host = "localhost";
-    private static int port = 1027;
+    private static int port = 1024;
 
 
     private static LdapContext connectToServer() throws NamingException
@@ -62,7 +62,7 @@
 
         JavaStoredProcedureUtils.loadStoredProcedureClass( spCtx, BulkOperations.class );
 
-        String spName = BulkOperations.class.getName() + ".delSubtree";
+        String spName = BulkOperations.class.getName() + ".deleteSubtree";
         Object[] params = new Object[] { new LdapContextParameter( "ou=system" ),
                                          new LdapDN( "ou=Mailing Lists") };
         

Modified: directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/common/BulkOperations.java
URL: http://svn.apache.org/viewvc/directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/common/BulkOperations.java?view=diff&rev=440196&r1=440195&r2=440196
==============================================================================
--- directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/common/BulkOperations.java
(original)
+++ directory/sandbox/ersiner/sptriggerdemo/src/main/java/sptriggerdemo/common/BulkOperations.java
Mon Sep  4 15:08:12 2006
@@ -20,12 +20,17 @@
     /**
      * Recursively deletes a subtree including the apex given.
      * 
+     * If you do not want to wait for the developers to implement the
+     * following RFC
+     * http://kahuna.telstra.net/ietf/all-ids/draft-armijo-ldap-treedelete-02.txt
+     * you can do it yourself!
+     * 
      * @param ctx an LDAP session context to perform operations on
      * @param rdn ctx relative name of the entry which is root of
-     *        the subtree to be deleted 
+     *        the subtree to be deleted
      * @throws NamingException
      */
-    public static void delSubtree( LdapContext ctx, Name rdn ) throws NamingException
+    public static void deleteSubtree( LdapContext ctx, Name rdn ) throws NamingException
     {
         NamingEnumeration results = ctx.search( rdn, "(objectClass=*)", new SearchControls()
);
         while ( results.hasMore() )
@@ -33,7 +38,7 @@
             SearchResult result = ( SearchResult ) results.next();
             Name childRdn = new LdapDN( result.getName() );
             childRdn.remove( 0 );
-            delSubtree( ctx, childRdn );
+            deleteSubtree( ctx, childRdn );
         }
         ctx.destroySubcontext( rdn );
         System.out.println( "Deleted: " + rdn );

Modified: directory/sandbox/ersiner/sptriggerdemo/src/main/resources/sptriggerdemo.ldif
URL: http://svn.apache.org/viewvc/directory/sandbox/ersiner/sptriggerdemo/src/main/resources/sptriggerdemo.ldif?view=diff&rev=440196&r1=440195&r2=440196
==============================================================================
--- directory/sandbox/ersiner/sptriggerdemo/src/main/resources/sptriggerdemo.ldif (original)
+++ directory/sandbox/ersiner/sptriggerdemo/src/main/resources/sptriggerdemo.ldif Mon Sep
 4 15:08:12 2006
@@ -1,6 +1,6 @@
 dn: ou=system
-changetype: modify
-add: administrativeRole
+#changetype: modify
+#add: administrativeRole
 administrativeRole: triggerExecutionSpecificArea
 
 dn: ou=People, ou=system



Mime
View raw message