directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r550803 [2/10] - in /directory/sandbox/oersoy/das.ldap.parent: ./ das.ldap.constants/ das.ldap.constants/.settings/ das.ldap.constants/src/ das.ldap.constants/src/main/ das.ldap.constants/src/main/java/ das.ldap.constants/src/main/java/org/...
Date Tue, 26 Jun 2007 13:29:26 GMT
Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap.constants/target/classes/org/apache/tuscany/das/ldap/schema/constants/SystemSchemaConstants.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap.constants/target/das.ldap.constants-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap.constants/target/das.ldap.constants-1.0-SNAPSHOT.jar?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap.constants/target/das.ldap.constants-1.0-SNAPSHOT.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap.constants/target/mvn-eclipse-cache.properties
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap.constants/target/mvn-eclipse-cache.properties?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap.constants/target/mvn-eclipse-cache.properties (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap.constants/target/mvn-eclipse-cache.properties Tue Jun 26 06:29:06 2007
@@ -0,0 +1,4 @@
+#Temporary index for unavailable sources and javadocs
+#Fri Jun 15 19:58:15 CDT 2007
+junit\:junit\:3.8.1\:sources=true
+junit\:junit\:3.8.1\:javadoc=true

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/.classpath
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/.classpath?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/.classpath (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/.classpath Tue Jun 26 06:29:06 2007
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+	<classpathentry excluding="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/common-ui/2.3.0-M4/common-ui-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-sdo-edit/2.3.0-M4/ecore-sdo-edit-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ecore2xml-ui/2.3.0-M4/mapping-ecore2xml-ui-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/codegen-ecore-ui/2.3.0-M4/codegen-ecore-ui-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.3/commons-lang-2.3.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-schema-extras/1.5.1-SNAPSHOT/apacheds-schema-extras-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/shared/shared-asn1/0.9.7-SNAPSHOT/shared-asn1-0.9.7-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-xsd2ecore/2.3.0-M4/mapping-xsd2ecore-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/codegen/2.3.0-M4/codegen-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ecore2ecore/2.3.0-M4/mapping-ecore2ecore-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/codegen-ecore/2.3.0-M4/codegen-ecore-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/commonj-sdo/2.3.0-M4/commonj-sdo-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-change/2.3.0-M4/ecore-change-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore/2.3.0-M4/ecore-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-sdo/2.3.0-M4/ecore-sdo-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/common/2.3.0-M4/common-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/importer/2.3.0-M4/importer-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-schema-bootstrap/1.5.1-SNAPSHOT/apacheds-schema-bootstrap-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-utils/1.5.1-SNAPSHOT/apacheds-utils-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/edit-ui/2.3.0-M4/edit-ui-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-kerberos-shared/1.5.1-SNAPSHOT/apacheds-kerberos-shared-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-btree-base/1.5.1-SNAPSHOT/apacheds-btree-base-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/emf/2.3.0-M4/emf-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.3.0/slf4j-api-1.3.0.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-bootstrap-extract/1.5.1-SNAPSHOT/apacheds-bootstrap-extract-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/xsd/ecore-exporter/2.3.0-M4/ecore-exporter-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/slf4j/nlog4j/1.2.25/nlog4j-1.2.25.jar"/>
+	<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ecore2xml/2.3.0-M4/mapping-ecore2xml-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/xsd/edit/2.3.0-M4/edit-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/checkstyle/checkstyle/2.2/checkstyle-2.2.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/importer-rose/2.3.0-M4/importer-rose-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/shared/shared-ldap-constants/0.9.7-SNAPSHOT/shared-ldap-constants-0.9.7-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-jdbm-store/1.5.1-SNAPSHOT/apacheds-jdbm-store-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ant/2.3.0-M4/ant-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.2/commons-collections-3.2.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-protocol-shared/1.5.1-SNAPSHOT/apacheds-protocol-shared-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-xsd2ecore-editor/2.3.0-M4/mapping-xsd2ecore-editor-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-schema-registries/1.5.1-SNAPSHOT/apacheds-schema-registries-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/xsd/ecore-importer/2.3.0-M4/ecore-importer-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ui/2.3.0-M4/mapping-ui-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/shared/shared-ldap/0.9.7-SNAPSHOT/shared-ldap-0.9.7-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/importer-java/2.3.0-M4/importer-java-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.0.2/xercesImpl-2.0.2.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-core/1.5.1-SNAPSHOT/apacheds-core-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/mina/mina-core/1.0.3/mina-core-1.0.3.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-bootstrap-partition/1.5.1-SNAPSHOT/apacheds-bootstrap-partition-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/xsd/xsd/2.3.0-M4/xsd-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/edit/2.3.0-M4/edit-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-change-edit/2.3.0-M4/ecore-change-edit-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-edit/2.3.0-M4/ecore-edit-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-core-shared/1.5.1-SNAPSHOT/apacheds-core-shared-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/converter/2.3.0-M4/converter-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ecore2ecore-editor/2.3.0-M4/mapping-ecore2ecore-editor-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/jdbm/jdbm/1.0/jdbm-1.0.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-xmi/2.3.0-M4/ecore-xmi-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/exporter/2.3.0-M4/exporter-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping/2.3.0-M4/mapping-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/codegen-ui/2.3.0-M4/codegen-ui-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/apache/directory/server/apacheds-constants/1.5.1-SNAPSHOT/apacheds-constants-1.5.1-SNAPSHOT.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/eclipse/emf/importer-ecore/2.3.0-M4/importer-ecore-2.3.0-M4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/backport-util-concurrent/backport-util-concurrent/3.0/backport-util-concurrent-3.0.jar"/>
+	<classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.7/antlr-2.7.7.jar"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/das.ldap.constants"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/.project
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/.project?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/.project (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/.project Tue Jun 26 06:29:06 2007
@@ -0,0 +1,13 @@
+<projectDescription>
+  <name>das.ldap</name>
+  <comment/>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/.settings/org.eclipse.jdt.core.prefs?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/.settings/org.eclipse.jdt.core.prefs (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/.settings/org.eclipse.jdt.core.prefs Tue Jun 26 06:29:06 2007
@@ -0,0 +1,5 @@
+#Fri Jun 15 20:04:29 CDT 2007
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedConnectionTemplate.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedConnectionTemplate.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedConnectionTemplate.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedConnectionTemplate.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,129 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import java.util.Hashtable;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.naming.ldap.InitialLdapContext;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.directory.server.core.configuration.MutableStartupConfiguration;
+import org.apache.directory.server.core.configuration.ShutdownConfiguration;
+import org.apache.log4j.PropertyConfigurator;
+
+/**
+ * The Class JNDIEmbeddedConnectionTemplate.
+ */
+public abstract class ADSEmbeddedConnectionTemplate
+extends JNDIConnectionTemplate
+{
+    public void tearDown() throws NamingException, Exception
+    {
+        Hashtable<String,Object> env = 
+        	new Hashtable<String,Object>();
+        
+        env = createEnvironment(env);
+        
+        env.put( 
+        		Context.PROVIDER_URL, 
+        		SYSTEM_PROVIDER_PATH);
+        env.put( 
+        		Context.INITIAL_CONTEXT_FACTORY, 
+        		"org.apache.directory.server.core.jndi.CoreContextFactory" );
+        env.putAll( 
+        		new ShutdownConfiguration().toJndiEnvironment() );
+        
+        new InitialContext( env );
+        Runtime.getRuntime().gc();
+        super.tearDown();
+    }
+    
+    
+    
+    public void setUp() throws Exception
+    {
+    	PropertyConfigurator.
+    	configure(NLOG4J_CONFIGURATION_FILEPATH);
+        super.setUp();
+    }
+    
+	/**
+	 * Connect to an embedded ApacheDS server.
+	 * 
+	 * @param providerPath the provider path ("ou=schema", ou="system", etc.)
+	 * 
+	 * @return the ldap context
+	 * 
+	 * @throws NamingException the naming exception
+	 */
+	public LdapContext connect( String providerPath ) throws NamingException
+	{
+		 MutableStartupConfiguration mutableStartupConfiguration = 
+	    		new MutableStartupConfiguration();
+		 
+	    Hashtable<String,Object> adminEnv  =
+	    	new Hashtable<String,Object>( );
+	    
+	    adminEnv.putAll( 
+	    			mutableStartupConfiguration.
+	    			toJndiEnvironment());
+	    
+	    adminEnv.put( 
+	    		Context.PROVIDER_URL, 
+	    		SYSTEM_PROVIDER_PATH);
+	    adminEnv.put( 
+	    		Context.SECURITY_PRINCIPAL, 
+	    		DEFAULT_SECURITY_PRINCIPAL_VALUE);
+	    adminEnv.put( 
+	    		Context.SECURITY_CREDENTIALS, 
+	    		DEFAULT_SECURITY_CREDENTIALS_VALUE);
+	    adminEnv.put( 
+	    		Context.SECURITY_AUTHENTICATION, 
+	    		SIMPLE_SECURITY_AUTHENTICATION_VALUE );
+   		new InitialLdapContext( adminEnv, null );
+
+   		
+   		
+	    Hashtable<String,Object> env            = 
+	    	new Hashtable<String,Object>();
+	    
+	    env.put( 
+	    		Context.INITIAL_CONTEXT_FACTORY, 
+	    		"org.apache.directory.server.core.jndi.CoreContextFactory" );
+	    env.put( 	    		
+	    		Context.SECURITY_PRINCIPAL, 
+	    		DEFAULT_SECURITY_PRINCIPAL_VALUE);
+	    env.put( 
+	    		Context.SECURITY_CREDENTIALS, 
+	    		DEFAULT_SECURITY_CREDENTIALS_VALUE);
+	    env.put( 
+	    		Context.SECURITY_AUTHENTICATION, 
+	    		SIMPLE_SECURITY_AUTHENTICATION_VALUE );
+	    env.put( Context.PROVIDER_URL, providerPath );
+	    
+	    env.put( Context.PROVIDER_URL, providerPath );
+		
+	    return new InitialLdapContext( env, null );
+		
+	}
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedConnectionTemplateTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedConnectionTemplateTest.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedConnectionTemplateTest.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedConnectionTemplateTest.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,61 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import javax.naming.NamingException;
+import javax.naming.ldap.LdapContext;
+
+public class ADSEmbeddedConnectionTemplateTest 
+extends ADSEmbeddedConnectionTemplate  
+{
+    public void tearDown() throws NamingException, Exception
+    {
+        super.tearDown();
+    }
+    
+    public void setUp() throws Exception
+    {
+        super.setUp();
+
+    }
+    
+    public void testSchemaConnect() throws NamingException
+    {
+    	LdapContext ldapContext =null;
+    	
+	    ldapContext =connect("ou=schema");
+	    
+	    assertEquals(
+	    		"ou=schema", 
+	    		ldapContext.getNameInNamespace()); 
+    }
+    
+    public void testRootDSEConnect() throws NamingException
+    {
+    	LdapContext ldapContext =null;
+    	
+	    ldapContext =connect("");
+	    
+	    assertEquals(
+	    		"", 
+	    		ldapContext.getNameInNamespace()); 
+    }
+
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedHotPartitionTemplate.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedHotPartitionTemplate.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedHotPartitionTemplate.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedHotPartitionTemplate.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,157 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import java.util.HashSet;
+import java.util.Hashtable;
+import java.util.Set;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.naming.directory.Attributes;
+import javax.naming.directory.BasicAttributes;
+import javax.naming.ldap.InitialLdapContext;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.directory.server.core.configuration.Configuration;
+import org.apache.directory.server.core.configuration.MutablePartitionConfiguration;
+import org.apache.directory.server.core.configuration.MutableStartupConfiguration;
+import org.apache.directory.server.core.configuration.ShutdownConfiguration;
+import org.apache.log4j.PropertyConfigurator;
+
+/**
+ * The Class JNDIEmbeddedConnectionTemplate.
+ */
+public abstract class ADSEmbeddedHotPartitionTemplate
+extends JNDIConnectionTemplate
+{
+    public void tearDown() throws NamingException, Exception
+    {
+        Hashtable<String,Object> env = 
+        	new Hashtable<String,Object>();
+        
+        env = createEnvironment(env);
+        
+        env.put( 
+        		Context.PROVIDER_URL, 
+        		SYSTEM_PROVIDER_PATH);
+        env.put( 
+        		Context.INITIAL_CONTEXT_FACTORY, 
+        		"org.apache.directory.server.core.jndi.CoreContextFactory" );
+        env.putAll( 
+        		new ShutdownConfiguration().toJndiEnvironment() );
+        
+        new InitialContext( env );
+        Runtime.getRuntime().gc();
+        super.tearDown();
+    }
+    
+    
+    
+    public void setUp() throws Exception
+    {
+    	PropertyConfigurator.
+    	configure(NLOG4J_CONFIGURATION_FILEPATH);
+        super.setUp();
+    }
+    
+	/**
+	 * Connect to an embedded ApacheDS server.
+	 * 
+	 * @param partitionName the provider path ("ou=schema", ou="system", etc.)
+	 * 
+	 * @return the ldap context
+	 * 
+	 * @throws NamingException the naming exception
+	 */
+	public LdapContext connect( String partitionName ) throws NamingException
+	{
+		 MutableStartupConfiguration mutableStartupConfiguration = 
+	    		new MutableStartupConfiguration();
+		 
+	    Hashtable<String,Object> adminEnv                                       =
+	    	new Hashtable<String,Object>( );
+	    
+	    adminEnv.putAll( 
+	    			mutableStartupConfiguration.
+	    			toJndiEnvironment());
+	    
+	    adminEnv.put( 
+	    		Context.PROVIDER_URL, 
+	    		SYSTEM_PROVIDER_PATH);
+	    adminEnv.put( 
+	    		Context.SECURITY_PRINCIPAL, 
+	    		DEFAULT_SECURITY_PRINCIPAL_VALUE);
+	    adminEnv.put( 
+	    		Context.SECURITY_CREDENTIALS, 
+	    		DEFAULT_SECURITY_CREDENTIALS_VALUE);
+	    adminEnv.put( 
+	    		Context.SECURITY_AUTHENTICATION, 
+	    		SIMPLE_SECURITY_AUTHENTICATION_VALUE );
+   		new InitialLdapContext( adminEnv, null );
+
+
+        MutablePartitionConfiguration dasPartition                      = 
+            new MutablePartitionConfiguration();
+        
+        Attributes suffixAttributes = new BasicAttributes();
+        suffixAttributes.put( "objectClass", "top");
+        suffixAttributes.get( "objectClass" ).add( "organizationalUnit" );
+        suffixAttributes.put( "ou", partitionName );
+
+        dasPartition.setName( partitionName);
+        dasPartition.setSuffix( "ou=" +partitionName );
+        dasPartition.setContextEntry( suffixAttributes );
+        
+        Set<MutablePartitionConfiguration> partitions =
+        	new HashSet<MutablePartitionConfiguration> ();
+        
+        partitions.add( dasPartition );
+        
+        mutableStartupConfiguration.
+        setPartitionConfigurations( partitions );
+   		
+	    Hashtable<String,Object> env            = 
+	    	new Hashtable<String,Object>();
+	    
+	    env.put( 
+	    		Context.INITIAL_CONTEXT_FACTORY, 
+	    		"org.apache.directory.server.core.jndi.CoreContextFactory" );
+	    env.put( 	    		
+	    		Context.SECURITY_PRINCIPAL, 
+	    		DEFAULT_SECURITY_PRINCIPAL_VALUE);
+	    env.put( 
+	    		Context.SECURITY_CREDENTIALS, 
+	    		DEFAULT_SECURITY_CREDENTIALS_VALUE);
+	    env.put( 
+	    		Context.SECURITY_AUTHENTICATION, 
+	    		SIMPLE_SECURITY_AUTHENTICATION_VALUE );
+	    env.put( 
+	    		Context.PROVIDER_URL, 
+	    		"ou=" + partitionName );
+	    
+        env.put( 
+        		Configuration.JNDI_KEY, 
+        		mutableStartupConfiguration );
+		
+	    return new InitialLdapContext( env, null );
+	}
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedHotPartitionTemplateTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedHotPartitionTemplateTest.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedHotPartitionTemplateTest.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/ADSEmbeddedHotPartitionTemplateTest.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,50 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import javax.naming.NamingException;
+import javax.naming.ldap.LdapContext;
+
+public class ADSEmbeddedHotPartitionTemplateTest 
+extends ADSEmbeddedHotPartitionTemplate  
+{
+    public void tearDown() throws NamingException, Exception
+    {
+        super.tearDown();
+    }
+    
+    public void setUp() throws Exception
+    {
+        super.setUp();
+    }
+    
+    public void testSchemaConnect() throws NamingException
+    {
+    	LdapContext ldapContext =
+    		null;
+    	
+	    ldapContext                       =
+	    	connect("test");
+	    
+	    assertEquals(
+	    		"ou=test", 
+	    		ldapContext.getNameInNamespace()); 
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,102 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import java.util.Hashtable;
+
+import javax.naming.Context;
+import javax.naming.NamingException;
+import javax.naming.ldap.InitialLdapContext;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.directory.connection.constants.ApacheDSConnectionConstants;
+import junit.framework.TestCase;
+
+/*
+ * Just a class template class
+ */
+public abstract class JNDIConnectionTemplate
+extends TestCase
+implements ApacheDSConnectionConstants
+{
+    protected String providerHost                    =
+        "ldap://localhost:10389/";
+
+    protected String providerPath                    =
+    	SYSTEM_PROVIDER_PATH;
+
+    private String  providerURL                          =
+        providerHost + providerPath;
+
+    protected String initialContextFactory     = 
+        SUN_CONTEXT_FACTORY;
+    
+    protected String  securityAuthentication = 
+        SIMPLE_SECURITY_AUTHENTICATION_VALUE;
+    
+    protected String  securityPrincipal            = 
+        DEFAULT_SECURITY_PRINCIPAL_VALUE;
+    
+    protected String credentials                      =
+        DEFAULT_SECURITY_CREDENTIALS_VALUE;
+
+    public Hashtable<String,Object> createEnvironment(
+    		Hashtable<String, Object> env)
+    {
+      providerURL                                                  =
+            providerHost + providerPath;
+
+        env.put( 
+            Context.PROVIDER_URL,
+            providerURL);
+
+        env.put( 
+            Context.INITIAL_CONTEXT_FACTORY, 
+            initialContextFactory );
+
+        env.put( 
+            Context.SECURITY_AUTHENTICATION, 
+            securityAuthentication);
+        
+        env.put( 
+            Context.SECURITY_PRINCIPAL, 
+            securityPrincipal );
+        
+        env.put( 
+            Context.SECURITY_CREDENTIALS, 
+            credentials );
+        
+        return env;
+    }
+
+    public LdapContext connect() throws NamingException
+    {
+    	Hashtable<String, Object> env = 
+    		new Hashtable<String, Object>();
+    	
+        return new InitialLdapContext(
+        		createEnvironment(env), null);
+    }
+    
+    public void setUp() throws Exception
+    {
+    	super.setUp();
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,64 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import javax.naming.NamingException;
+import javax.naming.ldap.LdapContext;
+
+/*
+ * These tests require a running server.
+ */
+public class JNDIConnectionTemplateTest extends JNDIConnectionTemplate  
+{
+	private static LdapContext systemContext  = null;
+	private static LdapContext schemaContext = null;
+	
+    public void tearDown() throws NamingException, Exception
+    {
+        super.tearDown();
+    }
+    
+    public void setUp() throws NamingException, Exception
+    {
+        super.setUp();
+    }
+    
+    public void testSystemContextConnection() 
+    throws NamingException
+    {
+    	systemContext = connect();
+    	assertNotNull( systemContext );
+        assertNotNull( connect() );
+        assertEquals(
+        		systemContext.getNameInNamespace(), "ou=system");
+    }
+    
+    public void testSchemaContextConnection() 
+    throws NamingException
+    {
+    	providerPath    = SCHEMA_PROVIDER_PATH;
+    	schemaContext = connect();
+    	assertNotNull (schemaContext);
+        assertNotNull(connect());
+        assertEquals(
+        		schemaContext.getNameInNamespace(), 
+        		"ou=schema");
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,48 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.connection.constants;
+
+public interface ApacheDSConnectionConstants
+{
+    String APACHE_CONTEXT_FACTORY                          =
+        "org.apache.directory.server.core.jndi.CoreContextFactory";
+
+    String SUN_CONTEXT_FACTORY                                =
+        "com.sun.jndi.ldap.LdapCtxFactory";
+    
+    String SIMPLE_SECURITY_AUTHENTICATION_VALUE = 
+        "simple";
+    
+    String DEFAULT_SECURITY_PRINCIPAL_VALUE          = 
+        "uid=admin,ou=system";
+    
+    String DEFAULT_SECURITY_CREDENTIALS_VALUE    = 
+        "secret";
+    
+    String SCHEMA_PROVIDER_PATH                              =
+    	"ou=schema";
+    
+    String SYSTEM_PROVIDER_PATH                               =
+    	"ou=system";
+    
+    String NLOG4J_CONFIGURATION_FILEPATH              =
+    	"src/test/resources/log4j.properties";
+    	
+}

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/pom.xml?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/pom.xml (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/pom.xml Tue Jun 26 06:29:06 2007
@@ -0,0 +1,187 @@
+<?xml version="1.0"?><project>
+  <parent>
+    <artifactId>das.ldap.parent</artifactId>
+    <groupId>org.apache.tuscany</groupId>
+    <version>1.0</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.tuscany</groupId>
+  <artifactId>das.ldap</artifactId>
+  <name></name>
+  <version>1.0</version>
+  <url>http://pyramidetechnologies.com/model/archetype</url>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+
+    <dependency>
+        <groupId>org.apache.directory.server</groupId>
+        <artifactId>apacheds-core</artifactId>
+        <version>1.5.1-SNAPSHOT</version>
+      </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>nlog4j</artifactId>
+      <version>1.2.25</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ant</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>codegen</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>codegen-ecore</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>codegen-ecore-ui</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>codegen-ui</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>common</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>commonj-sdo</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>common-ui</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>converter</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore-change</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore-change-edit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore-edit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore-sdo</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore-sdo-edit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore-xmi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>edit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>edit-ui</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>emf</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>exporter</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>importer</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>importer-ecore</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>importer-java</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>importer-rose</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>mapping</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>mapping-ecore2ecore</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>mapping-ecore2ecore-editor</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>mapping-ecore2xml</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>mapping-ecore2xml-ui</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>mapping-ui</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>mapping-xsd2ecore</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>mapping-xsd2ecore-editor</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.xsd</groupId>
+      <artifactId>ecore-exporter</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.xsd</groupId>
+      <artifactId>ecore-importer</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.xsd</groupId>
+      <artifactId>edit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.xsd</groupId>
+      <artifactId>xsd</artifactId>
+    </dependency>
+  </dependencies>
+</project>

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheAlias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheAlias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheAlias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheAlias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheAlias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheAlias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheExistance.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheExistance.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheExistance.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheExistance.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheExistance.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheExistance.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheHierarchy.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheHierarchy.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheHierarchy.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheHierarchy.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheHierarchy.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheHierarchy.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheNdn.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheNdn.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheNdn.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheNdn.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheNdn.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheNdn.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheOnealias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheOnealias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheOnealias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheOnealias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheOnealias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheOnealias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheSubalias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheSubalias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheSubalias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheSubalias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheSubalias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheSubalias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheUpdn.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheUpdn.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheUpdn.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheUpdn.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheUpdn.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/apacheUpdn.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/master.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/master.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/master.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/master.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/master.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/das/master.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheAlias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheAlias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheAlias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheAlias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheAlias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheAlias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheExistance.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheExistance.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheExistance.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheExistance.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheExistance.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheExistance.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheHierarchy.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheHierarchy.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheHierarchy.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheHierarchy.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheHierarchy.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheHierarchy.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheNdn.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheNdn.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheNdn.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheNdn.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheNdn.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheNdn.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheOnealias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheOnealias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheOnealias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheOnealias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheOnealias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheOnealias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheSubalias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheSubalias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheSubalias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheSubalias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheSubalias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheSubalias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheUpdn.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheUpdn.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheUpdn.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheUpdn.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheUpdn.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/apacheUpdn.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/cn.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/cn.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/cn.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/cn.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/cn.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/cn.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-disabled.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-disabled.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-disabled.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-disabled.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-disabled.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-disabled.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-oid.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-oid.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-oid.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-oid.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-oid.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/m-oid.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/master.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/master.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/master.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/master.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/master.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/master.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/objectClass.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/objectClass.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/objectClass.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/objectClass.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/objectClass.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/objectClass.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/ou.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/ou.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/ou.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/ou.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/ou.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/schema/ou.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheAlias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheAlias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheAlias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheAlias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheAlias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheAlias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheExistance.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheExistance.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheExistance.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheExistance.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheExistance.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheExistance.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheHierarchy.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheHierarchy.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheHierarchy.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheHierarchy.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheHierarchy.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheHierarchy.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheNdn.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheNdn.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheNdn.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheNdn.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheNdn.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheNdn.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheOnealias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheOnealias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheOnealias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheOnealias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheOnealias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheOnealias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheSubalias.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheSubalias.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheSubalias.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheSubalias.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheSubalias.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheSubalias.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheUpdn.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheUpdn.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheUpdn.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheUpdn.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheUpdn.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/apacheUpdn.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/master.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/master.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/master.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/master.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/master.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/master.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/objectClass.db
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/objectClass.db?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/objectClass.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/objectClass.lg
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/objectClass.lg?view=auto&rev=550803
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.ldap.parent/das.ldap/server-work/system/objectClass.lg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/DAS.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/DAS.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/DAS.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/DAS.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,14 @@
+package org.apache.tuscany.das.ldap;
+
+import org.eclipse.emf.ecore.sdo.EDataGraph;
+
+public interface DAS {
+    
+	public void write(EDataGraph EDataGraph, Object connection);
+
+	public EDataGraph read(String[] queryParameters, Object connection);
+
+	public void update(EDataGraph EDataGraph, Object connection);
+
+    public void delete( EDataGraph EDataGraph, Object connection );
+}

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,92 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.tuscany.das.ldap.constants;
+
+public interface DASConstants {
+    
+    String DAS_XSD_NAMESPACE                           = 
+        "http://org.apache.tuscany/das/ldap";
+
+    String M_META_TOP_SDO_OBJECT_CLASS        = 
+        "metaTopSDO";
+    
+    String M_COMPLEX_MAY                                  = 
+        "m-complexMay";
+    
+    String M_COMPLEX_MAY_DESCRIPTION          = 
+        "SDO Type member that is a reference";
+
+    String M_COMPLEX_MUST                               = 
+        "m-complexMust";
+    
+    String M_COMPLEX_MUST_DESCRIPTION       = 
+        "Required SDO Type member reference.";
+    
+    String ID                                                         = 
+        "id";
+    
+    String ID_DESCRIPTION                                 = 
+        "Unique DataObject Instance Integer ID";
+    
+    //==================================================
+    String XSD_CONTEXT_NAME                         = 
+        "xsd";
+
+    String DAS_CONTEXT_NAME                         = 
+        "das";
+    
+    String ECORE_CONTEXT_NAME                     = 
+        "ecore";
+    
+    String SYNTAXES_CONTEXT_NAME               = 
+        "syntaxes";
+    
+    String SYNTAX_CHECKERS_CONTEXT_NAME = 
+        "syntaxCheckers";
+    
+    String ATTRIBUTE_TYPES_CONTEXT_NAME   = 
+        "attributeTypes";
+    
+    String OBJECT_CLASSES_CONTEXT_NAME     = 
+        "objectClasses";
+    
+    String META_CONTEXT_NAME                        =
+        "meta";
+    //==================================================
+
+    String LDAP_USER_APPLICATIONS                 = 
+        "USER_APPLICATIONS";
+    
+    String LDAP_FALSE                                         = 
+        "FALSE";
+    
+    String TUSCANY_SYNTAX_OID_VALUE            = 
+        "1.3.6.1.4.1.18060.4";
+    
+    
+    String OID_SYNTAX_OID_VALUE                     = 
+        "1.3.6.1.4.1.1466.115.121.1.38";
+    
+    String INTEGER_SYNTAX_OID_VALUE            = 
+        "1.3.6.1.4.1.1466.115.121.1.27";
+    
+    String DISTINGUISHED_NAME_SYNTAX_OID_VALUE = 
+        "1.3.6.1.4.1.1466.115.121.1.12";
+}

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,8 @@
+package org.apache.tuscany.das.ldap.constants;
+
+public interface SyntaxOIDValues {
+	
+	String SYNTAX_STRING_OID_VALUE     = "1.3.6.1.4.1.1466.115.121.1.15";
+	String SYNTAX_INTEGER_OID_VALUE   = "1.3.6.1.4.1.1466.115.121.1.27";
+	String SYNTAX_BOOLEAN_OID_VALUE = "1.3.6.1.4.1.1466.115.121.1.7";
+}

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/InitialContextCreator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/InitialContextCreator.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/InitialContextCreator.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/InitialContextCreator.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,78 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.tuscany.das.ldap.create;
+
+import javax.naming.NamingException;
+import javax.naming.directory.DirContext;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.tuscany.das.ldap.util.XSDNamespaceURITokenizer;
+import org.eclipse.emf.common.util.URI;
+
+/**
+ * The InitialContextCreator for a model's directory namespace
+ */
+public class InitialContextCreator
+{
+    /**
+     * Create the initial naming to which the 
+     * ldap attributes belonging to the root DataObject
+     * will be bound.
+     * 
+     * @param dasContext the dir context
+     * @param xsdNamespace the xml namespace of the DataObjects
+     * 
+     * @return the directory context
+     * 
+     * @throws NamingException the naming exception
+     */
+    public static DirContext create(
+        String xsdNamespace, 
+        LdapContext dasContext) throws NamingException
+    {
+        URI xsdNamespaceURI      = 
+            URI.createURI( 
+                xsdNamespace );
+        
+        String[] pathTokens      = 
+            XSDNamespaceURITokenizer.
+            createPathTokens( 
+                xsdNamespaceURI );
+        
+        String[] authorityTokens = 
+            XSDNamespaceURITokenizer.
+            createAuthorityTokens( 
+                xsdNamespaceURI );
+        
+        dasContext         = 
+            InitialContextCreatorHelper.
+            createAuthorityContext( 
+                dasContext, 
+                authorityTokens );
+        
+        dasContext         = 
+            InitialContextCreatorHelper.
+            createPathContext( 
+                dasContext, 
+                pathTokens );
+        
+        return dasContext;
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/InitialContextCreatorHelper.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/InitialContextCreatorHelper.java?view=auto&rev=550803
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/InitialContextCreatorHelper.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/InitialContextCreatorHelper.java Tue Jun 26 06:29:06 2007
@@ -0,0 +1,123 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.tuscany.das.ldap.create;
+
+import javax.naming.NamingException;
+import javax.naming.directory.Attributes;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants;
+import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants;
+import org.apache.tuscany.das.ldap.schema.constants.SchemaObjectClassConstants;
+
+/**
+ * The Class InitialContextCreatorHelper.
+ */
+public class InitialContextCreatorHelper
+implements
+ObjectClassConstants,
+SchemaObjectClassConstants, 
+AttributeTypeConstants
+{
+    /**
+     * Lookup the subcontext and if it does not exist,
+     * create it.
+     * 
+     * @param ldapContext the dir context
+     * @param subContext the sub context
+     * 
+     * @return the dir context
+     * 
+     * @throws NamingException the naming exception
+     */
+    public static LdapContext createSubContext(
+        LdapContext ldapContext, 
+        String subContext,
+        Attributes attributes) 
+    throws NamingException
+    {
+        try
+        {
+            ldapContext = ( LdapContext ) ldapContext.lookup( subContext );
+        }
+        catch ( NamingException e )
+        {
+            if (attributes == null)
+            {
+                ldapContext = ( LdapContext ) ldapContext.createSubcontext( subContext );                
+            }
+            else
+            {
+                ldapContext = ( LdapContext ) ldapContext.createSubcontext( subContext, attributes );
+            }
+        }
+        return ldapContext;
+    }
+
+    /**
+     * Creates the authority context.
+     * 
+     * @param authorityTokens the authority tokens
+     * @param ldapContext the directory context
+     * 
+     * @return the dir context
+     * 
+     * @throws NamingException the naming exception
+     */
+    public static LdapContext createAuthorityContext(
+    		LdapContext ldapContext, 
+        String[] authorityTokens) 
+    throws NamingException
+    {
+        for (int i = authorityTokens.length-1; i >= (0); i--)
+        {
+            String subContext = CN+ "=" + authorityTokens[i];
+            ldapContext = (LdapContext) createSubContext( 
+            		ldapContext, 
+            		subContext, null );
+        }
+        return ldapContext;
+    }
+    
+    /**
+     * Creates the path context.
+     * 
+     * @param ldapContext the dir context
+     * @param pathTokens the path tokens
+     * 
+     * @return the dir context
+     * 
+     * @throws NamingException the naming exception
+     */
+    public static LdapContext createPathContext(
+    		LdapContext ldapContext, 
+        String[] pathTokens) 
+    throws NamingException
+    {
+        for (int i = 1; i < (pathTokens.length); i++)
+        {
+            String subContext = CN + "=" + pathTokens[i];
+            ldapContext = (LdapContext) createSubContext( 
+            		ldapContext, 
+            		subContext, null );
+        }
+        return ldapContext;
+    }
+}
\ No newline at end of file



Mime
View raw message