Package org.apache.directory.ldapstudio.browser.core.model

Examples of org.apache.directory.ldapstudio.browser.core.model.DN


            {
                if ( dnCombo.getText().length() > 0 )
                {
                    try
                    {
                        dn = new DN( dnCombo.getText() );
                    }
                    catch ( NameException e1 )
                    {
                        dn = null;
                    }
View Full Code Here


    {
        try
        {
            IConnection connection = BrowserCorePlugin.getDefault().getConnectionManager().getConnection(
                memento.getString( "CONNECTION" ) );
            DN dn = new DN( memento.getString( "DN" ) );
            IEntry entry = connection.getEntryFromCache( dn );
            super.setInput( new EntryEditorInput( entry ) );
        }
        catch ( NameException e )
        {
View Full Code Here

        }

        if ( search.getConnection() != null )
        {
            IConnection connection = search.getConnection();
            DN searchBase = search.getSearchBase();

            if ( connectionWidget != null )
            {
                connectionWidget.setConnection( connection );
            }
View Full Code Here

            connection.setAuthMethod( cpw.getAuthenticationMethod() );

            connection.setFetchBaseDNs( cpw.isAutoFetchBaseDns() );
            try
            {
                connection.setBaseDN( new DN( cpw.getBaseDN() ) );
            }
            catch ( NameException e )
            {
            }
            connection.setCountLimit( cpw.getCountLimit() );
View Full Code Here

            }
            else
            {
                try
                {
                    /* DN baseDn = */new DN( baseDNCombo.getText() );
                }
                catch ( NameException e )
                {
                    message = "Please enter a valid base DN.";
                }
View Full Code Here

        {
            Connection conn;
            try
            {
                conn = new Connection( null, getHostName(), getPort(), getEncyrptionMethod(), isAutoFetchBaseDns(),
                    new DN( getBaseDN() ), getCountLimit(), getTimeLimit(), getAliasesDereferencingMethod(),
                    getReferralsHandlingMethod(), IConnection.AUTH_ANONYMOUS, null, null );
            }
            catch ( NameException e )
            {
                conn = null;
            }
            return conn;
        }
        else if ( getAuthenticationMethod() == IConnection.AUTH_SIMPLE )
        {
            Connection conn;
            try
            {
                conn = new Connection( null, getHostName(), getPort(), getEncyrptionMethod(), isAutoFetchBaseDns(),
                    new DN( getBaseDN() ), getCountLimit(), getTimeLimit(), getAliasesDereferencingMethod(),
                    getReferralsHandlingMethod(), IConnection.AUTH_SIMPLE, getSimpleAuthBindDN(),
                    getSimpleAuthBindPassword() );
            }
            catch ( NameException e )
            {
View Full Code Here

                    try
                    {
                        this.applyModificationAndLog( record, monitor );

                        String dn = record.getDnLine().getValueAsString();
                        IEntry entry = connection.getEntryFromCache( new DN( dn ) );
                        if ( entry != null )
                        {
                            if ( record instanceof LdifChangeDeleteRecord )
                            {
                                connection.uncacheEntry( entry );
View Full Code Here

            { this.oldEntry.getDn().toString() } ), 3 );
        monitor.reportProgress( " " ); //$NON-NLS-1$
        monitor.worked( 1 );

        IEntry parent = oldEntry.getParententry();
        DN newDn = new DN( newRdn, parent.getDn() );

        // rename in directory
        // TODO: use manual/simulated rename, if rename of subtree is not
        // supported
        connection.rename( oldEntry, newDn, deleteOldRdn, monitor );
View Full Code Here

    {
        super();
        this.setDirectoryEntry( true );
        // this.connectionName = connection.getName();
        this.connection = connection;
        this.baseDn = new DN();
    }
View Full Code Here

        LdifPart[] parts = ldifRecord.getParts();

        EventRegistry.suspendEventFireingInCurrentThread();

        DummyEntry entry = new DummyEntry( new DN( ldifRecord.getDnLine().getValueAsString() ), connection );

        for ( int i = 0; i < parts.length; i++ )
        {
            if ( parts[i] instanceof LdifAttrValLine )
            {
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.core.model.DN

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.