Package org.apache.directory.studio.apacheds.configuration.model.v155

Examples of org.apache.directory.studio.apacheds.configuration.model.v155.ServerConfigurationV155


                    serverXmlIO = new ServerXmlIOV156();
                    serverConfiguration = serverXmlIO.parse( ApacheDSConfigurationPlugin.class
                        .getResourceAsStream( "default-server-1.5.6.xml" ) ); //$NON-NLS-1$
                    break;
                case VERSION_1_5_5:
                    serverXmlIO = new ServerXmlIOV155();
                    serverConfiguration = serverXmlIO.parse( ApacheDSConfigurationPlugin.class
                        .getResourceAsStream( "default-server-1.5.5.xml" ) ); //$NON-NLS-1$
                    break;
                case VERSION_1_5_4:
                    serverXmlIO = new ServerXmlIOV154();
View Full Code Here


            {
                case VERSION_1_5_6:
                    serverXmlIO = new ServerXmlIOV156();
                    break;
                case VERSION_1_5_5:
                    serverXmlIO = new ServerXmlIOV155();
                    break;
                case VERSION_1_5_4:
                    serverXmlIO = new ServerXmlIOV154();
                    break;
                case VERSION_1_5_3:
View Full Code Here

        {
            case VERSION_1_5_6:
                ServerXmlIOV156 serverXmlIOV156 = new ServerXmlIOV156();
                return serverXmlIOV156.parse( fis );
            case VERSION_1_5_5:
                ServerXmlIOV155 serverXmlIOV155 = new ServerXmlIOV155();
                return serverXmlIOV155.parse( fis );
            case VERSION_1_5_4:
                ServerXmlIOV154 serverXmlIOV154 = new ServerXmlIOV154();
                return serverXmlIOV154.parse( fis );
            case VERSION_1_5_3:
                ServerXmlIOV153 serverXmlIOV153 = new ServerXmlIOV153();
View Full Code Here

                    break;
                case VERSION_1_5_6:
                    serverXmlIO = new ServerXmlIOV156();
                    break;
                case VERSION_1_5_5:
                    serverXmlIO = new ServerXmlIOV155();
                    break;
                case VERSION_1_5_4:
                    serverXmlIO = new ServerXmlIOV154();
                    break;
                case VERSION_1_5_3:
View Full Code Here

        FileNotFoundException
    {
        InputStream fis = new FileInputStream( LdapServersManager.getServerFolder( server ).append( CONF )
            .append( SERVER_XML ).toFile() );

        ServerXmlIOV155 serverXmlIOV155 = new ServerXmlIOV155();
        return ( ServerConfigurationV155 ) serverXmlIOV155.parse( fis );
    }
View Full Code Here

        FileNotFoundException
    {
        InputStream fis = new FileInputStream( LdapServersManager.getServerFolder( server ).append( CONF )
            .append( SERVER_XML ).toFile() );

        ServerXmlIOV155 serverXmlIOV155 = new ServerXmlIOV155();
        return ( ServerConfigurationV155 ) serverXmlIOV155.parse( fis );
    }
View Full Code Here

            public void selectionChanged( SelectionChangedEvent event )
            {
                StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
                if ( !selection.isEmpty() )
                {
                    SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();
                    editSupportedMechanismButton
                        .setEnabled( ( SupportedMechanismEnum.NTLM.equals( selected ) || SupportedMechanismEnum.GSS_SPNEGO
                            .equals( selected ) ) );
                }
                else
View Full Code Here

    private void editSelectedSupportedMechanism()
    {
        StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();

            if ( SupportedMechanismEnum.NTLM.equals( selected ) || SupportedMechanismEnum.GSS_SPNEGO.equals( selected ) )
            {
                String oldNtlmProvider = selected.getNtlmProviderFqcn();

                NtlmProviderDialog dialog = new NtlmProviderDialog( oldNtlmProvider );
                if ( Dialog.OK == dialog.open() && dialog.isDirty() )
                {
                    selected.setNtlmProviderFqcn( dialog.getNtlmProvider() );
                    supportedMechanismsTableViewer.refresh();
                    setEditorDirty();
                }
            }
        }
View Full Code Here

            public void selectionChanged( SelectionChangedEvent event )
            {
                StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
                if ( !selection.isEmpty() )
                {
                    SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();
                    editSupportedMechanismButton
                        .setEnabled( ( SupportedMechanismEnum.NTLM.equals( selected ) || SupportedMechanismEnum.GSS_SPNEGO
                            .equals( selected ) ) );
                }
                else
View Full Code Here

    private void editSelectedSupportedMechanism()
    {
        StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();

            if ( SupportedMechanismEnum.NTLM.equals( selected ) || SupportedMechanismEnum.GSS_SPNEGO.equals( selected ) )
            {
                String oldNtlmProvider = selected.getNtlmProviderFqcn();

                NtlmProviderDialog dialog = new NtlmProviderDialog( oldNtlmProvider );
                if ( Dialog.OK == dialog.open() && dialog.isDirty() )
                {
                    selected.setNtlmProviderFqcn( dialog.getNtlmProvider() );
                    supportedMechanismsTableViewer.refresh();
                    setEditorDirty();
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.apacheds.configuration.model.v155.ServerConfigurationV155

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.