directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r568964 [1/3] - in /directory/studio/trunk/studio-connection-core: ./ META-INF/ lib/ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/directory/ src/main/java/org/apache/directory/studio/ s...
Date Thu, 23 Aug 2007 13:15:45 GMT
Author: seelmann
Date: Thu Aug 23 06:15:22 2007
New Revision: 568964

URL: http://svn.apache.org/viewvc?rev=568964&view=rev
Log:
Added studio-connection-core plugin

Added:
    directory/studio/trunk/studio-connection-core/
    directory/studio/trunk/studio-connection-core/.classpath
    directory/studio/trunk/studio-connection-core/.project
    directory/studio/trunk/studio-connection-core/META-INF/
    directory/studio/trunk/studio-connection-core/META-INF/MANIFEST.MF
    directory/studio/trunk/studio-connection-core/build.properties
    directory/studio/trunk/studio-connection-core/build.xml
    directory/studio/trunk/studio-connection-core/ivy.xml
    directory/studio/trunk/studio-connection-core/lib/
    directory/studio/trunk/studio-connection-core/lib/commons-codec-1.3.jar   (with props)
    directory/studio/trunk/studio-connection-core/lib/commons-io-1.3.1.jar   (with props)
    directory/studio/trunk/studio-connection-core/lib/junit-3.8.2.jar   (with props)
    directory/studio/trunk/studio-connection-core/src/
    directory/studio/trunk/studio-connection-core/src/main/
    directory/studio/trunk/studio-connection-core/src/main/java/
    directory/studio/trunk/studio-connection-core/src/main/java/org/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Connection.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCorePlugin.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionPropertyPageProvider.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Credentials.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/IAuthHandler.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ICredentials.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Messages.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/StudioProgressMonitor.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Utils.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/event/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/event/ConnectionEventRegistry.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/event/ConnectionUpdateListener.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/event/CoreEventRunner.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/event/EventRunnable.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/event/EventRunner.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionWrapper.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/CancelException.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/DummySSLSocketFactory.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/AbstractAsyncBulkJob.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/AbstractConnectionJob.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/CheckBindJob.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/CheckNetworkParameterJob.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/CloseConnectionsJob.java
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/OpenConnectionsJob.java
    directory/studio/trunk/studio-connection-core/src/main/resources/
    directory/studio/trunk/studio-connection-core/src/main/resources/org/
    directory/studio/trunk/studio-connection-core/src/main/resources/org/apache/
    directory/studio/trunk/studio-connection-core/src/main/resources/org/apache/directory/
    directory/studio/trunk/studio-connection-core/src/main/resources/org/apache/directory/studio/
    directory/studio/trunk/studio-connection-core/src/main/resources/org/apache/directory/studio/connection/
    directory/studio/trunk/studio-connection-core/src/main/resources/org/apache/directory/studio/connection/core/
    directory/studio/trunk/studio-connection-core/src/main/resources/org/apache/directory/studio/connection/core/messages.properties
    directory/studio/trunk/studio-connection-core/src/test/
    directory/studio/trunk/studio-connection-core/src/test/java/
    directory/studio/trunk/studio-connection-core/target/
    directory/studio/trunk/studio-connection-core/target/${project.id}_${project.version}.jar   (with props)
    directory/studio/trunk/studio-connection-core/target/build/
    directory/studio/trunk/studio-connection-core/target/build/META-INF/
    directory/studio/trunk/studio-connection-core/target/build/META-INF/MANIFEST.MF
    directory/studio/trunk/studio-connection-core/target/build/lib/
    directory/studio/trunk/studio-connection-core/target/build/lib/commons-codec-1.3.jar   (with props)
    directory/studio/trunk/studio-connection-core/target/build/lib/commons-io-1.3.1.jar   (with props)
    directory/studio/trunk/studio-connection-core/target/build/lib/junit-3.8.2.jar   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/Activator.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/Connection.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionManager.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionParameter$AuthenticationMethod.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionParameter$EncryptionMethod.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionParameter.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionParameter_properties$EncryptionMethod.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionParameter_properties.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionRenamedEvent.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionUpdateEvent$EventDetail.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionUpdateEvent.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionUpdateListener.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ConnectionWrapper.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/EventRegistry$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/EventRegistry.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/EventRunnable.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/EventRunner.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ExtendedProgressMonitor$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ExtendedProgressMonitor$2.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ExtendedProgressMonitor$CancelEvent.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ExtendedProgressMonitor$CancelListener.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/ExtendedProgressMonitor.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/Messages.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/event/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/CancelException.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/DummySSLSocketFactory$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/DummySSLSocketFactory.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$2.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$3.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$4.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$5.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$6$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$6.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$7.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$8.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$InnerRunnable.class   (with props)
    directory/studio/trunk/studio-connection-core/target/build/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/
    directory/studio/trunk/studio-connection-core/target/classes/org/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/Connection.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionCoreConstants.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionCorePlugin.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionManager$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionManager$2.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionManager.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionParameter$AuthenticationMethod.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionParameter$EncryptionMethod.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionParameter.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ConnectionPropertyPageProvider.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/Credentials.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/IAuthHandler.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/ICredentials.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/Messages.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/StudioProgressMonitor$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/StudioProgressMonitor$2.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/StudioProgressMonitor$CancelEvent.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/StudioProgressMonitor$CancelListener.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/StudioProgressMonitor.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/Utils.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/ConnectionEventRegistry$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/ConnectionEventRegistry$2.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/ConnectionEventRegistry$3.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/ConnectionEventRegistry$4.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/ConnectionEventRegistry$5.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/ConnectionEventRegistry$6.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/ConnectionEventRegistry.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/ConnectionUpdateListener.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/CoreEventRunner.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/EventRunnable.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/event/EventRunner.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/ConnectionWrapper.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/CancelException.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/DummySSLSocketFactory$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/DummySSLSocketFactory.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$2.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$3.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$4.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$5.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$6$1.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$6.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$7.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$8.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper$InnerRunnable.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/jobs/
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/jobs/AbstractAsyncBulkJob.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/jobs/AbstractConnectionJob.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/jobs/CheckBindJob.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/jobs/CheckNetworkParameterJob.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/jobs/CloseConnectionsJob.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/jobs/OpenConnectionsJob.class   (with props)
    directory/studio/trunk/studio-connection-core/target/classes/org/apache/directory/studio/connection/core/messages.properties
    directory/studio/trunk/studio-connection-core/target/test-classes/

