Package javax.naming.directory

Examples of javax.naming.directory.InvalidAttributeIdentifierException


                        classInt =
                                ProviderMgr.getRecordClassNumber(classStr);
                        if (classInt == -1) {
                            // jndi.4C=Unknown record class: {0}
                            throw new InvalidAttributeIdentifierException(
                                    Messages.getString("jndi.4C", classStr)); //$NON-NLS-1$
                        }
                        classesSet.add(new Integer(classInt));
                        typeStr = element.substring(k, element.length())
                                .trim();
                    }
                    else {
                        classesSet.add(new Integer(
                                ProviderConstants.IN_CLASS));
                        typeStr = element.trim();
                    }
                    typesInt = ProviderMgr.getRecordTypeNumber(typeStr);
                    if (typesInt == -1) {
                        // jndi.4D=Unknown record type: {0}
                        throw new InvalidAttributeIdentifierException(
                                Messages.getString("jndi.4D", typeStr)); //$NON-NLS-1$
                    }
                    typesSet.add(new Integer(typesInt));
                }
                // filling classes array
View Full Code Here


        {
            ne = new NameAlreadyBoundException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapInvalidAttributeTypeException )
        {
            ne = new InvalidAttributeIdentifierException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapInvalidAttributeValueException )
        {
            ne = new InvalidAttributeValueException( t.getLocalizedMessage() );
        }
View Full Code Here

        {
            attributeType = getService().getSchemaManager().lookupAttributeTypeRegistry( oid );
        }
        catch ( LdapException le )
        {
            throw new InvalidAttributeIdentifierException( le.getMessage() );
        }

        // make sure we add the request controls to operation
        try
        {
View Full Code Here

                entry = ServerEntryUtils.toServerEntry( ( ( DirContext ) obj ).getAttributes( "" ), target,
                    getDirectoryService().getSchemaManager() );
            }
            catch ( LdapInvalidAttributeTypeException liate )
            {
                throw new InvalidAttributeIdentifierException( liate.getMessage() );
            }

            if ( ( outServerEntry != null ) && ( outServerEntry.size() > 0 ) )
            {
                for ( Attribute attribute : outServerEntry )
View Full Code Here

                        String classStr = element.substring(0, k);

                        classInt = ProviderMgr.getRecordClassNumber(classStr);
                        if (classInt == -1) {
                            // jndi.4C=Unknown record class: {0}
                            throw new InvalidAttributeIdentifierException(
                                    Messages.getString("jndi.4C", classStr)); //$NON-NLS-1$
                        }
                        classesSet.add(new Integer(classInt));
                        typeStr = element.substring(k, element.length()).trim();
                    } else {
                        classesSet.add(new Integer(ProviderConstants.IN_CLASS));
                        typeStr = element.trim();
                    }
                    typesInt = ProviderMgr.getRecordTypeNumber(typeStr);
                    if (typesInt == -1) {
                        // jndi.4D=Unknown record type: {0}
                        throw new InvalidAttributeIdentifierException(Messages
                                .getString("jndi.4D", typeStr)); //$NON-NLS-1$
                    }
                    typesSet.add(new Integer(typesInt));
                }
                // filling classes array
View Full Code Here

                entry = ServerEntryUtils.toServerEntry( ( ( DirContext ) obj ).getAttributes( "" ), target,
                    getDirectoryService().getSchemaManager() );
            }
            catch ( LdapInvalidAttributeTypeException liate )
            {
                throw new InvalidAttributeIdentifierException( liate.getMessage() );
            }

            if ( ( outServerEntry != null ) && ( outServerEntry.size() > 0 ) )
            {
                for ( Attribute attribute : outServerEntry )
View Full Code Here

                        String classStr = element.substring(0, k);

                        classInt = ProviderMgr.getRecordClassNumber(classStr);
                        if (classInt == -1) {
                            // jndi.4C=Unknown record class: {0}
                            throw new InvalidAttributeIdentifierException(
                                    Messages.getString("jndi.4C", classStr)); //$NON-NLS-1$
                        }
                        classesSet.add(new Integer(classInt));
                        typeStr = element.substring(k, element.length()).trim();
                    } else {
                        classesSet.add(new Integer(ProviderConstants.IN_CLASS));
                        typeStr = element.trim();
                    }
                    typesInt = ProviderMgr.getRecordTypeNumber(typeStr);
                    if (typesInt == -1) {
                        // jndi.4D=Unknown record type: {0}
                        throw new InvalidAttributeIdentifierException(Messages
                                .getString("jndi.4D", typeStr)); //$NON-NLS-1$
                    }
                    typesSet.add(new Integer(typesInt));
                }
                // filling classes array
View Full Code Here

        {
            ne = new NameAlreadyBoundException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapInvalidAttributeTypeException )
        {
            ne = new InvalidAttributeIdentifierException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapInvalidAttributeValueException )
        {
            ne = new InvalidAttributeValueException( t.getLocalizedMessage() );
        }
View Full Code Here

TOP

Related Classes of javax.naming.directory.InvalidAttributeIdentifierException

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.