directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r992827 [1/4] - in /directory/sandbox/kayyagari/http-directory: ./ directory-http-ui/ directory-http-ui/src/ directory-http-ui/src/main/ directory-http-ui/src/main/java/ directory-http-ui/src/main/java/org/ directory-http-ui/src/main/java/o...
Date Sun, 05 Sep 2010 17:14:02 GMT
Author: kayyagari
Date: Sun Sep  5 17:13:58 2010
New Revision: 992827

URL: http://svn.apache.org/viewvc?rev=992827&view=rev
Log:
o directory webapp to serve the LDAP entries in JSON format
o json codec
o a client api connection implementation using HTTP as transport
o a ldap browser client using swing to demonstrate the web app functionality

Added:
    directory/sandbox/kayyagari/http-directory/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/nbactions.xml
    directory/sandbox/kayyagari/http-directory/directory-http-ui/pom.xml
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/AttributeData.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/ConfigDataLoader.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/EntryData.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.form
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.form
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.form
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.form
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/LoginPanel.form
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/LoginPanel.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/MainWindow.form
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/MainWindow.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/PartitionsPanel.form
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/PartitionsPanel.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/callback/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/callback/ConfigAware.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/callback/ConfigButtonSelectionHandler.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/callback/ConfigModificationHandler.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/callback/LoginHandler.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/model/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/model/EntryNode.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/model/EntryTableModel.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/renderer/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/renderer/AttributeTableCellRenderer.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/renderer/EntryDataCellRenderer.java
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/resources/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/test/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/test/java/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/test/java/org/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/test/java/org/apache/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/test/java/org/apache/directory/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/test/java/org/apache/directory/http/
    directory/sandbox/kayyagari/http-directory/directory-http-ui/src/test/java/org/apache/directory/http/client/
    directory/sandbox/kayyagari/http-directory/directory-webapp/
    directory/sandbox/kayyagari/http-directory/directory-webapp/pom.xml
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/directory/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/directory/server/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/directory/server/http/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/directory/server/http/AppContextListener.java
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/directory/server/http/AuthenticationFilter.java
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/directory/server/http/HttpDirectoryServiceHolder.java
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/directory/server/http/HttpDirectoryServlet.java
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/java/org/apache/directory/server/http/LoggingFilter.java
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/webapp/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/webapp/META-INF/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/webapp/META-INF/LICENSE
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/webapp/META-INF/NOTICE
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/webapp/WEB-INF/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/main/webapp/WEB-INF/web.xml
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/test/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/test/java/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/test/resources/
    directory/sandbox/kayyagari/http-directory/directory-webapp/src/test/resources/log4j.properties
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/pom.xml
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/java/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/java/org/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/java/org/apache/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/java/org/apache/directory/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/java/org/apache/directory/http/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/java/org/apache/directory/http/client/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/java/org/apache/directory/http/client/JsonEntryToResponseCursor.java
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/main/java/org/apache/directory/http/client/LdapHttpConnection.java
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/test/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/test/java/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/test/java/org/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/test/java/org/apache/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/test/java/org/apache/directory/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/test/java/org/apache/directory/http/
    directory/sandbox/kayyagari/http-directory/ldap-http-connection/src/test/java/org/apache/directory/http/client/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/pom.xml
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/AbstractResultResponseCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/DnCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/JsonBuilder.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/JsonEncoder.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/LdapResultCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/ValueCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/add/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/add/AddRequestCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/bind/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/bind/BindRequestCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/bind/BindResponseCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/compare/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/compare/CompareRequestCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/delete/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/delete/DeleteRequestCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/modify/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/modify/DefaultModificationCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/modify/ModifyRequestCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/modifydn/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/modifydn/ModifyDnRequestCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/search/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/search/ClonedServerEntryCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/search/DefaultEntryCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/search/EntryAttributeCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/search/SearchRequestCodec.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/codec/json/operations/search/SearchResponseEncoder.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/http/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/main/java/org/apache/directory/server/http/AppConstants.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/org/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/org/apache/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/org/apache/directory/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/org/apache/directory/server/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/org/apache/directory/server/codec/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/org/apache/directory/server/codec/json/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/org/apache/directory/server/codec/json/JsonDecoderTest.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/java/org/apache/directory/server/codec/json/JsonEncoderTest.java
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/resources/
    directory/sandbox/kayyagari/http-directory/ldap-json-codec/src/test/resources/log4j.properties
    directory/sandbox/kayyagari/http-directory/pom.xml

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/nbactions.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/nbactions.xml?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/nbactions.xml (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/nbactions.xml Sun Sep  5 17:13:58 2010
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<actions>
+        <action>
+            <actionName>run</actionName>
+            <goals>
+                <goal>process-classes</goal>
+                <goal>org.codehaus.mojo:exec-maven-plugin:1.1.1:exec</goal>
+            </goals>
+            <properties>
+                <exec.classpathScope>runtime</exec.classpathScope>
+                <exec.args>-classpath %classpath org.apache.directory.http.client.ui.MainWindow</exec.args>
+                <exec.executable>java</exec.executable>
+            </properties>
+        </action>
+    </actions>

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/pom.xml?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/pom.xml (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/pom.xml Sun Sep  5 17:13:58 2010
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.directory.http.client</groupId>
+	<artifactId>directory-http-ui</artifactId>
+	<version>1.0-SNAPSHOT</version>
+	<name>directory-http-ui</name>
+	<dependencies>
+		<dependency>
+			<groupId>org.swinglabs</groupId>
+			<artifactId>swing-layout</artifactId>
+			<version>1.0.3</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.directory.http.client</groupId>
+			<artifactId>ldap-http-connection</artifactId>
+			<version>1.0-SNAPSHOT</version>
+		</dependency>
+	</dependencies>
+	<properties>
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+	</properties>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<version>2.1</version>
+				<configuration>
+					<source>1.5</source>
+					<target>1.5</target>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-shade-plugin</artifactId>
+				<version>1.4</version>
+				<executions>
+					<execution>
+						<phase>package</phase>
+						<goals>
+							<goal>shade</goal>
+						</goals>
+						<configuration>
+							<artifactSet>
+								<excludes>
+									<exclude>findbugs:annotations:jar:</exclude>
+									<exclude>org.apache.mina:mina-core:jar:</exclude>
+									<exclude>org.apache.directory.shared:shared-ldif:jar:</exclude>
+								</excludes>
+							</artifactSet>
+
+							<transformers>
+								<transformer
+									implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+									<mainClass>org.apache.directory.http.client.ui.MainWindow</mainClass>
+								</transformer>
+							</transformers>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+</project>

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/AttributeData.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/AttributeData.java?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/AttributeData.java (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/AttributeData.java Sun Sep  5 17:13:58 2010
@@ -0,0 +1,195 @@
+/*
+ *   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.http.client.data.model;
+
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.directory.shared.ldap.entry.BinaryValue;
+import org.apache.directory.shared.ldap.entry.DefaultEntryAttribute;
+import org.apache.directory.shared.ldap.entry.DefaultModification;
+import org.apache.directory.shared.ldap.entry.EntryAttribute;
+import org.apache.directory.shared.ldap.entry.Modification;
+import org.apache.directory.shared.ldap.entry.ModificationOperation;
+import org.apache.directory.shared.ldap.entry.StringValue;
+import org.apache.directory.shared.ldap.entry.Value;
+import org.apache.directory.shared.ldap.exception.LdapInvalidAttributeValueException;
+import org.apache.directory.shared.ldap.schema.AttributeType;
+import org.apache.directory.shared.ldap.schema.SyntaxChecker;
+
+
+/**
+ * TODO AttributeData.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class AttributeData
+{
+    private final EntryData parent;
+
+    private EntryAttribute original;
+
+    private EntryAttribute cloned;
+
+    private AttributeType type;
+
+    private List<Modification> mods = new ArrayList<Modification>();
+
+    private SyntaxChecker checker;
+
+
+    public AttributeData( EntryData parent, EntryAttribute attr )
+    {
+        this.parent = parent;
+        this.original = attr;
+        cloned = original.clone();
+        type = cloned.getAttributeType();
+        checker = type.getSyntax().getSyntaxChecker();
+    }
+
+
+    public boolean isDirty()
+    {
+        return mods.isEmpty();
+    }
+
+
+    public boolean isHr()
+    {
+        return type.getSyntax().isHumanReadable();
+    }
+
+
+    public boolean getBoolean()
+    {
+        return Boolean.parseBoolean( getString() );
+    }
+
+
+    public String getString()
+    {
+        try
+        {
+            return cloned.getString();
+        }
+        catch ( LdapInvalidAttributeValueException e )
+        {
+            e.printStackTrace();
+            // to avoid try-catch hell on the caller
+            throw new IllegalStateException( e );
+        }
+    }
+
+
+    public byte[] getBytes()
+    {
+        try
+        {
+            return cloned.getBytes();
+        }
+        catch ( LdapInvalidAttributeValueException e )
+        {
+            e.printStackTrace();
+            // to avoid try-catch hell on the caller
+            throw new IllegalStateException( e );
+        }
+    }
+
+
+    public boolean isModifiable()
+    {
+        if ( type.isReadOnly() || ( !type.isUserModifiable() ) )
+        {
+            return false;
+        }
+
+        return true;
+    }
+
+
+    private boolean add( Value<?> value )
+    {
+
+        boolean valid = checker.isValidSyntax( value.get() );
+        if ( !valid )
+        {
+            return false;
+        }
+
+        ModificationOperation op = ModificationOperation.ADD_ATTRIBUTE;
+
+        if ( type.isSingleValued() )
+        {
+            mods.clear();
+            op = ModificationOperation.REPLACE_ATTRIBUTE;
+        }
+
+        Modification mod = new DefaultModification();
+        mod.setOperation( op );
+        EntryAttribute modAt = new DefaultEntryAttribute( type );
+        modAt.add( value );
+
+        mods.add( mod );
+
+        return valid;
+    }
+
+
+    private void delete( Value<?> value )
+    {
+        if( !cloned.contains( value ) )
+        {
+            return;
+        }
+        
+        if ( type.isSingleValued() )
+        {
+            mods.clear();
+        }
+
+        Modification mod = new DefaultModification();
+        mod.setOperation( ModificationOperation.REMOVE_ATTRIBUTE );
+        EntryAttribute modAt = new DefaultEntryAttribute( type );
+        modAt.add( value );
+
+        mods.add( mod );
+    }
+
+
+    public boolean add( String value )
+    {
+        return add( new StringValue( value ) );
+    }
+
+
+    public boolean add( byte[] value )
+    {
+        return add( new BinaryValue( value ) );
+    }
+
+
+    public boolean add( boolean value )
+    {
+        return add( String.valueOf( value ) );
+    }
+
+}

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/ConfigDataLoader.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/ConfigDataLoader.java?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/ConfigDataLoader.java (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/ConfigDataLoader.java Sun Sep  5 17:13:58 2010
@@ -0,0 +1,95 @@
+/*
+ *   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.http.client.data.model;
+
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.directory.http.client.LdapHttpConnection;
+import org.apache.directory.shared.ldap.constants.SchemaConstants;
+import org.apache.directory.shared.ldap.cursor.Cursor;
+import org.apache.directory.shared.ldap.entry.Entry;
+import org.apache.directory.shared.ldap.filter.SearchScope;
+import org.apache.directory.shared.ldap.message.Response;
+import org.apache.directory.shared.ldap.message.SearchResultEntry;
+
+
+/**
+ * TODO EntryLoader.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class ConfigDataLoader
+{
+    private LdapHttpConnection connection;
+
+    private static final String CONFIG_BASE = "ou=config";
+
+
+    public ConfigDataLoader( LdapHttpConnection connection )
+    {
+        if ( !connection.isAuthenticated() )
+        {
+            throw new IllegalArgumentException( "connection is not authenticated" );
+        }
+
+        this.connection = connection;
+    }
+
+
+    public List<EntryData> getPartitions()
+    {
+        return null;
+    }
+
+
+    public EntryData getDirService() throws Exception
+    {
+        return getData( CONFIG_BASE, "(ads-directoryServiceId=*)", SearchScope.ONELEVEL ).get( 0 );
+    }
+
+
+    public List<EntryData> getInterceptors() throws Exception
+    {
+        EntryData dirService = getDirService();
+
+        return getData( dirService.getDn().getName(), "(ads-interceptorId=*)", SearchScope.SUBTREE );
+    }
+
+
+    private List<EntryData> getData( String baseDn, String filter, SearchScope scope ) throws Exception
+    {
+        List<EntryData> data = new ArrayList<EntryData>();
+
+        Cursor<Response> cursor = connection.search( baseDn, filter, scope, SchemaConstants.ALL_USER_ATTRIBUTES,
+            SchemaConstants.ALL_OPERATIONAL_ATTRIBUTES );
+        while ( cursor.next() )
+        {
+            Entry entry = ( ( SearchResultEntry ) cursor.get() ).getEntry();
+            data.add( new EntryData( entry ) );
+        }
+
+        cursor.close();
+
+        return data;
+    }
+}

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/EntryData.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/EntryData.java?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/EntryData.java (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/data/model/EntryData.java Sun Sep  5 17:13:58 2010
@@ -0,0 +1,90 @@
+/*
+ *   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.http.client.data.model;
+
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.directory.shared.ldap.entry.Entry;
+import org.apache.directory.shared.ldap.entry.EntryAttribute;
+import org.apache.directory.shared.ldap.entry.Modification;
+import org.apache.directory.shared.ldap.exception.LdapInvalidAttributeValueException;
+import org.apache.directory.shared.ldap.name.DN;
+
+
+/**
+ * TODO EntryData.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class EntryData
+{
+    private Entry entry;
+
+    private List<Modification> mods = new ArrayList<Modification>();
+
+    private boolean exists;
+
+
+    public EntryData( Entry entry )
+    {
+        this( entry, true );
+    }
+
+
+    public EntryData( Entry entry, boolean exists )
+    {
+        this.entry = entry;
+        this.exists = true;
+    }
+
+    
+    public DN getDn()
+    {
+        return entry.getDn();
+    }
+
+    public String getString( String atName ) throws LdapInvalidAttributeValueException
+    {
+        EntryAttribute at = entry.get( atName );
+        
+        if( at == null )
+        {
+            return null;
+        }
+        
+        return at.getString();
+    }
+    
+    public boolean exists()
+    {
+        return exists;
+    }
+
+
+    @Override
+    public String toString()
+    {
+        return "EntryData{" + "entry=" + entry + '}';
+    }
+    
+}

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.form
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.form?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.form (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.form Sun Sep  5 17:13:58 2010
@@ -0,0 +1,32 @@
+<?xml version="1.1" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+  <AuxValues>
+    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
+    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>
+    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+    <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,0,39,0,0,0,-42"/>
+  </AuxValues>
+
+  <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/>
+  <SubComponents>
+    <Component class="javax.swing.JButton" name="btnCancel">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Cancel"/>
+        <Property name="enabled" type="boolean" value="false"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JButton" name="btnApply">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Apply"/>
+        <Property name="enabled" type="boolean" value="false"/>
+      </Properties>
+    </Component>
+  </SubComponents>
+</Form>

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.java?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.java (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ApplyPanel.java Sun Sep  5 17:13:58 2010
@@ -0,0 +1,85 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/*
+ * ApplyPanel.java
+ *
+ * Created on Aug 27, 2010, 5:44:55 PM
+ */
+
+package org.apache.directory.http.client.ui;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import org.apache.directory.http.client.ui.callback.ConfigModificationHandler;
+
+/**
+ *
+ * @author kayyagari
+ */
+public class ApplyPanel extends javax.swing.JPanel implements ActionListener {
+
+    private ConfigModificationHandler handler;
+
+    /** Creates new form ApplyPanel */
+    public ApplyPanel() {
+        initComponents();
+        btnApply.addActionListener(this);
+        btnCancel.addActionListener(this);
+    }
+
+    public void setModificationHandler( ConfigModificationHandler handler )
+    {
+        this.handler = handler;
+    }
+
+    /** This method is called from within the constructor to
+     * initialize the form.
+     * WARNING: Do NOT modify this code. The content of this method is
+     * always regenerated by the Form Editor.
+     */
+    @SuppressWarnings("unchecked")
+    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+    private void initComponents() {
+
+        btnCancel = new javax.swing.JButton();
+        btnApply = new javax.swing.JButton();
+
+        btnCancel.setText("Cancel");
+        btnCancel.setEnabled(false);
+        add(btnCancel);
+
+        btnApply.setText("Apply");
+        btnApply.setEnabled(false);
+        add(btnApply);
+    }// </editor-fold>//GEN-END:initComponents
+
+
+    // Variables declaration - do not modify//GEN-BEGIN:variables
+    private javax.swing.JButton btnApply;
+    private javax.swing.JButton btnCancel;
+    // End of variables declaration//GEN-END:variables
+
+    public void actionPerformed(ActionEvent e) {
+
+        if( handler == null )
+        {
+            return;
+        }
+
+        Object src = e.getSource();
+
+        if( src == btnApply )
+        {
+            handler.apply();;
+        }
+ else if ( src == btnCancel )
+        {
+     handler.cancel();
+ }
+
+    }
+
+}

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.form
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.form?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.form (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.form Sun Sep  5 17:13:58 2010
@@ -0,0 +1,76 @@
+<?xml version="1.1" encoding="UTF-8" ?>
+
+<Form version="1.7" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+  <AuxValues>
+    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
+    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>
+    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+    <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-118,0,0,2,-128"/>
+  </AuxValues>
+
+  <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
+  <SubComponents>
+    <Container class="javax.swing.JSplitPane" name="dataPane">
+      <Properties>
+        <Property name="dividerLocation" type="int" value="160"/>
+      </Properties>
+      <Constraints>
+        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
+          <BorderConstraints direction="Center"/>
+        </Constraint>
+      </Constraints>
+
+      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
+      <SubComponents>
+        <Container class="javax.swing.JScrollPane" name="scrollTreePane">
+          <AuxValues>
+            <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
+          </AuxValues>
+          <Constraints>
+            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
+              <JSplitPaneConstraints position="left"/>
+            </Constraint>
+          </Constraints>
+
+          <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
+          <SubComponents>
+            <Component class="javax.swing.JTree" name="entryTree">
+              <Properties>
+                <Property name="model" type="javax.swing.tree.TreeModel" editor="org.netbeans.modules.form.editors2.TreeModelEditor">
+                  <TreeModel code=""/>
+                </Property>
+              </Properties>
+            </Component>
+          </SubComponents>
+        </Container>
+        <Container class="javax.swing.JScrollPane" name="scrollTablePane">
+          <AuxValues>
+            <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
+          </AuxValues>
+          <Constraints>
+            <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
+              <JSplitPaneConstraints position="right"/>
+            </Constraint>
+          </Constraints>
+
+          <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
+          <SubComponents>
+            <Component class="javax.swing.JTable" name="entryTable">
+              <Properties>
+                <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
+                  <Connection code="null" type="code"/>
+                </Property>
+              </Properties>
+            </Component>
+          </SubComponents>
+        </Container>
+      </SubComponents>
+    </Container>
+  </SubComponents>
+</Form>

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.java?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.java (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/BrowserPanel.java Sun Sep  5 17:13:58 2010
@@ -0,0 +1,122 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/*
+ * BrowserPanel.java
+ *
+ * Created on Aug 28, 2010, 12:17:45 PM
+ */
+
+package org.apache.directory.http.client.ui;
+
+
+import java.util.List;
+
+import javax.swing.border.AbstractBorder;
+import javax.swing.border.Border;
+import javax.swing.event.TreeSelectionEvent;
+import javax.swing.event.TreeSelectionListener;
+import javax.swing.plaf.basic.BasicBorders;
+import javax.swing.tree.DefaultMutableTreeNode;
+import javax.swing.tree.DefaultTreeModel;
+import javax.swing.tree.TreePath;
+import javax.swing.tree.TreeSelectionModel;
+
+import org.apache.directory.http.client.ui.model.EntryNode;
+import org.apache.directory.http.client.ui.model.EntryTableModel;
+import org.apache.directory.shared.ldap.entry.Entry;
+
+
+/**
+ *
+ * @author kayyagari
+ */
+public class BrowserPanel extends javax.swing.JPanel
+{
+
+    /** Creates new form BrowserPanel */
+    public BrowserPanel()
+    {
+        initComponents();
+        entryTree.getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION );
+        entryTable.setRowHeight( entryTable.getRowHeight() + 1 );
+    }
+
+
+    /** This method is called from within the constructor to
+     * initialize the form.
+     * WARNING: Do NOT modify this code. The content of this method is
+     * always regenerated by the Form Editor.
+     */
+    @SuppressWarnings("unchecked")
+    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+    private void initComponents()
+    {
+
+        dataPane = new javax.swing.JSplitPane();
+        scrollTreePane = new javax.swing.JScrollPane();
+        javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode( "x", true );
+
+        entryTree = new javax.swing.JTree( treeNode1, true );
+        
+        
+        scrollTablePane = new javax.swing.JScrollPane();
+        entryTable = new javax.swing.JTable();
+
+        setLayout( new java.awt.BorderLayout() );
+
+        dataPane.setDividerLocation( 160 );
+
+        //entryTree.setModel( new javax.swing.tree.DefaultTreeModel( treeNode1 ) );
+        scrollTreePane.setViewportView( entryTree );
+
+        dataPane.setLeftComponent( scrollTreePane );
+
+        scrollTablePane.setViewportView( entryTable );
+
+        dataPane.setRightComponent( scrollTablePane );
+
+        add( dataPane, java.awt.BorderLayout.CENTER );
+    }// </editor-fold>//GEN-END:initComponents
+
+    // Variables declaration - do not modify//GEN-BEGIN:variables
+    private javax.swing.JSplitPane dataPane;
+    private javax.swing.JTable entryTable;
+    private javax.swing.JTree entryTree;
+    private javax.swing.JScrollPane scrollTablePane;
+    private javax.swing.JScrollPane scrollTreePane;
+
+
+    // End of variables declaration//GEN-END:variables
+
+    public javax.swing.JTable getEntryTable()
+    {
+        return entryTable;
+    }
+
+
+    public javax.swing.JTree getEntryTree()
+    {
+        return entryTree;
+    }
+
+
+    public void setRootDse( EntryNode root )
+    {
+        //EntryNode root = new EntryNode( entry );
+        entryTree.setModel( new DefaultTreeModel( root, true ) );
+    }
+
+
+    public void addEntriesToTreeUnder( List<Entry> entries, EntryNode parent )
+    {
+        for( Entry e : entries )
+        {
+            EntryNode node = new EntryNode( e );
+            node.setAllowsChildren( true );
+            parent.add( node );
+        }
+    }
+}

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.form
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.form?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.form (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.form Sun Sep  5 17:13:58 2010
@@ -0,0 +1,54 @@
+<?xml version="1.1" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+  <AuxValues>
+    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
+    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>
+    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+  </AuxValues>
+
+  <Layout>
+    <DimensionLayout dim="0">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Component id="btnInterceptors" alignment="0" pref="131" max="32767" attributes="0"/>
+          <Component id="btnPartitions" alignment="0" pref="131" max="32767" attributes="0"/>
+          <Component id="btnBrowse" alignment="0" pref="131" max="32767" attributes="0"/>
+      </Group>
+    </DimensionLayout>
+    <DimensionLayout dim="1">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" alignment="0" attributes="0">
+              <Component id="btnPartitions" min="-2" pref="29" max="-2" attributes="0"/>
+              <EmptySpace type="unrelated" max="-2" attributes="0"/>
+              <Component id="btnInterceptors" min="-2" max="-2" attributes="0"/>
+              <EmptySpace max="-2" attributes="0"/>
+              <Component id="btnBrowse" min="-2" max="-2" attributes="0"/>
+              <EmptySpace pref="209" max="32767" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+  </Layout>
+  <SubComponents>
+    <Component class="javax.swing.JButton" name="btnInterceptors">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Interceptors"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JButton" name="btnPartitions">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Partitions"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JButton" name="btnBrowse">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Browse"/>
+      </Properties>
+    </Component>
+  </SubComponents>
+</Form>

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.java?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.java (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/ConfigButtonPanel.java Sun Sep  5 17:13:58 2010
@@ -0,0 +1,103 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/*
+ * ConfigButtonPanel.java
+ *
+ * Created on Aug 27, 2010, 12:01:19 AM
+ */
+
+package org.apache.directory.http.client.ui;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import javax.swing.JButton;
+import org.apache.directory.http.client.ui.callback.ConfigButtonSelectionHandler;
+
+/**
+ *
+ * @author kayyagari
+ */
+public class ConfigButtonPanel extends javax.swing.JPanel implements ActionListener {
+
+    private ConfigButtonSelectionHandler buttonHandler;
+
+    /** Creates new form ConfigButtonPanel */
+    public ConfigButtonPanel() {
+        initComponents();
+        btnInterceptors.addActionListener(this);
+        btnPartitions.addActionListener(this);
+        btnBrowse.addActionListener( this );
+    }
+
+    public void setButtonSelectionHandler(ConfigButtonSelectionHandler buttonHandler)
+    {
+        this.buttonHandler = buttonHandler;
+    }
+    
+    /** This method is called from within the constructor to
+     * initialize the form.
+     * WARNING: Do NOT modify this code. The content of this method is
+     * always regenerated by the Form Editor.
+     */
+    @SuppressWarnings("unchecked")
+    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+    private void initComponents() {
+
+        btnInterceptors = new javax.swing.JButton();
+        btnPartitions = new javax.swing.JButton();
+        btnBrowse = new javax.swing.JButton();
+
+        btnInterceptors.setText("Interceptors");
+
+        btnPartitions.setText("Partitions");
+
+        btnBrowse.setText("Browse");
+
+        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
+        this.setLayout(layout);
+        layout.setHorizontalGroup(
+            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+            .add(btnInterceptors, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE)
+            .add(btnPartitions, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE)
+            .add(btnBrowse, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE)
+        );
+        layout.setVerticalGroup(
+            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+            .add(layout.createSequentialGroup()
+                .add(btnPartitions, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
+                .add(btnInterceptors)
+                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+                .add(btnBrowse)
+                .addContainerGap(209, Short.MAX_VALUE))
+        );
+    }// </editor-fold>//GEN-END:initComponents
+
+
+    // Variables declaration - do not modify//GEN-BEGIN:variables
+    private javax.swing.JButton btnBrowse;
+    private javax.swing.JButton btnInterceptors;
+    private javax.swing.JButton btnPartitions;
+    // End of variables declaration//GEN-END:variables
+
+    public void actionPerformed(ActionEvent e) {
+        buttonHandler.handleConfigSelection( (JButton ) e.getSource());
+    }
+
+    public JButton getBtnInterceptors() {
+        return btnInterceptors;
+    }
+
+    public JButton getBtnPartitions() {
+        return btnPartitions;
+    }
+
+    public javax.swing.JButton getBtnBrowse()
+    {
+        return btnBrowse;
+    }
+
+}

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.form
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.form?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.form (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.form Sun Sep  5 17:13:58 2010
@@ -0,0 +1,148 @@
+<?xml version="1.1" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+  <AuxValues>
+    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
+    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>
+    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+  </AuxValues>
+
+  <Layout>
+    <DimensionLayout dim="0">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" alignment="0" attributes="0">
+              <EmptySpace min="-2" pref="11" max="-2" attributes="0"/>
+              <Component id="jScrollPane1" min="-2" pref="215" max="-2" attributes="0"/>
+              <EmptySpace max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="0" attributes="0">
+                  <Group type="102" attributes="0">
+                      <Group type="103" groupAlignment="1" max="-2" attributes="0">
+                          <Component id="btnUp" alignment="0" min="0" pref="0" max="32767" attributes="0"/>
+                          <Component id="btnDown" alignment="0" min="-2" pref="72" max="-2" attributes="1"/>
+                      </Group>
+                      <EmptySpace min="-2" pref="41" max="-2" attributes="0"/>
+                      <Group type="103" groupAlignment="0" attributes="0">
+                          <Group type="102" alignment="0" attributes="0">
+                              <EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
+                              <Component id="lblId" min="-2" pref="20" max="-2" attributes="0"/>
+                          </Group>
+                          <Component id="lblClass" alignment="0" min="-2" max="-2" attributes="0"/>
+                      </Group>
+                      <EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
+                      <Group type="103" groupAlignment="0" attributes="0">
+                          <Group type="102" alignment="0" attributes="0">
+                              <Component id="txtId" min="-2" pref="179" max="-2" attributes="0"/>
+                              <EmptySpace type="separate" max="-2" attributes="0"/>
+                              <Component id="chbEnable" min="-2" max="-2" attributes="0"/>
+                          </Group>
+                          <Component id="txtClass" min="-2" pref="324" max="-2" attributes="0"/>
+                      </Group>
+                  </Group>
+                  <Group type="102" alignment="0" attributes="0">
+                      <EmptySpace min="-2" pref="94" max="-2" attributes="0"/>
+                      <Component id="applyPanel" min="-2" pref="308" max="-2" attributes="0"/>
+                  </Group>
+              </Group>
+              <EmptySpace pref="107" max="32767" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+    <DimensionLayout dim="1">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" attributes="0">
+              <Group type="103" groupAlignment="0" attributes="0">
+                  <Group type="103" groupAlignment="0" attributes="0">
+                      <Group type="102" alignment="0" attributes="0">
+                          <EmptySpace min="-2" pref="88" max="-2" attributes="0"/>
+                          <Component id="btnUp" min="-2" max="-2" attributes="0"/>
+                          <EmptySpace max="-2" attributes="0"/>
+                          <Component id="btnDown" min="-2" max="-2" attributes="0"/>
+                      </Group>
+                      <Group type="102" alignment="1" attributes="0">
+                          <EmptySpace max="-2" attributes="0"/>
+                          <Component id="applyPanel" min="-2" pref="34" max="-2" attributes="0"/>
+                      </Group>
+                  </Group>
+                  <Group type="102" alignment="0" attributes="0">
+                      <EmptySpace min="-2" pref="31" max="-2" attributes="0"/>
+                      <Group type="103" groupAlignment="3" attributes="0">
+                          <Component id="lblId" alignment="3" min="-2" max="-2" attributes="0"/>
+                          <Component id="chbEnable" alignment="3" min="-2" max="-2" attributes="0"/>
+                          <Component id="txtId" alignment="3" min="-2" max="-2" attributes="0"/>
+                      </Group>
+                      <EmptySpace max="-2" attributes="0"/>
+                      <Group type="103" groupAlignment="3" attributes="0">
+                          <Component id="lblClass" alignment="3" min="-2" max="-2" attributes="0"/>
+                          <Component id="txtClass" alignment="3" min="-2" max="-2" attributes="0"/>
+                      </Group>
+                  </Group>
+                  <Group type="102" alignment="0" attributes="0">
+                      <EmptySpace max="-2" attributes="0"/>
+                      <Component id="jScrollPane1" min="-2" pref="258" max="-2" attributes="0"/>
+                  </Group>
+              </Group>
+              <EmptySpace max="-2" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+  </Layout>
+  <SubComponents>
+    <Container class="javax.swing.JScrollPane" name="jScrollPane1">
+      <AuxValues>
+        <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
+      </AuxValues>
+
+      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
+      <SubComponents>
+        <Component class="javax.swing.JList" name="lstInterceptors">
+          <Properties>
+            <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
+              <StringArray count="0"/>
+            </Property>
+          </Properties>
+        </Component>
+      </SubComponents>
+    </Container>
+    <Component class="javax.swing.JLabel" name="lblId">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Id: "/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JTextField" name="txtId">
+    </Component>
+    <Component class="javax.swing.JCheckBox" name="chbEnable">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Enable"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JLabel" name="lblClass">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Class:"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JTextField" name="txtClass">
+    </Component>
+    <Component class="javax.swing.JButton" name="btnUp">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Up"/>
+        <Property name="enabled" type="boolean" value="false"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JButton" name="btnDown">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Down"/>
+        <Property name="enabled" type="boolean" value="false"/>
+      </Properties>
+    </Component>
+    <Container class="javax.swing.JPanel" name="applyPanel">
+
+      <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/>
+    </Container>
+  </SubComponents>
+</Form>

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.java?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.java (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/InterceptorPanel.java Sun Sep  5 17:13:58 2010
@@ -0,0 +1,239 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/*
+ * InterceptorPanel.java
+ *
+ * Created on Aug 27, 2010, 5:28:59 PM
+ */
+package org.apache.directory.http.client.ui;
+
+
+import java.util.List;
+
+import javax.swing.DefaultListModel;
+import javax.swing.ListSelectionModel;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.event.ListSelectionListener;
+
+import org.apache.directory.http.client.data.model.EntryData;
+import org.apache.directory.http.client.ui.callback.ConfigAware;
+import org.apache.directory.http.client.ui.callback.ConfigModificationHandler;
+import org.apache.directory.http.client.ui.renderer.EntryDataCellRenderer;
+
+
+/**
+ *
+ * @author kayyagari
+ */
+public class InterceptorPanel extends javax.swing.JPanel implements ConfigModificationHandler, ConfigAware,
+    ListSelectionListener
+{
+
+    private List<EntryData> data;
+
+
+    /** Creates new form InterceptorPanel */
+    public InterceptorPanel()
+    {
+        initComponents();
+        ApplyPanel panel = new ApplyPanel();
+        panel.setModificationHandler( this );
+        applyPanel.add( panel );
+        lstInterceptors.addListSelectionListener( this );
+    }
+
+
+    public void cancel()
+    {
+    }
+
+
+    public void apply()
+    {
+    }
+
+
+    public void setEntryData( List<EntryData> data )
+    {
+        this.data = data;
+        lstInterceptors.setModel( new EntryDataModel() );
+        lstInterceptors.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
+        lstInterceptors.setCellRenderer( new EntryDataCellRenderer( "ads-interceptorClassName" ) );
+    }
+
+
+    public void valueChanged( ListSelectionEvent e )
+    {
+        if ( e.getValueIsAdjusting() )
+        {
+            return;
+        }
+
+        int index = lstInterceptors.getSelectedIndex();
+        if ( index == -1 )
+        {
+            return;
+        }
+
+        EntryData selected = ( EntryData ) lstInterceptors.getSelectedValue();
+        try
+        {
+            txtId.setText( selected.getString( "ads-interceptorId" ) );
+            if ( selected.exists() )
+            {
+                txtId.setEditable( false );
+            }
+            
+            txtClass.setText( selected.getString( "ads-interceptorClassName" ) );
+            
+            String val = selected.getString( "ads-enabled" );
+            if( val == null )
+            {
+                val = "true";
+            }
+            
+            chbEnable.setSelected( Boolean.parseBoolean( val ) );
+        }
+        catch ( Exception ex )
+        {
+            //shouldn't happen
+            ex.printStackTrace();
+        }
+    }
+
+    class EntryDataModel extends DefaultListModel
+    {
+
+        @Override
+        public Object getElementAt( int index )
+        {
+            return data.get( index );
+        }
+
+
+        @Override
+        public int getSize()
+        {
+            if ( data == null || data.isEmpty() )
+            {
+                return 0;
+            }
+
+            return data.size();
+        }
+
+    }
+
+
+    /** This method is called from within the constructor to
+     * initialize the form.
+     * WARNING: Do NOT modify this code. The content of this method is
+     * always regenerated by the Form Editor.
+     */
+    @SuppressWarnings("unchecked")
+    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+    private void initComponents() {
+
+        jScrollPane1 = new javax.swing.JScrollPane();
+        lstInterceptors = new javax.swing.JList();
+        lblId = new javax.swing.JLabel();
+        txtId = new javax.swing.JTextField();
+        chbEnable = new javax.swing.JCheckBox();
+        lblClass = new javax.swing.JLabel();
+        txtClass = new javax.swing.JTextField();
+        btnUp = new javax.swing.JButton();
+        btnDown = new javax.swing.JButton();
+        applyPanel = new javax.swing.JPanel();
+
+        jScrollPane1.setViewportView(lstInterceptors);
+
+        lblId.setText("Id: ");
+
+        chbEnable.setText("Enable");
+
+        lblClass.setText("Class:");
+
+        btnUp.setText("Up");
+        btnUp.setEnabled(false);
+
+        btnDown.setText("Down");
+        btnDown.setEnabled(false);
+
+        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
+        this.setLayout(layout);
+        layout.setHorizontalGroup(
+            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+            .add(layout.createSequentialGroup()
+                .add(11, 11, 11)
+                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 215, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+                    .add(layout.createSequentialGroup()
+                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
+                            .add(org.jdesktop.layout.GroupLayout.LEADING, btnUp, 0, 0, Short.MAX_VALUE)
+                            .add(org.jdesktop.layout.GroupLayout.LEADING, btnDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+                        .add(41, 41, 41)
+                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+                            .add(layout.createSequentialGroup()
+                                .add(20, 20, 20)
+                                .add(lblId, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+                            .add(lblClass))
+                        .add(2, 2, 2)
+                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+                            .add(layout.createSequentialGroup()
+                                .add(txtId, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 179, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
+                                .add(18, 18, 18)
+                                .add(chbEnable))
+                            .add(txtClass, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 324, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
+                    .add(layout.createSequentialGroup()
+                        .add(94, 94, 94)
+                        .add(applyPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 308, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
+                .addContainerGap(107, Short.MAX_VALUE))
+        );
+        layout.setVerticalGroup(
+            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+            .add(layout.createSequentialGroup()
+                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
+                        .add(layout.createSequentialGroup()
+                            .add(88, 88, 88)
+                            .add(btnUp)
+                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+                            .add(btnDown))
+                        .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
+                            .addContainerGap()
+                            .add(applyPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
+                    .add(layout.createSequentialGroup()
+                        .add(31, 31, 31)
+                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
+                            .add(lblId)
+                            .add(chbEnable)
+                            .add(txtId, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
+                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
+                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
+                            .add(lblClass)
+                            .add(txtClass, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
+                    .add(layout.createSequentialGroup()
+                        .addContainerGap()
+                        .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 258, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
+                .addContainerGap())
+        );
+    }// </editor-fold>//GEN-END:initComponents
+
+    // Variables declaration - do not modify//GEN-BEGIN:variables
+    private javax.swing.JPanel applyPanel;
+    private javax.swing.JButton btnDown;
+    private javax.swing.JButton btnUp;
+    private javax.swing.JCheckBox chbEnable;
+    private javax.swing.JScrollPane jScrollPane1;
+    private javax.swing.JLabel lblClass;
+    private javax.swing.JLabel lblId;
+    private javax.swing.JList lstInterceptors;
+    private javax.swing.JTextField txtClass;
+    private javax.swing.JTextField txtId;
+    // End of variables declaration//GEN-END:variables
+
+}

Added: directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/LoginPanel.form
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/LoginPanel.form?rev=992827&view=auto
==============================================================================
--- directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/LoginPanel.form (added)
+++ directory/sandbox/kayyagari/http-directory/directory-http-ui/src/main/java/org/apache/directory/http/client/ui/LoginPanel.form Sun Sep  5 17:13:58 2010
@@ -0,0 +1,121 @@
+<?xml version="1.1" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+  <AuxValues>
+    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
+    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>
+    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+  </AuxValues>
+
+  <Layout>
+    <DimensionLayout dim="0">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" attributes="0">
+              <Group type="103" groupAlignment="0" attributes="0">
+                  <Group type="102" alignment="0" attributes="0">
+                      <EmptySpace min="-2" pref="177" max="-2" attributes="0"/>
+                      <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
+                  </Group>
+                  <Group type="102" alignment="0" attributes="0">
+                      <EmptySpace min="-2" pref="204" max="-2" attributes="0"/>
+                      <Component id="btnLogin" min="-2" max="-2" attributes="0"/>
+                  </Group>
+                  <Group type="102" alignment="0" attributes="0">
+                      <Group type="103" groupAlignment="0" max="-2" attributes="0">
+                          <Group type="102" alignment="1" attributes="1">
+                              <EmptySpace max="32767" attributes="0"/>
+                              <Component id="lblPassword" min="-2" max="-2" attributes="1"/>
+                              <EmptySpace min="-2" pref="1" max="-2" attributes="0"/>
+                          </Group>
+                          <Group type="102" alignment="0" attributes="0">
+                              <EmptySpace min="-2" pref="96" max="-2" attributes="0"/>
+                              <Group type="103" groupAlignment="0" attributes="0">
+                                  <Component id="lblUrl" alignment="0" min="-2" pref="73" max="-2" attributes="0"/>
+                                  <Component id="lblUserName" alignment="0" min="-2" max="-2" attributes="1"/>
+                              </Group>
+                          </Group>
+                      </Group>
+                      <EmptySpace min="-2" pref="1" max="-2" attributes="0"/>
+                      <Group type="103" groupAlignment="0" attributes="0">
+                          <Component id="txtUrl" min="-2" pref="269" max="-2" attributes="1"/>
+                          <Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0">
+                              <Component id="txtPassword" alignment="0" max="32767" attributes="1"/>
+                              <Component id="txtUserName" alignment="0" pref="206" max="32767" attributes="1"/>
+                          </Group>
+                      </Group>
+                  </Group>
+              </Group>
+              <EmptySpace pref="122" max="32767" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+    <DimensionLayout dim="1">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" alignment="0" attributes="0">
+              <EmptySpace min="-2" pref="31" max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="3" attributes="0">
+                  <Component id="txtUrl" alignment="3" min="-2" max="-2" attributes="0"/>
+                  <Component id="lblUrl" alignment="3" min="-2" max="-2" attributes="0"/>
+              </Group>
+              <EmptySpace max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="3" attributes="0">
+                  <Component id="lblUserName" alignment="3" min="-2" max="-2" attributes="0"/>
+                  <Component id="txtUserName" alignment="3" min="-2" max="-2" attributes="0"/>
+              </Group>
+              <EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
+              <Component id="jLabel1" min="-2" pref="12" max="-2" attributes="0"/>
+              <EmptySpace max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="3" attributes="0">
+                  <Component id="txtPassword" alignment="3" min="-2" max="-2" attributes="0"/>
+                  <Component id="lblPassword" alignment="3" min="-2" max="-2" attributes="0"/>
+              </Group>
+              <EmptySpace max="-2" attributes="0"/>
+              <Component id="btnLogin" min="-2" max="-2" attributes="0"/>
+              <EmptySpace pref="64" max="32767" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+  </Layout>
+  <SubComponents>
+    <Component class="javax.swing.JLabel" name="lblPassword">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Password:"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JLabel" name="lblUserName">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="User Name:"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JButton" name="btnLogin">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="Login"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JLabel" name="jLabel1">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="e.x uid=admin,ou=system"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JTextField" name="txtUserName">
+    </Component>
+    <Component class="javax.swing.JPasswordField" name="txtPassword">
+    </Component>
+    <Component class="javax.swing.JLabel" name="lblUrl">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="ServiceURL:"/>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JTextField" name="txtUrl">
+      <Properties>
+        <Property name="text" type="java.lang.String" value="http://localhost:7009/adminapp/ldap"/>
+      </Properties>
+    </Component>
+  </SubComponents>
+</Form>



Mime
View raw message