Added: directory/studio/trunk/studio-connection-core/.classpath
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/.classpath?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/.classpath (added)
+++ directory/studio/trunk/studio-connection-core/.classpath Thu Aug 23 06:15:22 2007
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="src" path="src/test/java"/>
+	<classpathentry kind="src" path="src/main/resources"/>
+	<classpathentry exported="true" kind="lib" path="lib/commons-io-1.3.1.jar"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: directory/studio/trunk/studio-connection-core/.project
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/.project?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/.project (added)
+++ directory/studio/trunk/studio-connection-core/.project Thu Aug 23 06:15:22 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>studio-connection-core</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: directory/studio/trunk/studio-connection-core/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/META-INF/MANIFEST.MF?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/META-INF/MANIFEST.MF (added)
+++ directory/studio/trunk/studio-connection-core/META-INF/MANIFEST.MF Thu Aug 23 06:15:22 2007
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Apache Directory Studio Connection Core
+Bundle-SymbolicName: org.apache.directory.studio.connection.core
+Bundle-Version: 1.0.0
+Bundle-Activator: org.apache.directory.studio.connection.core.ConnectionCorePlugin
+Bundle-Vendor: Apache Software Foundation
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime
+Eclipse-LazyStart: true
+Bundle-ClassPath: lib/commons-io-1.3.1.jar,
+ .
+Export-Package: org.apache.directory.studio.connection.core,
+ org.apache.directory.studio.connection.core.event,
+ org.apache.directory.studio.connection.core.io,
+ org.apache.directory.studio.connection.core.io.jndi,
+ org.apache.directory.studio.connection.core.jobs

Added: directory/studio/trunk/studio-connection-core/build.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/build.properties?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/build.properties (added)
+++ directory/studio/trunk/studio-connection-core/build.properties Thu Aug 23 06:15:22 2007
@@ -0,0 +1,5 @@
+source.. = src/main/java/
+output.. = target/classes/
+bin.includes = META-INF/,\
+               .,\
+               lib/commons-io-1.3.1.jar

Added: directory/studio/trunk/studio-connection-core/build.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/build.xml?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/build.xml (added)
+++ directory/studio/trunk/studio-connection-core/build.xml Thu Aug 23 06:15:22 2007
@@ -0,0 +1,44 @@
+<!--
+  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.
+-->
+<project default="plugin">
+	<import file="../studio-build/build.xml"/>
+	
+	
+	<!-- RETRIEVE-STUDIO-JAR-DEPENDENCIES TASK -->
+	<target name="retrieve-studio-jar-dependencies" description="Compiles the dependencies of the project" >
+		<ant dir="../studio-jars" target="retrieve-dependencies" inheritall="false" />
+	</target>
+	
+	
+	<!-- BUILD-CLASSPATH TASK -->
+	<target name="build-classpath" depends="retrieve-studio-jar-dependencies" description="Computes the classpath" >
+		<echo>Building classpath for ${project.name} (${project.id}) version ${project.version}</echo>
+		<path id="classpath">
+			<!-- Project dependencies -->
+			<fileset dir="${lib.dir}" />
+			<!-- Eclipse dependencies -->
+			<fileset dir="../dependencies/eclipse/3.2">
+				<include name="**/*.jar"/>
+			</fileset>
+			<!-- Plugin dependencies -->
+			<fileset dir="../studio-jars/lib/" />
+		</path>
+	</target>
+	
+</project>

Added: directory/studio/trunk/studio-connection-core/ivy.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/ivy.xml?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/ivy.xml (added)
+++ directory/studio/trunk/studio-connection-core/ivy.xml Thu Aug 23 06:15:22 2007
@@ -0,0 +1,26 @@
+<!--
+  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.
+-->
+<ivy-module version="1.0">
+	<info organisation="org.apache.directory.studio" module="studio-ldapbrowser-core"/>
+	<dependencies>
+		<dependency org="commons-io" name="commons-io" rev="1.3.1"/>
+		<dependency org="commons-codec" name="commons-codec" rev="1.3"/>
+		<dependency org="junit" name="junit" rev="3.8.2"/>
+    </dependencies>
+</ivy-module>
\ No newline at end of file

