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

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


    {
        super();

        if ( parent == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_entry );
        }
        if ( rdn == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_rdn );
        }
        if ( "".equals( rdn.toString() ) ) { //$NON-NLS-1$
            throw new ModelModificationException( BrowserCoreMessages.model__empty_rdn );
        }

        this.parent = parent;
        this.rdn = rdn;
    }
View Full Code Here


            this.getJNDIConnection().setAttributeInfo( this, ai );
        }

        if ( !this.equals( attributeToAdd.getEntry() ) )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__attributes_entry_is_not_myself );
        }
        // else
        // if(ai.attributeMap.containsKey(attributeToAdd.getDescription().toLowerCase()))
        // {
        else if ( ai.attributeMap.containsKey( oidString.toLowerCase() ) )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__attribute_already_exists );
        }
        else
        {
            // ai.attributeMap.put(attributeToAdd.getDescription().toLowerCase(),
            // attributeToAdd);
View Full Code Here

            }
            this.entryModified( new AttributeDeletedEvent( this.getJNDIConnection(), this, attribute ) );
        }
        else
        {
            throw new ModelModificationException( BrowserCoreMessages.model__attribute_does_not_exist );
        }
    }
View Full Code Here

    {
        this.init( attribute, rawValue );

        if ( rawValue == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_value );
        }
    }
View Full Code Here

     */
    private void init( IAttribute attribute, Object rawValue ) throws ModelModificationException
    {
        if ( attribute == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_attribute );
        }

        this.attribute = attribute;

        if ( rawValue == null )
View Full Code Here

    {
        super();

        if ( baseDn == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_dn );
        }
        if ( connection == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_connection );
        }

        this.setDirectoryEntry( true );
        this.baseDn = baseDn;
        // this.connectionName = connection.getName();
View Full Code Here

     */
    public Attribute( IEntry entry, String description ) throws ModelModificationException
    {
        if ( entry == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_entry );
        }
        if ( description == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_attribute );
        }

        this.entry = entry;
        this.attributeDescription = new AttributeDescription( description );
        this.valueList = new ArrayList<IValue>();
View Full Code Here

     */
    private void checkValue( IValue value ) throws ModelModificationException
    {
        if ( value == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_value );
        }
        if ( !value.getAttribute().equals( this ) )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__values_attribute_is_not_myself );
        }
    }
View Full Code Here

    {
        super();

        if ( baseDn == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_dn );
        }
        if ( "".equals( baseDn.toString() ) ) { //$NON-NLS-1$
            throw new ModelModificationException( BrowserCoreMessages.model__empty_dn );
        }
        if ( connection == null )
        {
            throw new ModelModificationException( BrowserCoreMessages.model__empty_connection );
        }

        this.setDirectoryEntry( true );
        this.baseDn = baseDn;
        // this.connectionName = connection.getName();
View Full Code Here

TOP

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

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.