directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1428836 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
Date Fri, 04 Jan 2013 13:17:11 GMT
Author: pamarcelot
Date: Fri Jan  4 13:17:11 2013
New Revision: 1428836

URL: http://svn.apache.org/viewvc?rev=1428836&view=rev
Log:
Added support for the 'Use Start TLS' setting in the Replication page.

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java?rev=1428836&r1=1428835&r2=1428836&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
Fri Jan  4 13:17:11 2013
@@ -111,6 +111,7 @@ public class ReplicationDetailsPage impl
     private Text bindDnText;
     private Text bindPasswordText;
     private Button showPasswordCheckbox;
+    private Button useStartTlsCheckbox;
     private Text sizeLimitText;
     private Text timeLimitText;
     private EntryWidget entryWidget;
@@ -382,6 +383,12 @@ public class ReplicationDetailsPage impl
         timeLimitText = toolkit.createText( composite, "" );
         timeLimitText.addVerifyListener( integerVerifyListener );
         timeLimitText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Use Start TLS
+        toolkit.createLabel( composite, "" ); //$NON-NLS-1$
+        useStartTlsCheckbox = toolkit.createButton( composite, "Use Start TLS", SWT.CHECK
);
+        useStartTlsCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false
) );
+        useStartTlsCheckbox.setSelection( false );
     }
 
 
@@ -679,6 +686,7 @@ public class ReplicationDetailsPage impl
         showPasswordCheckbox.addSelectionListener( showPasswordCheckboxSelectionListener
);
         sizeLimitText.addModifyListener( textModifyListener );
         timeLimitText.addModifyListener( textModifyListener );
+        useStartTlsCheckbox.addSelectionListener( buttonSelectionListener );
         entryWidget.addWidgetModifyListener( widgetModifyListener );
         filterWidget.addWidgetModifyListener( widgetModifyListener );
         subtreeScopeButton.addSelectionListener( buttonSelectionListener );
@@ -713,6 +721,7 @@ public class ReplicationDetailsPage impl
         showPasswordCheckbox.removeSelectionListener( showPasswordCheckboxSelectionListener
);
         sizeLimitText.removeModifyListener( textModifyListener );
         timeLimitText.removeModifyListener( textModifyListener );
+        useStartTlsCheckbox.removeSelectionListener( buttonSelectionListener );
         entryWidget.removeWidgetModifyListener( widgetModifyListener );
         filterWidget.removeWidgetModifyListener( widgetModifyListener );
         subtreeScopeButton.removeSelectionListener( buttonSelectionListener );
@@ -824,6 +833,9 @@ public class ReplicationDetailsPage impl
                 input.setReplSearchTimeout( 0 );
             }
 
+            // Use Start TLS
+            input.setReplUseTls( useStartTlsCheckbox.getSelection() );
+
             // Search Base DN
             Dn baseDn = entryWidget.getDn();
 
@@ -1031,6 +1043,9 @@ public class ReplicationDetailsPage impl
             // Time Limit
             timeLimitText.setText( checkNull( String.valueOf( input.getReplSearchTimeout()
) ) );
 
+            // Use Start TLS
+            useStartTlsCheckbox.setSelection( input.isReplUseTls() );
+
             // Search Base DN
             try
             {



Mime
View raw message