Examples of AttributeDeletedEvent


Examples of org.apache.directory.ldapstudio.browser.core.events.AttributeDeletedEvent


    public void deleteAttribute( IAttribute attributeToDelete ) throws ModelModificationException
    {
        attributeMap.remove( attributeToDelete.getDescription().toLowerCase() );
        EventRegistry.fireEntryUpdated( new AttributeDeletedEvent( attributeToDelete.getEntry().getConnection(), this,
            attributeToDelete ), this );
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.events.AttributeDeletedEvent

            ai.attributeMap.remove( oidString.toLowerCase() );
            if ( ai.attributeMap.isEmpty() )
            {
                this.getJNDIConnection().setAttributeInfo( this, null );
            }
            this.entryModified( new AttributeDeletedEvent( this.getJNDIConnection(), this, attribute ) );
        }
        else
        {
            throw new ModelModificationException( BrowserCoreMessages.model__attribute_does_not_exist );
        }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.events.AttributeDeletedEvent

        {
            this.event = new ValueDeletedEvent( entry.getConnection(), entry, values[0].getAttribute(), values[0] );
        }
        else if ( attributes.length > 0 )
        {
            this.event = new AttributeDeletedEvent( entry.getConnection(), entry, attributes[0] );
        }
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.events.AttributeDeletedEvent

                    .getAddedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributeDeletedEvent )
            {
                AttributeDeletedEvent e = ( AttributeDeletedEvent ) event;
                AttributeDeletedEvent delegateEvent = new AttributeDeletedEvent( e.getConnection(), this, e
                    .getDeletedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributesInitializedEvent )
            {
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.events.AttributeDeletedEvent

                    .getAddedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributeDeletedEvent )
            {
                AttributeDeletedEvent e = ( AttributeDeletedEvent ) event;
                AttributeDeletedEvent delegateEvent = new AttributeDeletedEvent( e.getOriginalConnection(), this, e
                    .getDeletedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributesInitializedEvent )
            {
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.events.AttributeDeletedEvent

                throw new IllegalArgumentException( BrowserCoreMessages.model__attribute_does_not_exist + ": "
                    + attributeToDelete );
            }
        }

        entryModified( new AttributeDeletedEvent( getBrowserConnectionImpl(), this, attributeToDelete ) );
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.events.AttributeDeletedEvent

     */
    public void deleteAttribute( IAttribute attributeToDelete )
    {
        String oidString = attributeToDelete.getAttributeDescription().toOidString( getBrowserConnection().getSchema() );
        attributeMap.remove( oidString.toLowerCase() );
        EventRegistry.fireEntryUpdated( new AttributeDeletedEvent( attributeToDelete.getEntry().getBrowserConnection(),
            this, attributeToDelete ), this );
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.events.AttributeDeletedEvent

            ai.attributeMap.remove( oidString.toLowerCase() );
            if ( ai.attributeMap.isEmpty() )
            {
                getBrowserConnectionImpl().setAttributeInfo( this, null );
            }
            entryModified( new AttributeDeletedEvent( getBrowserConnectionImpl(), this, attribute ) );
        }
        else
        {
            throw new IllegalArgumentException( BrowserCoreMessages.model__attribute_does_not_exist + ": " + attributeToDelete );
        }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.events.AttributeDeletedEvent

                    .getAddedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributeDeletedEvent )
            {
                AttributeDeletedEvent e = ( AttributeDeletedEvent ) event;
                AttributeDeletedEvent delegateEvent = new AttributeDeletedEvent( e.getConnection(), this, e
                    .getDeletedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributesInitializedEvent )
            {
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.events.AttributeDeletedEvent

            event = new ValueDeletedEvent( entry.getBrowserConnection(), entry, deletedValues[0].getAttribute(),
                deletedValues[0] );
        }
        else if ( deletedAttributes != null && deletedAttributes.length > 0 )
        {
            event = new AttributeDeletedEvent( entry.getBrowserConnection(), entry, deletedAttributes[0] );
        }
        else
        {
            event = new AttributesInitializedEvent( entry );
        }
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.