directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1643289 - /directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/
Date Fri, 05 Dec 2014 14:07:54 GMT
Author: elecharny
Date: Fri Dec  5 14:07:54 2014
New Revision: 1643289

URL: http://svn.apache.org/r1643289
Log:
Added the MaxPDUSize configuration element

Modified:
    directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
    directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages.properties
    directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_de.properties
    directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_fr.properties

Modified: directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java?rev=1643289&r1=1643288&r2=1643289&view=diff
==============================================================================
--- directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
(original)
+++ directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
Fri Dec  5 14:07:54 2014
@@ -212,9 +212,10 @@ public class LdapLdapsServersPage extend
     private Button editEnabledProtocolsButton;
     private Button deleteEnabledProtocolsButton;
     
-    /** LDAP limit */
+    /** LDAP limits */
     private Text maxTimeLimitText;
     private Text maxSizeLimitText;
+    private Text maxPduSizeText;
     
     
     private Button authMechSimpleCheckbox;
@@ -602,6 +603,11 @@ public class LdapLdapsServersPage extend
                 authMechNtlmText.getText() );
         }
     };
+    
+    
+    /**
+     * The maximum time for a SearchRequest's response
+     */
     private ModifyListener maxTimeLimitTextListener = new ModifyListener()
     {
         public void modifyText( ModifyEvent e )
@@ -609,6 +615,11 @@ public class LdapLdapsServersPage extend
             getLdapServerBean().setLdapServerMaxTimeLimit( Integer.parseInt( maxTimeLimitText.getText()
) );
         }
     };
+    
+    
+    /**
+     * The maximum size for a SearchRequest's response
+     */
     private ModifyListener maxSizeLimitTextListener = new ModifyListener()
     {
         public void modifyText( ModifyEvent e )
@@ -616,6 +627,20 @@ public class LdapLdapsServersPage extend
             getLdapServerBean().setLdapServerMaxSizeLimit( Integer.parseInt( maxSizeLimitText.getText()
) );
         }
     };
+    
+    
+    /**
+     * The maximum size for a request PDU
+     */
+    private ModifyListener maxPduSizeTextListener = new ModifyListener()
+    {
+        public void modifyText( ModifyEvent e )
+        {
+            getLdapServerBean().setMaxPDUSize( Integer.parseInt( maxPduSizeText.getText()
) );
+        }
+    };
+    
+    
     private SelectionAdapter enableTlsCheckboxListener = new SelectionAdapter()
     {
         public void widgetSelected( SelectionEvent e )
@@ -1067,6 +1092,11 @@ public class LdapLdapsServersPage extend
         toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.MaxSizeLimit"
) ); //$NON-NLS-1$
         maxSizeLimitText = createIntegerText( toolkit, composite );
         maxSizeLimitText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Max. PDU Size Text
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.MaxPduSize"
) ); //$NON-NLS-1$
+        maxPduSizeText = createIntegerText( toolkit, composite );
+        maxPduSizeText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
     }
 
 
@@ -1540,6 +1570,10 @@ public class LdapLdapsServersPage extend
         addDirtyListener( maxSizeLimitText );
         addModifyListener( maxSizeLimitText, maxSizeLimitTextListener );
 
+        // Max PDU Size Text
+        addDirtyListener( maxPduSizeText );
+        addModifyListener( maxPduSizeText, maxPduSizeTextListener );
+
         // Enable TLS Checkbox
         addDirtyListener( enableTlsCheckbox );
         addSelectionListener( enableTlsCheckbox, enableTlsCheckboxListener );
@@ -1709,6 +1743,10 @@ public class LdapLdapsServersPage extend
         removeDirtyListener( maxSizeLimitText );
         removeModifyListener( maxSizeLimitText, maxSizeLimitTextListener );
 
+        // Max PDU Size Text
+        removeDirtyListener( maxPduSizeText );
+        removeModifyListener( maxPduSizeText, maxPduSizeTextListener );
+
         // Hashing Password Checkbox
         removeDirtyListener( enableServerSidePasswordHashingCheckbox );
         removeSelectionListener( enableServerSidePasswordHashingCheckbox,
@@ -1845,8 +1883,9 @@ public class LdapLdapsServersPage extend
             }
 
             // Limits
-            setText( maxTimeLimitText, "" + ldapServerBean.getLdapServerMaxTimeLimit() );
//$NON-NLS-1$
-            setText( maxSizeLimitText, "" + ldapServerBean.getLdapServerMaxSizeLimit() );
//$NON-NLS-1$
+            setText( maxTimeLimitText, Integer.toString( ldapServerBean.getLdapServerMaxTimeLimit()
) );
+            setText( maxSizeLimitText, Integer.toString( ldapServerBean.getLdapServerMaxSizeLimit()
) );
+            setText( maxPduSizeText, Integer.toString( ldapServerBean.getMaxPDUSize() ) );
 
             // Enable TLS Checkbox
             setSelection( enableTlsCheckbox, getTlsExtendedOpHandlerBean().isEnabled() );

Modified: directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages.properties?rev=1643289&r1=1643288&r2=1643289&view=diff
==============================================================================
--- directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages.properties
(original)
+++ directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages.properties
Fri Dec  5 14:07:54 2014
@@ -59,6 +59,7 @@ LdapLdapsServersPage.HashingMethod=Hashi
 LdapLdapsServersPage.Keystore=Keystore:
 LdapLdapsServersPage.LdapLdapsServers=LDAP/LDAPS Servers
 LdapLdapsServersPage.Limits=Limits
+LdapLdapsServersPage.MaxPduSize=Max PDU Size (bytes):
 LdapLdapsServersPage.MaxSizeLimit=Max Size Limit (entries):
 LdapLdapsServersPage.MaxTimeLimit=Max Time Limit (ms):
 LdapLdapsServersPage.NbThreads=NbThreads:

Modified: directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_de.properties?rev=1643289&r1=1643288&r2=1643289&view=diff
==============================================================================
--- directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_de.properties
(original)
+++ directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_de.properties
Fri Dec  5 14:07:54 2014
@@ -59,6 +59,7 @@ LdapLdapsServersPage.HashingMethod=Hash
 LdapLdapsServersPage.Keystore=Keystore:
 LdapLdapsServersPage.LdapLdapsServers=LDAP/LDAPS Server
 LdapLdapsServersPage.Limits=Begrenzungen
+LdapLdapsServersPage.MaxPduSize=(EN)Max PDU Size (bytes):
 LdapLdapsServersPage.MaxSizeLimit=Max. Anzahl (Eintra\u00E4ge):
 LdapLdapsServersPage.MaxTimeLimit=Max. Zeit (ms):
 LdapLdapsServersPage.NbThreads=Threads Anzahl:

Modified: directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_fr.properties?rev=1643289&r1=1643288&r2=1643289&view=diff
==============================================================================
--- directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_fr.properties
(original)
+++ directory/studio/branches/studio-tycho/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/messages_fr.properties
Fri Dec  5 14:07:54 2014
@@ -59,6 +59,7 @@ LdapLdapsServersPage.HashingMethod=Méth
 LdapLdapsServersPage.Keystore=Magasin de clé:
 LdapLdapsServersPage.LdapLdapsServers=Serveurs LDAP/LDAPS
 LdapLdapsServersPage.Limits=Limites
+LdapLdapsServersPage.MaxPduSize=Limite de taille des PDUs (octets):
 LdapLdapsServersPage.MaxSizeLimit=Limite de taille max (entrées):
 LdapLdapsServersPage.MaxTimeLimit=Limite de temps max (ms):
 LdapLdapsServersPage.NbThreads=Nombre de Threads:



Mime
View raw message