directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r527583 - in /directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration: actions/ editor/ model/
Date Wed, 11 Apr 2007 17:33:49 GMT
Author: pamarcelot
Date: Wed Apr 11 10:33:48 2007
New Revision: 527583

URL: http://svn.apache.org/viewvc?view=rev&rev=527583
Log:
Improved Model on Server Configuration plugin. Added initialization from input on the General
page and listeners initialization too.

Modified:
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/actions/OpenEditorAction.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditor.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditorInput.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/Partition.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/ServerConfiguration.java

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/actions/OpenEditorAction.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/actions/OpenEditorAction.java?view=diff&rev=527583&r1=527582&r2=527583
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/actions/OpenEditorAction.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/actions/OpenEditorAction.java
Wed Apr 11 10:33:48 2007
@@ -3,6 +3,11 @@
 
 import org.apache.directory.ldapstudio.apacheds.configuration.editor.ServerConfigurationEditor;
 import org.apache.directory.ldapstudio.apacheds.configuration.editor.ServerConfigurationEditorInput;
+import org.apache.directory.ldapstudio.apacheds.configuration.model.ExtendedOperation;
+import org.apache.directory.ldapstudio.apacheds.configuration.model.IndexedAttribute;
+import org.apache.directory.ldapstudio.apacheds.configuration.model.Interceptor;
+import org.apache.directory.ldapstudio.apacheds.configuration.model.Partition;
+import org.apache.directory.ldapstudio.apacheds.configuration.model.ServerConfiguration;
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.viewers.ISelection;
@@ -26,10 +31,45 @@
      */
     public void run( IAction action )
     {
+        ServerConfiguration serverConfiguration = new ServerConfiguration();
+        serverConfiguration.setAllowAnonymousAccess( true );
+        serverConfiguration.setEnableAccessControl( true );
+        serverConfiguration.setEnableChangePassword( true );
+        serverConfiguration.setEnableKerberos( true );
+        serverConfiguration.setEnableNTP( true );
+        serverConfiguration.setMaxSizeLimit( 10 );
+        serverConfiguration.setMaxThreads( 20 );
+        serverConfiguration.setMaxTimeLimit( 30 );
+        serverConfiguration.setPassword( "secret" );
+        serverConfiguration.setPath( "/usr/local/apacheds-1.5.0/conf/server.xml" );
+        serverConfiguration.setPort( 10389 );
+        serverConfiguration.setPrincipal( "uid=admin,ou=system" );
+        serverConfiguration.setSynchronizationPeriod( 40 );
+
+        serverConfiguration.addExtendedOperation( new ExtendedOperation(
+            "org.apache.directory.server.ldap.support.extended.GracefulShutdownHandler" )
);
+        serverConfiguration.addExtendedOperation( new ExtendedOperation(
+            "org.apache.directory.server.ldap.support.extended.LaunchDiagnosticUiHandler"
) );
+
+        serverConfiguration.addInterceptor( new Interceptor( "NormalizationService" ) );
+        serverConfiguration.addInterceptor( new Interceptor( "AuthenticationService" ) );
+        serverConfiguration.addInterceptor( new Interceptor( "ReferalService" ) );
+        serverConfiguration.addInterceptor( new Interceptor( "AuthorizationService" ) );
+
+        Partition partition = new Partition( "System Partition" );
+        partition.setSuffix( "ou=system" );
+        // TODO Add Context Entry
+        partition.setEnableOptimizer( true );
+        partition.setCacheSize( 1000 );
+        partition.setSynchronizationOnWrite( true );
+        partition.addIndexedAttribute( new IndexedAttribute( "cn", 100 ) );
+        partition.addIndexedAttribute( new IndexedAttribute( "ou", 30 ) );
+        serverConfiguration.addPartition( partition );
+
         IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
         try
         {
-            page.openEditor( new ServerConfigurationEditorInput(), ServerConfigurationEditor.ID
);
+            page.openEditor( new ServerConfigurationEditorInput( serverConfiguration ), ServerConfigurationEditor.ID
);
         }
         catch ( PartInitException e )
         {

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java?view=diff&rev=527583&r1=527582&r2=527583
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java
Wed Apr 11 10:33:48 2007
@@ -20,7 +20,10 @@
 package org.apache.directory.ldapstudio.apacheds.configuration.editor;
 
 
+import org.apache.directory.ldapstudio.apacheds.configuration.model.ServerConfiguration;
 import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
 import org.eclipse.swt.events.VerifyEvent;
@@ -65,6 +68,7 @@
     private Text maxTimeLimitText;
     private Text maxSizeLimitText;
     private Text synchPeriodText;
+    private Text maxThreadsText;
     private Button enableAccesControlCheckbox;
     private Button enableNTPCheckbox;
     private Button enableKerberosCheckbox;
@@ -98,6 +102,9 @@
         createSettingsSection( parent, toolkit );
         createLimitsSection( parent, toolkit );
         createOptionsSection( parent, toolkit );
+
+        initFromInput();
+        addListeners();
     }
 
 
@@ -156,7 +163,7 @@
 
         // Password
         toolkit.createLabel( client, "Password:" );
-        passwordText = toolkit.createText( client, "secret" );
+        passwordText = toolkit.createText( client, "" );
         passwordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         passwordText.setEchoChar( '\u2022' );
 
@@ -257,9 +264,9 @@
 
         // Max. Threads
         toolkit.createLabel( client, "Max. Threads:" );
-        synchPeriodText = toolkit.createText( client, "" );
-        synchPeriodText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
-        synchPeriodText.addVerifyListener( new VerifyListener()
+        maxThreadsText = toolkit.createText( client, "" );
+        maxThreadsText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+        maxThreadsText.addVerifyListener( new VerifyListener()
         {
             public void verifyText( VerifyEvent e )
             {
@@ -311,5 +318,187 @@
         // Enable Change Password
         enableChangePasswordCheckbox = toolkit.createButton( client, "Enable Change Password",
SWT.CHECK );
         enableChangePasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false ) );
+    }
+
+
+    /**
+     * Initializes the page with the Editor input.
+     */
+    private void initFromInput()
+    {
+        ServerConfiguration configuration = ( ( ServerConfigurationEditorInput ) getEditorInput()
)
+            .getServerConfiguration();
+
+        // Port
+        portText.setText( "" + configuration.getPort() );
+
+        // Principal
+        String principal = configuration.getPrincipal();
+        if ( principal != null )
+        {
+            principalText.setText( principal );
+        }
+
+        // Password
+        String password = configuration.getPassword();
+        if ( password != null )
+        {
+            passwordText.setText( password );
+        }
+
+        // Allow Anonymous Access
+        allowAnonymousAccessCheckbox.setSelection( configuration.isAllowAnonymousAccess()
);
+
+        // Max Time Limit
+        maxTimeLimitText.setText( "" + configuration.getMaxTimeLimit() );
+
+        // Max Size Limit
+        maxSizeLimitText.setText( "" + configuration.getMaxSizeLimit() );
+
+        // Synchronization Period
+        synchPeriodText.setText( "" + configuration.getSynchronizationPeriod() );
+
+        // Max Threads
+        maxThreadsText.setText( "" + configuration.getMaxThreads() );
+
+        // Enable Access Control
+        enableAccesControlCheckbox.setSelection( configuration.isEnableAccessControl() );
+
+        // Enable NTP
+        enableNTPCheckbox.setSelection( configuration.isEnableNTP() );
+
+        // Enable Kerberos
+        enableKerberosCheckbox.setSelection( configuration.isEnableKerberos() );
+
+        // Enable Change Password
+        enableChangePasswordCheckbox.setSelection( configuration.isEnableChangePassword()
);
+    }
+
+
+    /**
+     * Add listeners to UI fields.
+     */
+    private void addListeners()
+    {
+        portText.addModifyListener( new ModifyListener()
+        {
+            public void modifyText( ModifyEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        authenticationCombo.addModifyListener( new ModifyListener()
+        {
+            public void modifyText( ModifyEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        principalText.addModifyListener( new ModifyListener()
+        {
+            public void modifyText( ModifyEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        passwordText.addModifyListener( new ModifyListener()
+        {
+            public void modifyText( ModifyEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        showPasswordCheckbox.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        allowAnonymousAccessCheckbox.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        maxTimeLimitText.addModifyListener( new ModifyListener()
+        {
+            public void modifyText( ModifyEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        maxSizeLimitText.addModifyListener( new ModifyListener()
+        {
+            public void modifyText( ModifyEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        synchPeriodText.addModifyListener( new ModifyListener()
+        {
+            public void modifyText( ModifyEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        maxThreadsText.addModifyListener( new ModifyListener()
+        {
+            public void modifyText( ModifyEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        enableAccesControlCheckbox.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        enableNTPCheckbox.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        enableKerberosCheckbox.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+
+        enableChangePasswordCheckbox.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                setEditorDirty();
+            }
+        } );
+    }
+
+
+    /**
+     * Sets the Editor as dirty.
+     */
+    private void setEditorDirty()
+    {
+        ( ( ServerConfigurationEditor ) getEditor() ).setDirty( true );
     }
 }

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditor.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditor.java?view=diff&rev=527583&r1=527582&r2=527583
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditor.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditor.java
Wed Apr 11 10:33:48 2007
@@ -39,21 +39,25 @@
     /** The Editor ID */
     public static final String ID = "org.apache.directory.ldapstudio.apacheds.configuration.editor";
 
+    /** The dirty flag */
+    private boolean dirty = false;
+
     // The Pages
     private FormPage generalPage;
     private FormPage partitionsPage;
     private FormPage interceptorsPage;
     private FormPage extendedOperationsPage;
 
-    
+
     @Override
     public void init( IEditorSite site, IEditorInput input ) throws PartInitException
     {
         super.init( site, input );
-        
+
         setPartName( input.getName() );
     }
 
+
     /* (non-Javadoc)
      * @see org.eclipse.ui.forms.editor.FormEditor#addPages()
      */
@@ -101,5 +105,27 @@
     public boolean isSaveAsAllowed()
     {
         return false;
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.forms.editor.FormEditor#isDirty()
+     */
+    public boolean isDirty()
+    {
+        return dirty;
+    }
+
+
+    /**
+     * Sets the dirty state of the editor.
+     * 
+     * @param dirty
+     *      the new dirty
+     */
+    public void setDirty( boolean dirty )
+    {
+        this.dirty = dirty;
+        editorDirtyStateChanged();
     }
 }

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditorInput.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditorInput.java?view=diff&rev=527583&r1=527582&r2=527583
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditorInput.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ServerConfigurationEditorInput.java
Wed Apr 11 10:33:48 2007
@@ -20,6 +20,7 @@
 package org.apache.directory.ldapstudio.apacheds.configuration.editor;
 
 
+import org.apache.directory.ldapstudio.apacheds.configuration.model.ServerConfiguration;
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.ui.IEditorInput;
 import org.eclipse.ui.IPersistableElement;
@@ -33,6 +34,34 @@
  */
 public class ServerConfigurationEditorInput implements IEditorInput
 {
+    /** The Server Configuration */
+    private ServerConfiguration serverConfiguration;
+
+
+    /**
+     * Creates a new instance of ServerConfigurationEditorInput.
+     *
+     * @param serverConfiguration
+     *      the Server Configuration
+     */
+    public ServerConfigurationEditorInput( ServerConfiguration serverConfiguration )
+    {
+        this.serverConfiguration = serverConfiguration;
+    }
+
+
+    /**
+     * Gets the Server Configuration
+     *
+     * @return
+     *      the Server Configuration
+     */
+    public ServerConfiguration getServerConfiguration()
+    {
+        return serverConfiguration;
+    }
+
+
     /* (non-Javadoc)
      * @see org.eclipse.ui.IEditorInput#getToolTipText()
      */

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/Partition.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/Partition.java?view=diff&rev=527583&r1=527582&r2=527583
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/Partition.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/Partition.java
Wed Apr 11 10:33:48 2007
@@ -20,6 +20,12 @@
 package org.apache.directory.ldapstudio.apacheds.configuration.model;
 
 
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.naming.directory.Attributes;
+
+
 /**
  * This class represents a Partition.
  *
@@ -31,6 +37,33 @@
     /** The name of the partition */
     private String name;
 
+    /** The cache size of the partition */
+    private int cacheSize;
+
+    /** The suffix of the partition */
+    private String suffix;
+
+    /** The Enable Optimizer flag */
+    private boolean enableOptimizer;
+
+    /** The Synchronization On Write flag */
+    private boolean synchronizationOnWrite;
+
+    /** The Context Entry */
+    private Attributes contextEntry;
+
+    /** The indexed attributes */
+    private List<IndexedAttribute> indexedAttributes;
+
+
+    /**
+     * Creates a new instance of Partition.
+     */
+    public Partition()
+    {
+        indexedAttributes = new ArrayList<IndexedAttribute>();
+    }
+
 
     /**
      * Creates a new instance of Partition.
@@ -41,6 +74,7 @@
     public Partition( String name )
     {
         this.name = name;
+        indexedAttributes = new ArrayList<IndexedAttribute>();
     }
 
 
@@ -65,6 +99,178 @@
     public void setName( String name )
     {
         this.name = name;
+    }
+
+
+    /**
+     * Gets the cache size.
+     *
+     * @return
+     *      the cache size
+     */
+    public int getCacheSize()
+    {
+        return cacheSize;
+    }
+
+
+    /**
+     * Sets the cache size.
+     *
+     * @param cacheSize
+     *      the new cache size
+     */
+    public void setCacheSize( int cacheSize )
+    {
+        this.cacheSize = cacheSize;
+    }
+
+
+    /**
+     * Gets the Context Entry.
+     *
+     * @return
+     *      the Content Entry
+     */
+    public Attributes getContextEntry()
+    {
+        return contextEntry;
+    }
+
+
+    /**
+     * Sets the Context Entry
+     *
+     * @param contextEntry
+     *      the new Context Entry
+     */
+    public void setContextEntry( Attributes contextEntry )
+    {
+        this.contextEntry = contextEntry;
+    }
+
+
+    /**
+     * Gets the Enable Optimizer flag.
+     *
+     * @return
+     *      the Enable Optimizer flag
+     */
+    public boolean isEnableOptimizer()
+    {
+        return enableOptimizer;
+    }
+
+
+    /**
+     * Sets the Enable Optimizer flag.
+     *
+     * @param enableOptimizer
+     *      the new value for the Enable Optimizer flag
+     */
+    public void setEnableOptimizer( boolean enableOptimizer )
+    {
+        this.enableOptimizer = enableOptimizer;
+    }
+
+
+    /**
+     * Get the Indexed Attributes List.
+     *
+     * @return
+     *      the Indexed Attributes List
+     */
+    public List<IndexedAttribute> getIndexedAttributes()
+    {
+        return indexedAttributes;
+    }
+
+
+    /**
+     * Set the Indexed Attributes List.
+     *
+     * @param indexedAttributes
+     *      the new Indexed Attributes List
+     */
+    public void setIndexedAttributes( List<IndexedAttribute> indexedAttributes )
+    {
+        this.indexedAttributes = indexedAttributes;
+    }
+
+
+    /**
+     * Adds an Indexed Attribute.
+     *
+     * @param indexedAttribute
+     *      the Indexed Attribute to add
+     * @return
+     *      true (as per the general contract of the Collection.add method).
+     */
+    public boolean addIndexedAttribute( IndexedAttribute indexedAttribute )
+    {
+        return indexedAttributes.add( indexedAttribute );
+    }
+
+
+    /**
+     * Removes a Indexed Attribute.
+     *
+     * @param indexedAttribute
+     *      the Indexed Attribute to remove
+     * @return
+     *      true if this list contained the specified element.
+     */
+    public boolean removeIndexedAttribute( IndexedAttribute indexedAttribute )
+    {
+        return indexedAttributes.remove( indexedAttribute );
+    }
+
+
+    /**
+     * Gets the suffix.
+     *
+     * @return
+     *      the suffix
+     */
+    public String getSuffix()
+    {
+        return suffix;
+    }
+
+
+    /**
+     * Sets the suffix.
+     *
+     * @param suffix
+     *      the new suffix
+     */
+    public void setSuffix( String suffix )
+    {
+        this.suffix = suffix;
+    }
+
+
+    /**
+     * Gets the Synchronization On Write flag.
+     *
+     * @return
+     *      the Synchronization On Write flag
+     */
+    public boolean isSynchronizationOnWrite()
+    {
+        return synchronizationOnWrite;
+    }
+
+
+    /**
+     * Sets the Synchronization On Write flag.
+     *
+     * @param synchronizationOnWrite
+     *      the Synchronization On Write flag
+     */
+    public void setSynchronizationOnWrite( boolean synchronizationOnWrite )
+    {
+        this.synchronizationOnWrite = synchronizationOnWrite;
     }
 
 

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/ServerConfiguration.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/ServerConfiguration.java?view=diff&rev=527583&r1=527582&r2=527583
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/ServerConfiguration.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/model/ServerConfiguration.java
Wed Apr 11 10:33:48 2007
@@ -41,6 +41,9 @@
     /** The principal */
     private String principal;
 
+    /** The password */
+    private String password;
+
     /** The flag for Allow Anonymous Access */
     private boolean allowAnonymousAccess;
 
@@ -438,6 +441,30 @@
 
 
     /**
+     * Gets the password.
+     *
+     * @return
+     *      the password
+     */
+    public String getPassword()
+    {
+        return password;
+    }
+
+
+    /**
+     * Sets the password.
+     *
+     * @param password
+     *      the new password
+     */
+    public void setPassword( String password )
+    {
+        this.password = password;
+    }
+
+
+    /**
      * Gets the Path of the file corresponding to the ServerConfiguration.
      *
      * @return
@@ -531,4 +558,5 @@
     {
         this.synchronizationPeriod = synchronizationPeriod;
     }
+
 }



Mime
View raw message