Added: directory/studio/trunk/studio-connection-core/lib/commons-codec-1.3.jar
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/lib/commons-codec-1.3.jar?rev=568964&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/studio-connection-core/lib/commons-codec-1.3.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/studio/trunk/studio-connection-core/lib/commons-io-1.3.1.jar
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/lib/commons-io-1.3.1.jar?rev=568964&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/studio-connection-core/lib/commons-io-1.3.1.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/studio/trunk/studio-connection-core/lib/junit-3.8.2.jar
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/lib/junit-3.8.2.jar?rev=568964&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/studio-connection-core/lib/junit-3.8.2.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Connection.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Connection.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Connection.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Connection.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,286 @@
+/*
+ *  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.studio.connection.core;
+
+
+import org.apache.directory.studio.connection.core.ConnectionParameter.AuthenticationMethod;
+import org.apache.directory.studio.connection.core.ConnectionParameter.EncryptionMethod;
+import org.apache.directory.studio.connection.core.event.ConnectionEventRegistry;
+import org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper;
+import org.eclipse.core.runtime.IAdaptable;
+
+
+/**
+ * The Connection class is the central .
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class Connection implements ConnectionPropertyPageProvider, IAdaptable
+{
+
+    private ConnectionParameter connectionParameter;
+
+    private JNDIConnectionWrapper jndiConnectionWrapper;
+
+
+    /**
+     * Creates a new instance of Connection.
+     *
+     * @param connectionParameter
+     */
+    public Connection( ConnectionParameter connectionParameter )
+    {
+        this.connectionParameter = connectionParameter;
+    }
+
+
+    /**
+     * @see java.lang.Object#clone()
+     */
+    public Object clone()
+    {
+        ConnectionParameter cp = new ConnectionParameter( getName(), getHost(), getPort(), getEncryptionMethod(),
+            getAuthMethod(), getBindPrincipal(), getBindPassword() );
+
+        Connection clone = new Connection( cp );
+
+        return clone;
+    }
+
+
+    /**
+     * Gets the JNDI connection wrapper.
+     * 
+     * @return the JNDI connection wrapper
+     */
+    public JNDIConnectionWrapper getJNDIConnectionWrapper()
+    {
+        if ( jndiConnectionWrapper == null )
+        {
+            jndiConnectionWrapper = new JNDIConnectionWrapper( this );
+        }
+        return jndiConnectionWrapper;
+    }
+
+
+    /**
+     * Gets the connection parameter.
+     * 
+     * @return the connection parameter
+     */
+    public ConnectionParameter getConnectionParameter()
+    {
+        return connectionParameter;
+    }
+
+
+    /**
+     * Sets the connection parameter.
+     * 
+     * @param connectionParameter the connection parameter
+     */
+    public void setConnectionParameter( ConnectionParameter connectionParameter )
+    {
+        this.connectionParameter = connectionParameter;
+    }
+
+
+    /**
+     * Gets the auth method.
+     * 
+     * @return the auth method
+     */
+    public AuthenticationMethod getAuthMethod()
+    {
+        return connectionParameter.getAuthMethod();
+    }
+
+
+    /**
+     * Gets the bind password.
+     * 
+     * @return the bind password
+     */
+    public String getBindPassword()
+    {
+        return connectionParameter.getBindPassword();
+    }
+
+
+    /**
+     * Gets the bind principal.
+     * 
+     * @return the bind principal
+     */
+    public String getBindPrincipal()
+    {
+        return connectionParameter.getBindPrincipal();
+    }
+
+
+    /**
+     * Gets the encryption method.
+     * 
+     * @return the encryption method
+     */
+    public EncryptionMethod getEncryptionMethod()
+    {
+        return connectionParameter.getEncryptionMethod();
+    }
+
+
+    /**
+     * Gets the host.
+     * 
+     * @return the host
+     */
+    public String getHost()
+    {
+        return connectionParameter.getHost();
+    }
+
+
+    /**
+     * Gets the name.
+     * 
+     * @return the name
+     */
+    public String getName()
+    {
+        return connectionParameter.getName();
+    }
+
+
+    /**
+     * Gets the port.
+     * 
+     * @return the port
+     */
+    public int getPort()
+    {
+        return connectionParameter.getPort();
+    }
+
+
+    /**
+     * Sets the auth method.
+     * 
+     * @param authMethod the auth method
+     */
+    public void setAuthMethod( AuthenticationMethod authMethod )
+    {
+        connectionParameter.setAuthMethod( authMethod );
+        ConnectionEventRegistry.fireConnectionUpdated( this, this );
+    }
+
+
+    /**
+     * Sets the bind password.
+     * 
+     * @param bindPassword the bind password
+     */
+    public void setBindPassword( String bindPassword )
+    {
+        connectionParameter.setBindPassword( bindPassword );
+        ConnectionEventRegistry.fireConnectionUpdated( this, this );
+    }
+
+
+    /**
+     * Sets the bind principal.
+     * 
+     * @param bindPrincipal the bind principal
+     */
+    public void setBindPrincipal( String bindPrincipal )
+    {
+        connectionParameter.setBindPrincipal( bindPrincipal );
+        ConnectionEventRegistry.fireConnectionUpdated( this, this );
+    }
+
+
+    /**
+     * Sets the encryption method.
+     * 
+     * @param encryptionMethod the encryption method
+     */
+    public void setEncryptionMethod( EncryptionMethod encryptionMethod )
+    {
+        connectionParameter.setEncryptionMethod( encryptionMethod );
+        ConnectionEventRegistry.fireConnectionUpdated( this, this );
+    }
+
+
+    /**
+     * Sets the host.
+     * 
+     * @param host the host
+     */
+    public void setHost( String host )
+    {
+        connectionParameter.setHost( host );
+        ConnectionEventRegistry.fireConnectionUpdated( this, this );
+    }
+
+
+    /**
+     * Sets the name.
+     * 
+     * @param name the name
+     */
+    public void setName( String name )
+    {
+        String oldName = getName();
+        connectionParameter.setName( name );
+        ConnectionEventRegistry.fireConnectionRenamed( this, oldName, this );
+    }
+
+
+    /**
+     * Sets the port.
+     * 
+     * @param port the port
+     */
+    public void setPort( int port )
+    {
+        connectionParameter.setPort( port );
+        ConnectionEventRegistry.fireConnectionUpdated( this, this );
+    }
+
+
+    /**
+     * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
+     */
+    public Object getAdapter( Class adapter )
+    {
+        //        if ( adapter.isAssignableFrom( ISearchPageScoreComputer.class ) )
+        //        {
+        //            return new LdapSearchPageScoreComputer();
+        //        }
+        if ( adapter == Connection.class )
+        {
+            return this;
+        }
+
+        return null;
+    }
+
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,34 @@
+/*
+ *  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.studio.connection.core;
+
+
+/**
+ * Constants for the connection core plugin.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public interface ConnectionCoreConstants
+{
+
+    /** The line separator. */
+    public static final String LINE_SEPARATOR = System.getProperty( "line.separator" ); //$NON-NLS-1$
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCorePlugin.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCorePlugin.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCorePlugin.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCorePlugin.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,161 @@
+/*
+ *  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.studio.connection.core;
+
+
+import org.apache.directory.studio.connection.core.event.CoreEventRunner;
+import org.apache.directory.studio.connection.core.event.EventRunner;
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class ConnectionCorePlugin extends Plugin
+{
+
+    /** The plug-in ID */
+    public static final String PLUGIN_ID = "org.apache.directory.studio.connection.core";
+
+    /** The shared instance */
+    private static ConnectionCorePlugin plugin;
+
+    /** The connection manager */
+    private ConnectionManager connectionManager;
+
+    /** The event runner. */
+    private EventRunner eventRunner;
+
+    /** The credential provider */
+    private IAuthHandler authHandler;
+
+
+    /**
+     * The constructor
+     */
+    public ConnectionCorePlugin()
+    {
+        plugin = this;
+    }
+
+
+    /**
+     * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
+     */
+    public void start( BundleContext context ) throws Exception
+    {
+        super.start( context );
+
+        if ( eventRunner == null )
+        {
+            eventRunner = new CoreEventRunner();
+        }
+
+        if ( connectionManager == null )
+        {
+            connectionManager = new ConnectionManager();
+        }
+    }
+
+
+    /**
+     * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+     */
+    public void stop( BundleContext context ) throws Exception
+    {
+        plugin = null;
+        super.stop( context );
+
+        if ( eventRunner != null )
+        {
+            eventRunner = null;
+        }
+
+        if ( connectionManager != null )
+        {
+            Connection[] connections = connectionManager.getConnections();
+            for ( int i = 0; i < connections.length; i++ )
+            {
+                connections[i].getJNDIConnectionWrapper().disconnect();
+            }
+            connectionManager = null;
+        }
+    }
+
+
+    /**
+     * Returns the shared instance
+     *
+     * @return the shared instance
+     */
+    public static ConnectionCorePlugin getDefault()
+    {
+        return plugin;
+    }
+
+
+    /**
+     * Gets the Connection Manager
+     *
+     * @return
+     *      the connection manager
+     */
+    public ConnectionManager getConnectionManager()
+    {
+        return connectionManager;
+    }
+
+
+    /**
+     * Gets the event runner.
+     *
+     * @return the event runner
+     */
+    public EventRunner getEventRunner()
+    {
+        return eventRunner;
+    }
+
+
+    /**
+     * Gets the AuthHandler
+     *
+     * @return
+     *      the AuthHandler
+     */
+    public IAuthHandler getAuthHandler()
+    {
+        return authHandler;
+    }
+
+
+    /**
+     * Sets the AuthHandler
+     *
+     * @param authHandler
+     *      the authHandler to set
+     */
+    public void setAuthHandler( IAuthHandler authHandler )
+    {
+        this.authHandler = authHandler;
+    }
+
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionManager.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,451 @@
+/*
+ *  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.studio.connection.core;
+
+
+import java.beans.Encoder;
+import java.beans.ExceptionListener;
+import java.beans.Expression;
+import java.beans.PersistenceDelegate;
+import java.beans.XMLDecoder;
+import java.beans.XMLEncoder;
+import java.io.BufferedInputStream;
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.directory.studio.connection.core.ConnectionParameter.AuthenticationMethod;
+import org.apache.directory.studio.connection.core.ConnectionParameter.EncryptionMethod;
+import org.apache.directory.studio.connection.core.event.ConnectionEventRegistry;
+import org.apache.directory.studio.connection.core.event.ConnectionUpdateListener;
+
+
+/**
+ * This class is used to manage {@link Connection}s.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class ConnectionManager implements ConnectionUpdateListener
+{
+
+    /** The list of connections. */
+    private List<Connection> connectionList;
+
+
+    /**
+     * Creates a new instance of ConnectionManager.
+     */
+    public ConnectionManager()
+    {
+        this.connectionList = new ArrayList<Connection>();
+        loadConnections();
+        ConnectionEventRegistry.addConnectionUpdateListener( this, ConnectionCorePlugin.getDefault().getEventRunner() );
+    }
+
+
+    /**
+     * Gets the filename of the Connection Store.
+     *
+     * @return
+     *      the filename of the Connection Store
+     */
+    public static final String getConnectionStoreFileName()
+    {
+        String filename = ConnectionCorePlugin.getDefault().getStateLocation().append( "connections.xml" ).toOSString(); //$NON-NLS-1$
+        //        File file = new File( filename );
+        //        if ( !file.exists() )
+        //        {
+        //            // try to convert old connections.xml:
+        //            // 1st search it in current workspace with the old ldapstudio plugin ID
+        //            // 2nd search it in old .ldapstudio workspace with the old ldapstudio plugin ID
+        //            String[] oldFilenames = new String[2];
+        //            oldFilenames[0] = filename.replace( "org.apache.directory.studio.ldapbrowser.core",
+        //                "org.apache.directory.ldapstudio.browser.core" );
+        //            oldFilenames[1] = oldFilenames[0].replace( ".ApacheDirectoryStudio",
+        //                ".ldapstudio" );
+        //            for ( int i = 0; i < oldFilenames.length; i++ )
+        //            {
+        //                File oldFile = new File( oldFilenames[i] );
+        //                if ( oldFile.exists() )
+        //                {
+        //                    try
+        //                    {
+        //                        String oldContent = FileUtils.readFileToString( oldFile, "UTF-8" );
+        //                        String newContent = oldContent.replace( "org.apache.directory.ldapstudio.browser.core",
+        //                            "org.apache.directory.studio.ldapbrowser.core" );
+        //                        FileUtils.writeStringToFile( file, newContent, "UTF-8" );
+        //                        break;
+        //                    }
+        //                    catch ( IOException e )
+        //                    {
+        //                        e.printStackTrace();
+        //                    }
+        //                }
+        //            }
+        //        }
+
+        return filename;
+    }
+
+
+    /**
+     * Adds the connection to the end of the connection list. If there is
+     * already a connection with this name, the new connection is renamed.
+     *
+     * @param connection
+     */
+    public void addConnection( Connection connection )
+    {
+        addConnection( connectionList.size(), connection );
+    }
+
+
+    /**
+     * Adds the connection at the specified position of the connection list.
+     * If there is already a connection with this name the new connection is
+     * renamed.
+     *
+     * @param index
+     * @param connection
+     */
+    public void addConnection( int index, Connection connection )
+    {
+        if ( getConnection( connection.getConnectionParameter().getName() ) != null )
+        {
+            String newConnectionName = Messages.bind( Messages.copy_n_of_s,
+                "", connection.getConnectionParameter().getName() ); //$NON-NLS-1$
+            for ( int i = 2; getConnection( newConnectionName ) != null; i++ )
+            {
+                newConnectionName = Messages.bind( Messages.copy_n_of_s,
+                    i + " ", connection.getConnectionParameter().getName() ); //$NON-NLS-1$
+            }
+            connection.getConnectionParameter().setName( newConnectionName );
+        }
+
+        connectionList.add( index, connection );
+        ConnectionEventRegistry.fireConnectionAdded( connection, this );
+    }
+
+
+    /**
+     * Gets a connection from its name.
+     *
+     * @param name
+     *      the name of the Connection
+     * @return
+     *      the corresponding Connection
+     */
+    public Connection getConnection( String name )
+    {
+        for ( Iterator it = connectionList.iterator(); it.hasNext(); )
+        {
+            Connection conn = ( Connection ) it.next();
+            if ( conn.getConnectionParameter().getName().equals( name ) )
+            {
+                return conn;
+            }
+        }
+        return null;
+    }
+
+
+    /**
+     * Gets the index in the Connection list of the first occurrence of the specified Connection.
+     *
+     * @param connection
+     *      the Connection to search for
+     * @return
+     *      the index in the Connection list of the first occurrence of the specified Connection
+     */
+    public int indexOf( Connection connection )
+    {
+        return connectionList.indexOf( connection );
+    }
+
+
+    /**
+     * Removes the given Connection from the Connection list.
+     *
+     * @param connection
+     *      the connection to remove
+     */
+    public void removeConnection( Connection connection )
+    {
+        connectionList.remove( connection );
+        ConnectionEventRegistry.fireConnectionRemoved( connection, this );
+    }
+
+
+    /**
+     * Gets an array containing all the Connections.
+     *
+     * @return
+     *      an array containing all the Connections
+     */
+    public Connection[] getConnections()
+    {
+        return ( Connection[] ) connectionList.toArray( new Connection[0] );
+    }
+
+
+    /**
+     * Gets the number of Connections.
+     *
+     * @return
+     *      the number of Connections
+     */
+    public int getConnectionCount()
+    {
+        return connectionList.size();
+    }
+
+
+    /**
+     * @see org.apache.directory.studio.connection.core.event.ConnectionUpdateListener#connectionAdded(org.apache.directory.studio.connection.core.Connection)
+     */
+    public void connectionAdded( Connection connection )
+    {
+        saveConnections();
+    }
+
+
+    /**
+     * @see org.apache.directory.studio.connection.core.event.ConnectionUpdateListener#connectionRemoved(org.apache.directory.studio.connection.core.Connection)
+     */
+    public void connectionRemoved( Connection connection )
+    {
+        saveConnections();
+    }
+
+
+    /**
+     * @see org.apache.directory.studio.connection.core.event.ConnectionUpdateListener#connectionRenamed(org.apache.directory.studio.connection.core.Connection, java.lang.String)
+     */
+    public void connectionRenamed( Connection connection, String oldName )
+    {
+        saveConnections();
+    }
+
+
+    /**
+     * @see org.apache.directory.studio.connection.core.event.ConnectionUpdateListener#connectionUpdated(org.apache.directory.studio.connection.core.Connection)
+     */
+    public void connectionUpdated( Connection connection )
+    {
+        saveConnections();
+    }
+
+
+    /**
+     * @see org.apache.directory.studio.connection.core.event.ConnectionUpdateListener#connectionOpened(org.apache.directory.studio.connection.core.Connection)
+     */
+    public void connectionOpened( Connection connection )
+    {
+    }
+
+
+    /**
+     * @see org.apache.directory.studio.connection.core.event.ConnectionUpdateListener#connectionClosed(org.apache.directory.studio.connection.core.Connection)
+     */
+    public void connectionClosed( Connection connection )
+    {
+    }
+
+
+    /**
+     * Saves the Connections
+     */
+    public void saveConnections()
+    {
+        Object[] object = new Object[connectionList.size()];
+
+        Iterator connectionIterator = connectionList.iterator();
+        for ( int i = 0; connectionIterator.hasNext(); i++ )
+        {
+            Connection conn = ( Connection ) connectionIterator.next();
+            ConnectionParameter connectionParameters = conn.getConnectionParameter();
+
+            object[i] = connectionParameters;
+        }
+
+        save( object, getConnectionStoreFileName() );
+    }
+
+
+    /**
+     * Loads the Connections
+     */
+    private void loadConnections()
+    {
+        try
+        {
+            Object[] object = ( Object[] ) this.load( getConnectionStoreFileName() );
+
+            if ( object != null )
+            {
+                try
+                {
+                    for ( int i = 0; i < object.length; i++ )
+                    {
+                        ConnectionParameter connectionParameters = ( ConnectionParameter ) object[i];
+                        Connection conn = new Connection( connectionParameters );
+                        connectionList.add( conn );
+                    }
+
+                }
+                catch ( ArrayIndexOutOfBoundsException e )
+                {
+                    // Thrown by decoder.readObject(), signals EOF
+                }
+                catch ( Exception e )
+                {
+                    e.printStackTrace();
+                }
+            }
+        }
+        catch ( Exception e )
+        {
+        }
+    }
+
+
+    /**
+     * Loads an Object from an XML file
+     *
+     * @param filename
+     *      the filename of the XML file
+     * @return
+     *      the deserialized Object
+     */
+    private synchronized Object load( String filename )
+    {
+        try
+        {
+            Thread.currentThread().setContextClassLoader( getClass().getClassLoader() );
+            XMLDecoder decoder = new XMLDecoder( new BufferedInputStream( ( new FileInputStream( filename ) ) ) );
+            Object object = decoder.readObject();
+            decoder.close();
+            return object;
+        }
+        catch ( IOException ioe )
+        {
+            return null;
+        }
+        catch ( Exception e )
+        {
+            // if loading failed, try with temp file
+            String tempFilename = filename + "-temp";
+            try
+            {
+                XMLDecoder decoder = new XMLDecoder( new BufferedInputStream( ( new FileInputStream( tempFilename ) ) ) );
+                Object object = decoder.readObject();
+                decoder.close();
+                return object;
+            }
+            catch ( IOException ioe2 )
+            {
+                return null;
+            }
+            catch ( Exception e2 )
+            {
+                return null;
+            }
+        }
+    }
+
+
+    /**
+     * Saves an Object into a serialized XML file
+     *
+     * @param object
+     *      the object to save
+     * @param filename
+     *      the filename to save to
+     */
+    private synchronized void save( Object object, String filename )
+    {
+        XMLEncoder encoder = null;
+        try
+        {
+            // to avoid a corrupt file, save object to a temp file first 
+            String tempFilename = filename + "-temp";
+            Thread.currentThread().setContextClassLoader( getClass().getClassLoader() );
+            encoder = new XMLEncoder( new BufferedOutputStream( new FileOutputStream( tempFilename ) ) );
+
+            encoder.setPersistenceDelegate( AuthenticationMethod.class, enumPersistenceDelegate );
+            encoder.setPersistenceDelegate( EncryptionMethod.class, enumPersistenceDelegate );
+
+            encoder.setExceptionListener( new ExceptionListener()
+            {
+                public void exceptionThrown( Exception e )
+                {
+                    e.printStackTrace();
+                }
+            } );
+            encoder.writeObject( object );
+            encoder.close();
+
+            // move temp file to good file
+            File file = new File( filename );
+            File tempFile = new File( tempFilename );
+            if ( file.exists() )
+            {
+                file.delete();
+            }
+            String content = FileUtils.readFileToString( tempFile, "UTF-8" );
+            FileUtils.writeStringToFile( file, content, "UTF-8" );
+        }
+        catch ( Exception e )
+        {
+            e.printStackTrace();
+        }
+        finally
+        {
+            if ( encoder != null )
+            {
+                encoder.close();
+            }
+        }
+    }
+
+    private static final PersistenceDelegate enumPersistenceDelegate = new PersistenceDelegate()
+    {
+        protected boolean mutatesTo( Object oldInstance, Object newInstance )
+        {
+            return oldInstance == newInstance;
+        }
+
+
+        protected Expression instantiate( Object oldInstance, Encoder out )
+        {
+            Enum e = ( Enum ) oldInstance;
+            return new Expression( e, e.getClass(), "valueOf", new Object[]
+                { e.name() } );
+        }
+    };
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,426 @@
+/*
+ *  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.studio.connection.core;
+
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * A Bean class to hold the connection parameters.
+ * It is used to make connections persistent.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class ConnectionParameter
+{
+
+    /**
+     * Enum for the used encryption method.
+     * 
+     * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+     * @version $Rev$, $Date$
+     */
+    public enum EncryptionMethod
+    {
+
+        /** No encryption. */
+        NONE,
+
+        /** SSL encryption. */
+        LDAPS,
+
+        /** Encryption using Start TLS extension. */
+        START_TLS
+    }
+
+    /**
+     * Enum for the used authentication method.
+     * 
+     * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+     * @version $Rev$, $Date$
+     */
+    public enum AuthenticationMethod
+    {
+
+        /** No authentication, anonymous bind. */
+        NONE,
+
+        /** Simple authentication, simple bind. */
+        SIMPLE,
+
+        /** SASL authentication using DIGEST-MD5. */
+        SASL_DIGEST_MD5,
+
+        /** SASL authentication using CRAM-MD5. */
+        SASL_CRAM_MD5,
+
+        /** SASL authentication using GSSAPI. */
+        SASL_GSSAPI
+
+    }
+
+    /** The symbolic name. */
+    private String name;
+
+    /** The host name or IP address of the LDAP server. */
+    private String host;
+
+    /** The port of the LDAP server. */
+    private int port;
+
+    /** The encryption method. */
+    private EncryptionMethod encryptionMethod;
+
+    /** The authentication method. */
+    private AuthenticationMethod authMethod;
+
+    /** The bind principal, typically a DN. */
+    private String bindPrincipal;
+
+    /** The bind password. */
+    private String bindPassword;
+
+    /** The extended properties. */
+    private Map<String, String> extendedProperties;
+
+
+    //    /** Flag indicating if base DNs should be fetched from namingContexts attribute of the Root DSE. */
+    //    private boolean fetchBaseDNs;
+    //
+    //    /** The user provided base DN. */
+    //    private DN baseDN;
+    //
+    //    /** The time limit im milliseconds. */
+    //    private int timeLimit;
+    //
+    //    /** The count limit. */
+    //    private int countLimit;
+    //
+    //    /** The alias dereferencing method, one of IConnection.DEREFERENCE_ALIASES_NEVER, IConnection.DEREFERENCE_ALIASES_ALWAYS, IConnection.DEREFERENCE_ALIASES_FINDING or IConnection.DEREFERENCE_ALIASES_SEARCH. */
+    //    private int aliasesDereferencingMethod;
+    //
+    //    /** The referrals handling method, one of IConnection.HANDLE_REFERRALS_IGNORE or IConnection.HANDLE_REFERRALS_FOLLOW. */
+    //    private int referralsHandlingMethod;
+
+    /**
+     * Creates a new instance of ConnectionParameter.
+     */
+    public ConnectionParameter()
+    {
+        this.extendedProperties = new HashMap<String, String>();
+    }
+
+
+    /**
+     * Creates a new instance of ConnectionParameter.
+     * 
+     * @param name the connection name
+     * @param host the host
+     * @param port the port
+     * @param encryptionMethod the encryption method
+     * @param authMethod the authentication method
+     * @param bindPrincipal the bind principal
+     * @param bindPassword the bind password
+     */
+    public ConnectionParameter( String name, String host, int port, EncryptionMethod encryptionMethod,
+        AuthenticationMethod authMethod, String bindPrincipal, String bindPassword )
+    {
+        this();
+        this.name = name;
+        this.host = host;
+        this.port = port;
+        this.encryptionMethod = encryptionMethod;
+        this.authMethod = authMethod;
+        this.bindPrincipal = bindPrincipal;
+        this.bindPassword = bindPassword;
+    }
+
+
+    /**
+     * Gets the auth method.
+     * 
+     * @return the auth method
+     */
+    public AuthenticationMethod getAuthMethod()
+    {
+        return authMethod;
+    }
+
+
+    /**
+     * Sets the auth method.
+     * 
+     * @param authMethod the auth method
+     */
+    public void setAuthMethod( AuthenticationMethod authMethod )
+    {
+        this.authMethod = authMethod;
+    }
+
+
+    /**
+     * Gets the bind password.
+     * 
+     * @return the bind password
+     */
+    public String getBindPassword()
+    {
+        return bindPassword;
+    }
+
+
+    /**
+     * Sets the bind password.
+     * 
+     * @param bindPassword the bind password
+     */
+    public void setBindPassword( String bindPassword )
+    {
+        this.bindPassword = bindPassword;
+    }
+
+
+    /**
+     * Gets the bind principal.
+     * 
+     * @return the bind principal
+     */
+    public String getBindPrincipal()
+    {
+        return bindPrincipal;
+    }
+
+
+    /**
+     * Sets the bind principal.
+     * 
+     * @param bindPrincipal the bind principal
+     */
+    public void setBindPrincipal( String bindPrincipal )
+    {
+        this.bindPrincipal = bindPrincipal;
+    }
+
+
+    /**
+     * Gets the encryption method.
+     * 
+     * @return the encryption method
+     */
+    public EncryptionMethod getEncryptionMethod()
+    {
+        return encryptionMethod;
+    }
+
+
+    /**
+     * Sets the encryption method.
+     * 
+     * @param encryptionMethod the encryption method
+     */
+    public void setEncryptionMethod( EncryptionMethod encryptionMethod )
+    {
+        this.encryptionMethod = encryptionMethod;
+    }
+
+
+    /**
+     * Gets the host.
+     * 
+     * @return the host
+     */
+    public String getHost()
+    {
+        return host;
+    }
+
+
+    /**
+     * Sets the host.
+     * 
+     * @param host the host
+     */
+    public void setHost( String host )
+    {
+        this.host = host;
+    }
+
+
+    /**
+     * Gets the name.
+     * 
+     * @return the name
+     */
+    public String getName()
+    {
+        return name;
+    }
+
+
+    /**
+     * Sets the name.
+     * 
+     * @param name the name
+     */
+    public void setName( String name )
+    {
+        this.name = name;
+    }
+
+
+    /**
+     * Gets the port.
+     * 
+     * @return the port
+     */
+    public int getPort()
+    {
+        return port;
+    }
+
+
+    /**
+     * Sets the port.
+     * 
+     * @param port the port
+     */
+    public void setPort( int port )
+    {
+        this.port = port;
+    }
+
+
+    /**
+     * Gets the extended properties.
+     * 
+     * @return the extended properties
+     */
+    public Map<String, String> getExtendedProperties()
+    {
+        return extendedProperties;
+    }
+
+
+    /**
+     * Sets the extended properties.
+     * 
+     * @param extendedProperties the extended properties
+     */
+    public void setExtendedProperties( Map<String, String> extendedProperties )
+    {
+        this.extendedProperties = extendedProperties;
+    }
+
+
+    /**
+     * Sets the extended property.
+     * 
+     * @param key the key
+     * @param value the value
+     */
+    public void setExtendedProperty( String key, String value )
+    {
+        extendedProperties.put( key, value );
+    }
+
+
+    /**
+     * Gets the extended property.
+     * 
+     * @param key the key
+     * 
+     * @return the extended property or null if the property doesn't exist
+     */
+    public String getExtendedProperty( String key )
+    {
+        return extendedProperties.get( key );
+    }
+
+
+    /**
+     * Sets the extended int property.
+     * 
+     * @param key the key
+     * @param value the value
+     */
+    public void setExtendedIntProperty( String key, int value )
+    {
+        extendedProperties.put( key, new Integer( value ).toString() );
+    }
+
+
+    /**
+     * Gets the extended int property.
+     * 
+     * @param key the key
+     * 
+     * @return the extended int property or -1 if the property doesn't exist
+     */
+    public int getExtendedIntProperty( String key )
+    {
+        String s = extendedProperties.get( key );
+        if ( s != null )
+        {
+            return new Integer( s ).intValue();
+        }
+        else
+        {
+            return -1;
+        }
+    }
+
+
+    /**
+     * Sets the extended bool property.
+     * 
+     * @param key the key
+     * @param value the value
+     */
+    public void setExtendedBoolProperty( String key, boolean value )
+    {
+        extendedProperties.put( key, Boolean.valueOf( value ).toString() );
+    }
+
+
+    /**
+     * Gets the extended bool property.
+     * 
+     * @param key the key
+     * 
+     * @return the extended bool property or false if the property doesn'T exist
+     */
+    public boolean getExtendedBoolProperty( String key )
+    {
+        String s = extendedProperties.get( key );
+        if ( s != null )
+        {
+            return Boolean.valueOf( s ).booleanValue();
+        }
+        else
+        {
+            return false;
+        }
+    }
+
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionPropertyPageProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionPropertyPageProvider.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionPropertyPageProvider.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ConnectionPropertyPageProvider.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,38 @@
+/*
+ *  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.studio.connection.core;
+
+
+import org.eclipse.core.runtime.IAdaptable;
+
+
+/**
+ * Tagging interface for objects that provide input for the connection
+ * property page. Implementations must also implement the IAdaptable interface
+ * and the getAdaptable() metho must return the right {@link Connection} object. 
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public interface ConnectionPropertyPageProvider extends IAdaptable
+{
+
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Credentials.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Credentials.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Credentials.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Credentials.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,84 @@
+/*
+ *  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.studio.connection.core;
+
+
+/**
+ * Default implementation of ICredentials.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class Credentials implements ICredentials
+{
+
+    /** The bind principal. */
+    private String bindPrincipal;
+
+    /** The bind password. */
+    private String bindPassword;
+
+    /** The connection parameter. */
+    private ConnectionParameter connectionParameter;
+
+
+    /**
+     * Creates a new instance of Credentials.
+     *
+     * @param bindPrincipal the bind principal, typically a DN
+     * @param bindPassword the bind password
+     * @param connectionParameter the connection parameter
+     */
+    public Credentials( String bindPrincipal, String bindPassword, ConnectionParameter connectionParameter )
+    {
+        this.bindPrincipal = bindPrincipal;
+        this.bindPassword = bindPassword;
+        this.connectionParameter = connectionParameter;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public ConnectionParameter getConnectionParameter()
+    {
+        return connectionParameter;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String getBindPrincipal()
+    {
+        return bindPrincipal;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String getBindPassword()
+    {
+        return bindPassword;
+    }
+
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/IAuthHandler.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/IAuthHandler.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/IAuthHandler.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/IAuthHandler.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,44 @@
+/*
+ *  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.studio.connection.core;
+
+
+/**
+ * Callback interface to request credentials from a 
+ * higher-level layer (from the UI plugin).
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public interface IAuthHandler
+{
+
+    /**
+     * Gets credentials from this authentication handler. 
+     * The credentials are used to bind to the given connection. 
+     * The authentication handler may display a dialog to the user.
+     * 
+     * @param connectionParameter the connection to bind to
+     * @return the credentials
+     */
+    public ICredentials getCredentials( ConnectionParameter connectionParameter );
+
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ICredentials.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ICredentials.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ICredentials.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/ICredentials.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,56 @@
+/*
+ *  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.studio.connection.core;
+
+
+/**
+ * An ICredential holds authentication information for a connection. 
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public interface ICredentials
+{
+
+    /**
+     * Gets the connection parameter.
+     * 
+     * @return the connection parameter
+     */
+    public ConnectionParameter getConnectionParameter();
+
+
+    /**
+     * Gets the bind principal, typically a DN.
+     * 
+     * @return the bind principal
+     */
+    public String getBindPrincipal();
+
+
+    /**
+     * Gets the bind password.
+     * 
+     * @return the bind password
+     */
+    public String getBindPassword();
+
+}

Added: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Messages.java?rev=568964&view=auto
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Messages.java (added)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/Messages.java Thu Aug 23 06:15:22 2007
@@ -0,0 +1,79 @@
+/*
+ *  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.studio.connection.core;
+
+
+import org.eclipse.osgi.util.NLS;
+
+
+/**
+ * This class contains most of the Strings used by the Plugin
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class Messages extends NLS
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.connection.core.messages"; //$NON-NLS-1$
+
+
+    /**
+     * Creates a new instance of Messages.
+     */
+    private Messages()
+    {
+    }
+
+    static
+    {
+        // initialize resource bundle
+        NLS.initializeMessages( BUNDLE_NAME, Messages.class );
+    }
+
+    public static String copy_n_of_s;
+
+    public static String model__no_auth_handler;
+    public static String model__no_credentials;
+
+    public static String jobs__error_occurred;
+    public static String jobs__progressmonitor_check_cancellation;
+    public static String jobs__progressmonitor_report_progress;
+
+    public static String jobs__check_bind_name;
+    public static String jobs__check_bind_task;
+    public static String jobs__check_bind_error;
+    public static String jobs__check_network_name;
+    public static String jobs__check_network_task;
+    public static String jobs__check_network_error;
+
+    public static String jobs__open_connections_name_1;
+    public static String jobs__open_connections_name_n;
+    public static String jobs__open_connections_task;
+    public static String jobs__open_connections_error_1;
+    public static String jobs__open_connections_error_n;
+
+    public static String jobs__close_connections_name_1;
+    public static String jobs__close_connections_name_n;
+    public static String jobs__close_connections_task;
+    public static String jobs__close_connections_error_1;
+    public static String jobs__close_connections_error_n;
+
+}



Mime
View raw message