directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r642779 - in /directory/sandbox/akarasulu/bigbang/apacheds: core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreUtil.java xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java
Date Sun, 30 Mar 2008 17:13:51 GMT
Author: akarasulu
Date: Sun Mar 30 10:13:50 2008
New Revision: 642779

URL: http://svn.apache.org/viewvc?rev=642779&view=rev
Log:
cleanup and move of Store utils

 o moved out of core into xdbm-store
 o made it not depend on JDBM but the store interface so it can work on any kind
   of implementation
 o still need to add aliases but now we have some place to maintain the example


Added:
    directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java
      - copied, changed from r642771, directory/sandbox/akarasulu/bigbang/apacheds/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreUtil.java
Removed:
    directory/sandbox/akarasulu/bigbang/apacheds/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreUtil.java

Copied: directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java
(from r642771, directory/sandbox/akarasulu/bigbang/apacheds/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreUtil.java)
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java?p2=directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java&p1=directory/sandbox/akarasulu/bigbang/apacheds/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreUtil.java&r1=642771&r2=642779&rev=642779&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreUtil.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java
Sun Mar 30 10:13:50 2008
@@ -17,12 +17,13 @@
  *  under the License. 
  *  
  */
-package org.apache.directory.server.core.partition.impl.btree.jdbm;
+package org.apache.directory.server.xdbm.tools;
 
 import org.apache.directory.server.core.entry.DefaultServerEntry;
 import org.apache.directory.server.core.entry.ServerEntryUtils;
 import org.apache.directory.server.schema.registries.AttributeTypeRegistry;
 import org.apache.directory.server.schema.registries.Registries;
+import org.apache.directory.server.xdbm.Store;
 import org.apache.directory.shared.ldap.name.LdapDN;
 
 /**
@@ -32,20 +33,19 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class JdbmStoreUtil
+public class StoreUtils
 {
 
     /**
-     * 
-     * initializes With the example data shown in 
+     * Initializes and loads a store with the example data shown in
      * <a href="http://cwiki.apache.org/confluence/display/DIRxSRVx11/Structure+and+Organization">
      * Structure and Organization</a>
      *
-     * @param store the jdbm store object to be initialized
+     * @param store the store object to be initialized
      * @param registries oid registries
-     * @throws Exception
+     * @throws Exception on access exceptions
      */
-    public static void initWithExampleData( JdbmStore store, Registries registries ) throws
Exception
+    public static void loadExampleData( Store store, Registries registries ) throws Exception
     {
         store.setSuffixDn( "o=Good Times Co." );
         
@@ -101,5 +101,7 @@
         entry.add( "ou", "Engineering" );
         entry.add( "cn",  "Jack Daniels");
         store.add( dn, ServerEntryUtils.toAttributesImpl( entry ) );
+
+        // still need to add aliases
     }
 }



Mime
View raw message