Package org.apache.directory.shared.ldap.entry

Examples of org.apache.directory.shared.ldap.entry.EntryAttribute


            String message = I18n.err( I18n.ERR_101 );
            LOG.error( message );
            throw new IllegalArgumentException( message );
        }
       
        EntryAttribute attribute = attributes.get( attributeType );
   
        if ( attribute != null )
        {
            // This Attribute already exist, we add the values
            // into it
            attribute.add( values );
        }
        else
        {
            // We have to create a new Attribute and set the values.
            // The upId, which is set to null, will be setup by the
View Full Code Here


           
            if ( this.attributes.containsKey( attributeType ) )
            {
                // We already have an attribute with the same AttributeType
                // Just add the new values into it.
                EntryAttribute oldAttribute = this.attributes.get( attributeType );
               
                for ( Value<?> value:serverAttribute )
                {
                    oldAttribute.add( value );
                }
               
                // And update the upId
                oldAttribute.setUpId( serverAttribute.getUpId() );
            }
            else
            {
                // The attributeType does not exist, add it
                this.attributes.put( attributeType, attribute );
View Full Code Here

        if ( attributeType == null )
        {
            return false;
        }
       
        EntryAttribute attribute = attributes.get( attributeType );
       
        if ( attribute != null )
        {
            return attribute.contains( values );
        }
        else
        {
            return false;
        }
View Full Code Here

        if ( attributeType == null )
        {
            return false;
        }

        EntryAttribute attribute = attributes.get( attributeType );
       
        if ( attribute != null )
        {
            return attribute.contains( values );
        }
        else
        {
            return false;
        }
View Full Code Here

        if ( attributeType == null )
        {
            return false;
        }
       
        EntryAttribute attribute = attributes.get( attributeType );
       
        if ( attribute != null )
        {
            return attribute.contains( values );
        }
        else
        {
            return false;
        }
View Full Code Here

            if ( attributeType == null )
            {
                return false;
            }
           
            EntryAttribute attribute = attributes.get( attributeType );
           
            if ( attribute != null )
            {
                return attribute.contains( values );
            }
            else
            {
                return false;
            }
View Full Code Here

    public void enableSchema( String schemaName ) throws Exception
    {
        DN dn = new DN( "cn=" + schemaName + ",ou=schema" );
        dn.normalize( schemaManager.getNormalizerMapping() );
        ServerEntry entry = partition.lookup( new LookupOperationContext( null, dn ) );
        EntryAttribute disabledAttr = entry.get( disabledAttributeType );
        List<Modification> mods = new ArrayList<Modification>( 3 );

        if ( disabledAttr == null )
        {
            LOG.warn( "Does not make sense: you're trying to enable {} schema which is already enabled", schemaName );
            return;
        }

        boolean isDisabled = disabledAttr.contains( "TRUE" );
       
        if ( !isDisabled )
        {
            LOG.warn( "Does not make sense: you're trying to enable {} schema which is already enabled", schemaName );
            return;
View Full Code Here

            if ( attributeType == null )
            {
                return false;
            }
           
            EntryAttribute attribute = attributes.get( attributeType );
           
            if ( attribute != null )
            {
                return attribute.contains( values );
            }
            else
            {
                return false;
            }
View Full Code Here

            cursor = partition.search( searchOperationContext );

            while ( cursor.next() )
            {
                ServerEntry sr = cursor.get();
                EntryAttribute disabled = sr.get( disabledAttributeType );

                if ( disabled == null )
                {
                    set.add( sr );
                }
                else if ( disabled.get().equals( "FALSE" ) )
                {
                    set.add( sr );
                }
            }
        }
View Full Code Here

            if ( attributeType == null )
            {
                return false;
            }

            EntryAttribute attribute = attributes.get( attributeType );
           
            if ( attribute != null )
            {
                return attribute.contains( values );
            }
            else
            {
                return false;
            }
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.entry.EntryAttribute

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.