Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 88222 invoked from network); 31 May 2007 19:59:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 May 2007 19:59:18 -0000 Received: (qmail 20036 invoked by uid 500); 31 May 2007 19:59:22 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 19989 invoked by uid 500); 31 May 2007 19:59:22 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 19964 invoked by uid 99); 31 May 2007 19:59:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 12:59:22 -0700 X-ASF-Spam-Status: No, hits=-98.6 required=10.0 tests=ALL_TRUSTED,INFO_TLD,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 12:59:10 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 7CD121A9823; Thu, 31 May 2007 12:58:50 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r543239 [4/37] - in /directory/sandbox/oersoy/das.testing/das.ldap.parent: ./ das.ldap.configuration.model.ecore.v100/ das.ldap.configuration.model.ecore.v100/.settings/ das.ldap.configuration.model.ecore.v100/model/ das.ldap.configuration.... Date: Thu, 31 May 2007 19:58:38 -0000 To: commits@directory.apache.org From: oersoy@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070531195850.7CD121A9823@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java Thu May 31 12:58:13 2007 @@ -0,0 +1,627 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.das.ldap.configuration.model.v100.impl; + +import java.util.Hashtable; + +import javax.naming.NamingException; + +import javax.naming.directory.DirContext; + +import org.apache.tuscany.das.ldap.configuration.model.v100.ConnectionManager; +import org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration; +import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Factory; +import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package; + +import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants; +import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class DASLdapModelV100PackageImpl extends EPackageImpl implements DASLdapModelV100Package +{ + /** + * + * + * @generated + */ + private EClass connectionManagerEClass = null; + + /** + * + * + * @generated + */ + private EClass dasConfigurationEClass = null; + + /** + * + * + * @generated + */ + private EClass attributeTypeConstantsEClass = null; + + /** + * + * + * @generated + */ + private EClass objectClassConstantsEClass = null; + + /** + * + * + * @generated + */ + private EDataType namingExceptionEDataType = null; + + /** + * + * + * @generated + */ + private EDataType dirContextEDataType = null; + + /** + * + * + * @generated + */ + private EDataType hashtableEDataType = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#eNS_URI + * @see #init() + * @generated + */ + private DASLdapModelV100PackageImpl() + { + super(eNS_URI, DASLdapModelV100Factory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this + * model, and for any others upon which it depends. Simple + * dependencies are satisfied by calling this method on all + * dependent packages before doing anything else. This method drives + * initialization for interdependent packages directly, in parallel + * with this package, itself. + *

Of this package and its interdependencies, all packages which + * have not yet been registered by their URI values are first created + * and registered. The packages are then initialized in two steps: + * meta-model objects for all of the packages are created before any + * are initialized, since one package's meta-model objects may refer to + * those of another. + *

Invocation of this method will not affect any packages that have + * already been initialized. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static DASLdapModelV100Package init() + { + if (isInited) return (DASLdapModelV100Package)EPackage.Registry.INSTANCE.getEPackage(DASLdapModelV100Package.eNS_URI); + + // Obtain or create and register package + DASLdapModelV100PackageImpl theDASLdapModelV100Package = (DASLdapModelV100PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof DASLdapModelV100PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new DASLdapModelV100PackageImpl()); + + isInited = true; + + // Create package meta-data objects + theDASLdapModelV100Package.createPackageContents(); + + // Initialize created meta-data + theDASLdapModelV100Package.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theDASLdapModelV100Package.freeze(); + + return theDASLdapModelV100Package; + } + + /** + * + * + * @generated + */ + public EClass getConnectionManager() + { + return connectionManagerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_JavaNamingFactoryInitial() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_JavaNamingSecurityAuthentication() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_JavaNamingSecurityPrincipal() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_JavaNamingSecurityCredentials() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_SchemaPartitionDN() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_HotPartitionContextFactory() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_Port() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_Host() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getConnectionManager_DasPartitionName() + { + return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getConnectionManager_DasConfiguration() + { + return (EReference)connectionManagerEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EClass getDASConfiguration() + { + return dasConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDASConfiguration_GenModelName() + { + return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDASConfiguration_RepositoryBase() + { + return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDASConfiguration_JarName() + { + return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDASConfiguration_XsdNsURI() + { + return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getDASConfiguration_XsdNsPrefix() + { + return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getDASConfiguration_OidPrefix() + { + return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getAttributeTypeConstants() + { + return attributeTypeConstantsEClass; + } + + /** + * + * + * @generated + */ + public EClass getObjectClassConstants() + { + return objectClassConstantsEClass; + } + + /** + * + * + * @generated + */ + public EDataType getNamingException() + { + return namingExceptionEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getDirContext() + { + return dirContextEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getHashtable() + { + return hashtableEDataType; + } + + /** + * + * + * @generated + */ + public DASLdapModelV100Factory getDASLdapModelV100Factory() + { + return (DASLdapModelV100Factory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() + { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + connectionManagerEClass = createEClass(CONNECTION_MANAGER); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__JAVA_NAMING_FACTORY_INITIAL); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__JAVA_NAMING_SECURITY_AUTHENTICATION); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__JAVA_NAMING_SECURITY_PRINCIPAL); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__JAVA_NAMING_SECURITY_CREDENTIALS); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__SCHEMA_PARTITION_DN); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__HOT_PARTITION_CONTEXT_FACTORY); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__PORT); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__HOST); + createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__DAS_PARTITION_NAME); + createEReference(connectionManagerEClass, CONNECTION_MANAGER__DAS_CONFIGURATION); + + dasConfigurationEClass = createEClass(DAS_CONFIGURATION); + createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__GEN_MODEL_NAME); + createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__REPOSITORY_BASE); + createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__JAR_NAME); + createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__XSD_NS_URI); + createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__XSD_NS_PREFIX); + createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__OID_PREFIX); + + attributeTypeConstantsEClass = createEClass(ATTRIBUTE_TYPE_CONSTANTS); + + objectClassConstantsEClass = createEClass(OBJECT_CLASS_CONSTANTS); + + // Create data types + namingExceptionEDataType = createEDataType(NAMING_EXCEPTION); + dirContextEDataType = createEDataType(DIR_CONTEXT); + hashtableEDataType = createEDataType(HASHTABLE); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() + { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + connectionManagerEClass.getESuperTypes().add(this.getAttributeTypeConstants()); + connectionManagerEClass.getESuperTypes().add(this.getObjectClassConstants()); + + // Initialize classes and features; add operations and parameters + initEClass(connectionManagerEClass, ConnectionManager.class, "ConnectionManager", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getConnectionManager_JavaNamingFactoryInitial(), ecorePackage.getEString(), "javaNamingFactoryInitial", "com.sun.jndi.ldap.LdapCtxFactory", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConnectionManager_JavaNamingSecurityAuthentication(), ecorePackage.getEString(), "javaNamingSecurityAuthentication", "simple", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConnectionManager_JavaNamingSecurityPrincipal(), ecorePackage.getEString(), "javaNamingSecurityPrincipal", "uid=admin,ou=system", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConnectionManager_JavaNamingSecurityCredentials(), ecorePackage.getEString(), "javaNamingSecurityCredentials", "secret", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConnectionManager_SchemaPartitionDN(), ecorePackage.getEString(), "schemaPartitionDN", "ou=schema", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConnectionManager_HotPartitionContextFactory(), ecorePackage.getEString(), "hotPartitionContextFactory", "org.apache.directory.server.core.jndi.CoreContextFactory", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConnectionManager_Port(), ecorePackage.getEString(), "port", "10389", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConnectionManager_Host(), ecorePackage.getEString(), "host", "localhost", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConnectionManager_DasPartitionName(), ecorePackage.getEString(), "dasPartitionName", "das", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getConnectionManager_DasConfiguration(), this.getDASConfiguration(), null, "dasConfiguration", null, 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + EOperation op = addEOperation(connectionManagerEClass, null, "disconnect"); + addEParameter(op, this.getDirContext(), "dirContext", 0, 1); + addEException(op, this.getNamingException()); + + addEOperation(connectionManagerEClass, this.getHashtable(), "createAuthenticationEnvironment", 0, 1); + + addEOperation(connectionManagerEClass, this.getHashtable(), "createSchemaEnvironment", 0, 1); + + addEOperation(connectionManagerEClass, this.getHashtable(), "createDasPartitionEnvironment", 0, 1); + + op = addEOperation(connectionManagerEClass, this.getDirContext(), "createDASPartition", 0, 1); + addEException(op, this.getNamingException()); + + addEOperation(connectionManagerEClass, ecorePackage.getEString(), "getSchemaURL", 0, 1); + + addEOperation(connectionManagerEClass, ecorePackage.getEString(), "getDasURL", 0, 1); + + addEOperation(connectionManagerEClass, ecorePackage.getEString(), "getDASPartitionDN", 0, 1); + + addEOperation(connectionManagerEClass, ecorePackage.getEString(), "getDASSchemaRDN", 0, 1); + + initEClass(dasConfigurationEClass, DASConfiguration.class, "DASConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDASConfiguration_GenModelName(), ecorePackage.getEString(), "genModelName", "model.genmodel", 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDASConfiguration_RepositoryBase(), ecorePackage.getEString(), "repositoryBase", "/usr/share/java", 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDASConfiguration_JarName(), ecorePackage.getEString(), "jarName", null, 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDASConfiguration_XsdNsURI(), ecorePackage.getEString(), "xsdNsURI", "ou=example, ou=com", 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDASConfiguration_XsdNsPrefix(), ecorePackage.getEString(), "xsdNsPrefix", "ou=example, ou=com", 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDASConfiguration_OidPrefix(), ecorePackage.getEString(), "oidPrefix", "1.3.6.1.4.1.18060.4", 1, 1, DASConfiguration.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + addEOperation(dasConfigurationEClass, ecorePackage.getEResource(), "loadGeneratorModel", 0, 1); + + addEOperation(dasConfigurationEClass, ecorePackage.getEBoolean(), "hasValidNamespaceURI", 0, 1); + + addEOperation(dasConfigurationEClass, ecorePackage.getEBoolean(), "isEPackageMetaDataWritten", 0, 1); + + initEClass(attributeTypeConstantsEClass, AttributeTypeConstants.class, "AttributeTypeConstants", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); + + initEClass(objectClassConstantsEClass, ObjectClassConstants.class, "ObjectClassConstants", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); + + // Initialize data types + initEDataType(namingExceptionEDataType, NamingException.class, "NamingException", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(dirContextEDataType, DirContext.class, "DirContext", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(hashtableEDataType, Hashtable.class, "Hashtable", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS, "java.util.Hashtable"); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2002/GenModel + createGenModelAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2002/GenModel. + * + * + * @generated + */ + protected void createGenModelAnnotations() + { + String source = "http://www.eclipse.org/emf/2002/GenModel"; + addAnnotation + (connectionManagerEClass.getEOperations().get(0), + source, + new String[] + { + "body", "dirContext.close();" + }); + addAnnotation + (connectionManagerEClass.getEOperations().get(1), + source, + new String[] + { + "body", "<%Hashtable%> env = new Hashtable();\nenv.put( \n<%javax.naming.Context%>.SECURITY_PRINCIPAL, \nthis.javaNamingSecurityPrincipal );\nenv.put(Context.SECURITY_CREDENTIALS, \nthis.javaNamingSecurityCredentials );\nenv.put(Context.SECURITY_AUTHENTICATION, \nthis.javaNamingSecurityAuthentication );\n\n return env;\n" + }); + addAnnotation + (connectionManagerEClass.getEOperations().get(2), + source, + new String[] + { + "body", "<%Hashtable%> env = new Hashtable();\nenv.put( \n<%javax.naming.Context%>.SECURITY_PRINCIPAL, \nthis.javaNamingSecurityPrincipal );\nenv.put(Context.SECURITY_CREDENTIALS, \nthis.javaNamingSecurityCredentials );\nenv.put(Context.SECURITY_AUTHENTICATION, \nthis.javaNamingSecurityAuthentication );\n\n return env;\n" + }); + addAnnotation + (connectionManagerEClass.getEOperations().get(3), + source, + new String[] + { + "body", "<%Hashtable%> env = new Hashtable();\nenv.put( \n<%javax.naming.Context%>.SECURITY_PRINCIPAL, \nthis.javaNamingSecurityPrincipal );\nenv.put(Context.SECURITY_CREDENTIALS, \nthis.javaNamingSecurityCredentials );\nenv.put(Context.SECURITY_AUTHENTICATION, \nthis.javaNamingSecurityAuthentication );\n\n return env;\n" + }); + addAnnotation + (connectionManagerEClass.getEOperations().get(4), + source, + new String[] + { + "body", "<%org.apache.directory.server.core.configuration.MutableStartupConfiguration%> configuration = \nnew MutableStartupConfiguration();\n \n<%org.apache.directory.server.core.configuration.MutablePartitionConfiguration%> dasPartition = \n new MutablePartitionConfiguration();\n \ndasPartition.setName( getDasPartitionName() );\ndasPartition.setSuffix( getDASPartitionDN() );\n\n<%java.util.Set%> partitions = \nnew <%java.util.HashSet%> ();\npartitions.add( dasPartition );\nconfiguration.setContextPartitionConfigurations( partitions );\n \n<%javax.naming.directory.Attributes%> suffixAttributes = new <%javax.naming.directory.BasicAttributes%>();\nsuffixAttributes.put( \"objectClass\", \"top\");\nsuffixAttributes.get( \"objectClass\" ).add( \"organizationalUnit\" );\nsuffixAttributes.put( \"ou\", \"das\" );\n\ndasPartition.setContextEntry( suffixAttributes );\n \n<%java.uti l.Hashtable%> env = createAuthenticationEnvironment();\n \nenv.put(Context.INITIAL_CONTEXT_FACTORY, \nhotPartitionContextFactory);\n \nenv.put( Context.PROVIDER_URL, getDASPartitionDN() );\n\nenv.put( <%org.apache.directory.server.core.configuration.Configuration%>.JNDI_KEY, configuration );\n \nreturn new <%javax.naming.directory.InitialDirContext%>( env );" + }); + addAnnotation + (connectionManagerEClass.getEOperations().get(5), + source, + new String[] + { + "body", "return \"ldap://\" + getHost() + \":\" + getPort() + \"/\" + getSchemaPartitionDN();" + }); + addAnnotation + (connectionManagerEClass.getEOperations().get(6), + source, + new String[] + { + "body", "return \"ldap://\" + getHost() + \":\" + getPort() + \"/\" + getDASPartitionDN();" + }); + addAnnotation + (connectionManagerEClass.getEOperations().get(7), + source, + new String[] + { + "body", "return \"ou=\" + getDasPartitionName();" + }); + addAnnotation + (connectionManagerEClass.getEOperations().get(8), + source, + new String[] + { + "body", "return \"cn=\" + getDasPartitionName();" + }); + addAnnotation + (dasConfigurationEClass.getEOperations().get(1), + source, + new String[] + { + "body", " <%org.eclipse.emf.common.util.URI%> xsdNamespaceURI = URI.createURI(xsdNsURI);\n String authority = xsdNamespaceURI.authority();\n\n if ( authority.contains( \":\" ) )\n {\n return false;\n }\n \n if (!authority.contains( \".\" ))\n {\n return false;\n }\n return true;" + }); + } + +} //DASLdapModelV100PackageImpl Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.java URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.java?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.java (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.java Thu May 31 12:58:13 2007 @@ -0,0 +1,199 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.das.ldap.configuration.model.v100.util; + +import org.apache.tuscany.das.ldap.configuration.model.v100.*; + +import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants; +import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package + * @generated + */ +public class DASLdapModelV100AdapterFactory extends AdapterFactoryImpl +{ + /** + * The cached model package. + * + * + * @generated + */ + protected static DASLdapModelV100Package modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public DASLdapModelV100AdapterFactory() + { + if (modelPackage == null) + { + modelPackage = DASLdapModelV100Package.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) + { + if (object == modelPackage) + { + return true; + } + if (object instanceof EObject) + { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch the delegates to the createXXX methods. + * + * + * @generated + */ + protected DASLdapModelV100Switch modelSwitch = + new DASLdapModelV100Switch() + { + @Override + public Adapter caseConnectionManager(ConnectionManager object) + { + return createConnectionManagerAdapter(); + } + @Override + public Adapter caseDASConfiguration(DASConfiguration object) + { + return createDASConfigurationAdapter(); + } + @Override + public Adapter caseAttributeTypeConstants(AttributeTypeConstants object) + { + return createAttributeTypeConstantsAdapter(); + } + @Override + public Adapter caseObjectClassConstants(ObjectClassConstants object) + { + return createObjectClassConstantsAdapter(); + } + @Override + public Adapter defaultCase(EObject object) + { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) + { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.apache.tuscany.das.ldap.configuration.model.v100.ConnectionManager Connection Manager}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.tuscany.das.ldap.configuration.model.v100.ConnectionManager + * @generated + */ + public Adapter createConnectionManagerAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration DAS Configuration}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration + * @generated + */ + public Adapter createDASConfigurationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants Attribute Type Constants}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants + * @generated + */ + public Adapter createAttributeTypeConstantsAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants Object Class Constants}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants + * @generated + */ + public Adapter createObjectClassConstantsAdapter() + { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() + { + return null; + } + +} //DASLdapModelV100AdapterFactory Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.java URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.java?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.java (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.java Thu May 31 12:58:13 2007 @@ -0,0 +1,202 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.das.ldap.configuration.model.v100.util; + +import java.util.List; + +import org.apache.tuscany.das.ldap.configuration.model.v100.*; + +import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants; +import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package + * @generated + */ +public class DASLdapModelV100Switch +{ + /** + * The cached model package + * + * + * @generated + */ + protected static DASLdapModelV100Package modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public DASLdapModelV100Switch() + { + if (modelPackage == null) + { + modelPackage = DASLdapModelV100Package.eINSTANCE; + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + public T doSwitch(EObject theEObject) + { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) + { + if (theEClass.eContainer() == modelPackage) + { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else + { + List eSuperTypes = theEClass.getESuperTypes(); + return + eSuperTypes.isEmpty() ? + defaultCase(theEObject) : + doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) + { + switch (classifierID) + { + case DASLdapModelV100Package.CONNECTION_MANAGER: + { + ConnectionManager connectionManager = (ConnectionManager)theEObject; + T result = caseConnectionManager(connectionManager); + if (result == null) result = caseAttributeTypeConstants(connectionManager); + if (result == null) result = caseObjectClassConstants(connectionManager); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DASLdapModelV100Package.DAS_CONFIGURATION: + { + DASConfiguration dasConfiguration = (DASConfiguration)theEObject; + T result = caseDASConfiguration(dasConfiguration); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpretting the object as an instance of 'Connection Manager'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpretting the object as an instance of 'Connection Manager'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConnectionManager(ConnectionManager object) + { + return null; + } + + /** + * Returns the result of interpretting the object as an instance of 'DAS Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpretting the object as an instance of 'DAS Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDASConfiguration(DASConfiguration object) + { + return null; + } + + /** + * Returns the result of interpretting the object as an instance of 'Attribute Type Constants'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpretting the object as an instance of 'Attribute Type Constants'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAttributeTypeConstants(AttributeTypeConstants object) + { + return null; + } + + /** + * Returns the result of interpretting the object as an instance of 'Object Class Constants'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpretting the object as an instance of 'Object Class Constants'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseObjectClassConstants(ObjectClassConstants object) + { + return null; + } + + /** + * Returns the result of interpretting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpretting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) + { + return null; + } + +} //DASLdapModelV100Switch Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.java URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.java?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.java (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.java Thu May 31 12:58:13 2007 @@ -0,0 +1,20 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.das.ldap.configuration.model.v100.validation; + + +/** + * A sample validator interface for {@link org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface AttributeTypeConstantsValidator +{ + boolean validate(); + +} Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.java URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.java?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.java (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.java Thu May 31 12:58:13 2007 @@ -0,0 +1,31 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.das.ldap.configuration.model.v100.validation; + +import org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration; + +/** + * A sample validator interface for {@link org.apache.tuscany.das.ldap.configuration.model.v100.ConnectionManager}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface ConnectionManagerValidator +{ + boolean validate(); + + boolean validateJavaNamingFactoryInitial(String value); + boolean validateJavaNamingSecurityAuthentication(String value); + boolean validateJavaNamingSecurityPrincipal(String value); + boolean validateJavaNamingSecurityCredentials(String value); + boolean validateSchemaPartitionDN(String value); + boolean validateHotPartitionContextFactory(String value); + boolean validatePort(String value); + boolean validateHost(String value); + boolean validateDasPartitionName(String value); + boolean validateDasConfiguration(DASConfiguration value); +} Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.java URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.java?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.java (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.java Thu May 31 12:58:13 2007 @@ -0,0 +1,26 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.das.ldap.configuration.model.v100.validation; + + +/** + * A sample validator interface for {@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface DASConfigurationValidator +{ + boolean validate(); + + boolean validateGenModelName(String value); + boolean validateRepositoryBase(String value); + boolean validateJarName(String value); + boolean validateXsdNsURI(String value); + boolean validateXsdNsPrefix(String value); + boolean validateOidPrefix(String value); +} Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.java URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.java?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.java (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.java Thu May 31 12:58:13 2007 @@ -0,0 +1,20 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.das.ldap.configuration.model.v100.validation; + + +/** + * A sample validator interface for {@link org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface ObjectClassConstantsValidator +{ + boolean validate(); + +} Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/test/java/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.java URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/test/java/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.java?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/test/java/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.java (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/test/java/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.java Thu May 31 12:58:13 2007 @@ -0,0 +1,238 @@ +package org.apache.tuscany.das.ldap.configuration.v100; + +import java.util.Hashtable; + +import javax.naming.NamingException; +import javax.naming.directory.Attribute; +import javax.naming.directory.Attributes; +import javax.naming.directory.BasicAttribute; +import javax.naming.directory.BasicAttributes; +import javax.naming.directory.DirContext; +import javax.naming.directory.InitialDirContext; + +import org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration; +import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Factory; +import org.apache.tuscany.das.ldap.configuration.model.v100.ConnectionManager; +import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants; +import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants; +import org.apache.tuscany.das.ldap.util.InitialContextCreator; + +import junit.framework.TestCase; + +public class ConnectionManagerTest extends TestCase +implements AttributeTypeConstants, ObjectClassConstants { + + private DASLdapModelV100Factory dasLdapV100Factory = null; + private ConnectionManager connectionManager = null; +// private DirContext partitionContext = null; +// private DirContext schemaContext = null; + + private String xsdNamespace = + "http://example.org/users/accounts"; + + protected void setUp() + throws Exception { + super.setUp(); + dasLdapV100Factory = + DASLdapModelV100Factory.eINSTANCE; + + DASConfiguration dasConfiguration = + dasLdapV100Factory.createDASConfiguration(); + + dasConfiguration.setXsdNsURI( xsdNamespace ); + + connectionManager = + dasLdapV100Factory.createConnectionManager(); + + connectionManager.setDasPartitionName( "system" ); + + connectionManager.setDasConfiguration( dasConfiguration ); + } + + protected void tearDown() + throws Exception { + super.tearDown(); + } + + + /* + public void testCreateObjectClass() + throws NamingException + { + DirContext directoryContext = + connectionManager.createSchemaObjectClassesContext(); + + Attribute attribute = new BasicAttribute( "objectClass", "metaObjectclass" ); + attribute.add("metaTop" ); + attribute.add( "top" ); + + Attributes attributes = new BasicAttributes(); + + attributes.put( "m-oid", "1.3.6.1.4.1.18060.18060.18060.0.4.1.2.28" ); + //attributes.put( "m-description", "org.example.user.account.Account" ); + //attributes.put( "m-must", "id" ); + //attributes.put( "m-must", "org-example-user-account-Account-name" ); + //attributes.put( "m-may", "street" ); + attributes.put( "m-obsolete", "false" ); + + directoryContext.createSubcontext( + "m-oid=1.3.6.1.4.1.18060.18060.18060.0.4.1.2.28", + attributes); + + connectionManager.disconnect( directoryContext ); + } + */ + + /* + private void modify( int op, List descriptions, String opAttr ) throws NamingException + { + LdapDN dn = new LdapDN( getSubschemaSubentryDN() ); + Attribute attr = new AttributeImpl( opAttr ); + for ( String description : descriptions ) + { + attr.add( description ); + } + + Attributes mods = new AttributesImpl(); + mods.put( attr ); + + rootDSE.modifyAttributes( dn, op, mods ); + } + + + + private void createDummySyntaxChecker( String oid, String schema ) throws NamingException + { + List descriptions = new ArrayList(); + descriptions.add( "( " + oid + " DESC 'bogus desc' FQCN " + AcceptAllSyntaxChecker.class.getName() + + " X-SCHEMA '" + schema + "' )" ); + modify( DirContext.ADD_ATTRIBUTE, descriptions, "syntaxCheckers" ); + } + */ + + /* + public void testCreateSyntax() throws NamingException + { + DirContext syntaxContext = + connectionManager.createSchemaSyntaxesContext(); + + DirContext syntaxCheckersContext = + connectionManager.createSchemaSyntaxCheckersContext(); + + + Attributes syntaxCheckerAttributes = + new BasicAttributes(); + Attribute syntaxCheckerAttribute = + new BasicAttribute("objectClass", "metaSyntaxChecker"); + syntaxCheckerAttribute.add("metaTop"); + syntaxCheckerAttribute.add("top"); + + syntaxCheckerAttributes.put( syntaxCheckerAttribute ); + syntaxCheckerAttributes.put( + "m-fqcn", + "org.apache.directory.shared.ldap.schema.syntax.AcceptAllSyntaxChecker" ); + + syntaxCheckerAttributes.put( "m-oid","1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5" ); + syntaxCheckersContext.destroySubcontext( "m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5" ); + syntaxCheckersContext.createSubcontext( + "m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5", + syntaxCheckerAttributes); + + + Attributes attributes = new BasicAttributes(); + Attribute attribute = new BasicAttribute( + "objectClass", + "metaSyntax"); + attribute.add("metaTop"); + attribute.add("top"); + + attributes.put( "m-oid","1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5" ); + + syntaxContext.createSubcontext( + "m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5", + attributes); + } + */ + +/* + public void testConnect() + throws NamingException + { + partitionContext = connectionManager.connect(); + + assertEquals( + partitionContext.getNameInNamespace(), + "ou=das"); + + System.out.println(partitionContext.getNameInNamespace()); + + partitionContext.close(); + } +*/ + + /* + public void testSchemaConnect() + throws NamingException + { + + schemaContext = connectionManager.schemaConnect(); + + assertEquals( + schemaContext.getNameInNamespace(), + "cn=das,ou=schema"); + + System.out.println(schemaContext.getNameInNamespace()); + schemaContext.close(); + + } + */ + + + /* + public void testIsEPackageMetaDataWritten() + throws NamingException + { +// directoryContext = jndiProperties.schemaConnect(); + directoryContext = connect(); + DirContext dirContext = ( DirContext ) + directoryContext.createSubcontext( "cn=test1" ); + + dirContext.createSubcontext( "cn=test2" ); + + directoryContext.lookup( "cn=test2, cn=test1" ); + + dirContext.destroySubcontext( "cn=test2" ); + directoryContext.destroySubcontext( "cn=test1" ); + + directoryContext.close(); + } + */ + + public DirContext connect() throws NamingException + { + Hashtable env = new Hashtable(); + //"org.apache.directory.server.core.jndi.CoreContextFactory" + env.put( + "java.naming.factory.initial", + "com.sun.jndi.ldap.LdapCtxFactory" ); + env.put( + "java.naming.provider.url", + "ldap://localhost:10389/ou=schema"); + env.put( + "java.naming.security.authentication", + "simple"); + env.put( + "java.naming.security.principal", + "uid=admin,ou=system" ); + env.put( + "java.naming.security.credentials", + "secret" ); + + return new InitialDirContext(env); + } + + public void testModelLoad() + { + assertTrue(true); + } +} Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/ConnectionManager.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/ConnectionManager.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/ConnectionManager.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASConfiguration.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASConfiguration.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASConfiguration.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Factory.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Factory.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Factory.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package$Literals.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package%24Literals.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package$Literals.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/ConnectionManagerImpl.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/ConnectionManagerImpl.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/ConnectionManagerImpl.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigurationImpl.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigurationImpl.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigurationImpl.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory$1.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory%241.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory$1.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/das.ldap.configuration.model.v100-1.0-SNAPSHOT.jar URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/das.ldap.configuration.model.v100-1.0-SNAPSHOT.jar?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/das.ldap.configuration.model.v100-1.0-SNAPSHOT.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/TEST-org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.xml URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/TEST-org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.xml?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/TEST-org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.xml (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/TEST-org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.xml Thu May 31 12:58:13 2007 @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.txt URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.txt?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.txt (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.txt Thu May 31 12:58:13 2007 @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.295 sec Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/test-classes/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.class URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/test-classes/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.class?view=auto&rev=543239 ============================================================================== Binary file - no diff available. Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/test-classes/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/text/description.txt URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/text/description.txt?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/text/description.txt (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/text/description.txt Thu May 31 12:58:13 2007 @@ -0,0 +1,50 @@ +Model Model + +This model description is not a real EMF artifact. It was generated by the +org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's +code generator can be extended. +This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + +Package v100 + + Class ConnectionManager -> AttributeTypeConstants, ObjectClassConstants + Attribute javaNamingFactoryInitial : EString + Attribute javaNamingSecurityAuthentication : EString + Attribute javaNamingSecurityPrincipal : EString + Attribute javaNamingSecurityCredentials : EString + Attribute schemaPartitionDN : EString + Attribute hotPartitionContextFactory : EString + Attribute port : EString + Attribute host : EString + Attribute dasPartitionName : EString + Reference dasConfiguration : DASConfiguration + Operation disconnect(DirContext) : void + Operation createAuthenticationEnvironment() : Hashtable + Operation createSchemaEnvironment() : Hashtable + Operation createDasPartitionEnvironment() : Hashtable + Operation createDASPartition() : DirContext + Operation getSchemaURL() : EString + Operation getDasURL() : EString + Operation getDASPartitionDN() : EString + Operation getDASSchemaRDN() : EString + + Class DASConfiguration + Attribute genModelName : EString + Attribute repositoryBase : EString + Attribute jarName : EString + Attribute xsdNsURI : EString + Attribute xsdNsPrefix : EString + Attribute oidPrefix : EString<<1..1>> + Operation loadGeneratorModel() : EResource + Operation hasValidNamespaceURI() : EBoolean + Operation isEPackageMetaDataWritten() : EBoolean + + Class AttributeTypeConstants + + Class ObjectClassConstants + + DataType NamingException + + DataType DirContext + + DataType Hashtable Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.classpath URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.classpath?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.classpath (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.classpath Thu May 31 12:58:13 2007 @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.project URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.project?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.project (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.project Thu May 31 12:58:13 2007 @@ -0,0 +1,14 @@ + + das.ldap.constants + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.jdt.core.javanature + + \ No newline at end of file Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.settings/org.eclipse.jdt.core.prefs URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.settings/org.eclipse.jdt.core.prefs?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.settings/org.eclipse.jdt.core.prefs (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.settings/org.eclipse.jdt.core.prefs Thu May 31 12:58:13 2007 @@ -0,0 +1,5 @@ +#Wed Apr 25 09:53:11 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.testing/das.ldap.parent/das.ldap.constants/pom.xml URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/pom.xml?view=auto&rev=543239 ============================================================================== --- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/pom.xml (added) +++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/pom.xml Thu May 31 12:58:13 2007 @@ -0,0 +1,21 @@ + + + das.ldap.parent + org.apache.tuscany + 1.0-SNAPSHOT + + 4.0.0 + org.apache.tuscany + das.ldap.constants + das.ldap.constants + 1.0-SNAPSHOT + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + + \ No newline at end of file