Examples of LdifChangeDeleteRecord


Examples of org.apache.directory.ldapstudio.browser.core.model.ldif.container.LdifChangeDeleteRecord

                throw createConnectionException( null, ne );
            }
        }
        else if ( record instanceof LdifChangeDeleteRecord )
        {
            LdifChangeDeleteRecord changeDeleteRecord = ( LdifChangeDeleteRecord ) record;
            try
            {
                this.context.destroySubcontext( dn, getControls( changeDeleteRecord ), monitor );
            }
            catch ( NamingException ne )
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.ldif.container.LdifChangeDeleteRecord

                    }
                    parseAttrValRecord( record );
                }
                else if ( changeTypeLine.isDelete() )
                {
                    record = new LdifChangeDeleteRecord( dnLine );
                    append( record, partList );
                    record.setChangeType( changeTypeLine );
                    if ( !changeTypeLine.isValid() )
                    {
                        this.cleanupLine( record );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.ldif.container.LdifChangeDeleteRecord

    void delete( IEntry entry, ExtendedProgressMonitor monitor )
    {
        try
        {
            LdifChangeDeleteRecord cdr = new LdifChangeDeleteRecord( LdifDnLine.create( entry.getDn().toString() ) );
            ModelConverter.addControls( cdr, entry );
            cdr.setChangeType( LdifChangeTypeLine.createDelete() );
            cdr.finish( LdifSepLine.create() );

            this.applyModificationAndLog( cdr, monitor );

            connection.uncacheEntry( entry );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.ldif.container.LdifChangeDeleteRecord

    void delete( IEntry entry, ExtendedProgressMonitor monitor )
    {
        try
        {
            LdifChangeDeleteRecord cdr = new LdifChangeDeleteRecord( LdifDnLine.create( entry.getDn().toString() ) );
            ModelConverter.addControls( cdr, entry );
            cdr.setChangeType( LdifChangeTypeLine.createDelete() );
            cdr.finish( LdifSepLine.create() );

            this.applyModificationAndLog( cdr, monitor );

            connection.uncacheEntry( entry );
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.ldif.container.LdifChangeDeleteRecord

                throw createConnectionException( null, monitor.getException() );
            }
        }
        else if ( record instanceof LdifChangeDeleteRecord )
        {
            LdifChangeDeleteRecord changeDeleteRecord = ( LdifChangeDeleteRecord ) record;
            wrapper.deleteEntry( dn, getControls( changeDeleteRecord ), monitor );
            if(monitor.errorsReported())
            {
                throw createConnectionException( null, monitor.getException() );
            }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.ldif.container.LdifChangeDeleteRecord

    void delete( IEntry entry, StudioProgressMonitor monitor )
    {
        try
        {
            LdifChangeDeleteRecord cdr = new LdifChangeDeleteRecord( LdifDnLine.create( entry.getDn().toString() ) );
            ModelConverter.addControls( cdr, entry );
            cdr.setChangeType( LdifChangeTypeLine.createDelete() );
            cdr.finish( LdifSepLine.create() );

            this.applyModificationAndLog( cdr, monitor );

            connection.uncacheEntry( entry );
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.ldif.container.LdifChangeDeleteRecord

                    }
                    parseAttrValRecord( record );
                }
                else if ( changeTypeLine.isDelete() )
                {
                    record = new LdifChangeDeleteRecord( dnLine );
                    append( record, partList );
                    record.setChangeType( changeTypeLine );
                    if ( !changeTypeLine.isValid() )
                    {
                        this.cleanupLine( record );
View Full Code Here

Examples of org.apache.directory.studio.ldifparser.model.container.LdifChangeDeleteRecord

                    getControls( record ), monitor, null );
            }
        }
        else if ( record instanceof LdifChangeDeleteRecord )
        {
            LdifChangeDeleteRecord changeDeleteRecord = ( LdifChangeDeleteRecord ) record;
            browserConnection.getConnection().getJNDIConnectionWrapper().deleteEntry( dn,
                getControls( changeDeleteRecord ), monitor, null );
        }
        else if ( record instanceof LdifChangeModifyRecord )
        {
View Full Code Here

Examples of org.apache.directory.studio.ldifparser.model.container.LdifChangeDeleteRecord

                    }
                    parseAttrValRecord( record );
                }
                else if ( changeTypeLine.isDelete() )
                {
                    record = new LdifChangeDeleteRecord( dnLine );
                    append( record, partList );
                    record.setChangeType( changeTypeLine );
                    if ( !changeTypeLine.isValid() )
                    {
                        this.cleanupLine( record );
View Full Code Here

Examples of org.apache.directory.studio.ldifparser.model.container.LdifChangeDeleteRecord

        if ( !isModificationLogEnabled() )
        {
            return;
        }

        LdifChangeDeleteRecord record = new LdifChangeDeleteRecord( LdifDnLine.create( dn ) );
        addControlLines( record, controls );
        record.setChangeType( LdifChangeTypeLine.createDelete() );
        record.finish( LdifSepLine.create() );

        String formattedString = record.toFormattedString( LdifFormatParameters.DEFAULT );
        log( formattedString, ex, connection );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.