/** * Parses an Dn. * * @param schemaManager The SchemaManager * @param name the string representation of the distinguished name * @param rdns the (empty) list where parsed RDNs are put to * @return The normalized Dn * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/String parseDn( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name ) ) ); try { return dnParser.relativeDistinguishedNames( schemaManager, rdns ); } catch ( Exception e ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage(), e ); } }
/** * Parses an Rdn. * * @param schemaManager The SchemaManager * @param name the string representation of the relative distinguished name * @param rdn the (empty) Rdn where parsed ATAVs are put into * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/void parseRdn( SchemaManager schemaManager, String name, Rdn rdn ) throws LdapInvalidDnException { AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name ) ) ); try { dnParser.relativeDistinguishedName( schemaManager, rdn ); } catch ( Exception e ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage(), e ); } } }
/** * Parses an Rdn. * * @param schemaManager The SchemaManager * @param name the string representation of the relative distinguished name * @param rdn the (empty) Rdn where parsed ATAVs are put into * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/void parseRdn( SchemaManager schemaManager, String name, Rdn rdn ) throws LdapInvalidDnException { AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name ) ) ); try { dnParser.relativeDistinguishedName( schemaManager, rdn ); } catch ( Exception e ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage(), e ); } } }
/** * Parses an Dn. * * @param schemaManager The SchemaManager * @param name the string representation of the distinguished name * @param rdns the (empty) list where parsed RDNs are put to * @return The normalized Dn * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/String parseDn( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name ) ) ); try { return dnParser.relativeDistinguishedNames( schemaManager, rdns ); } catch ( Exception e ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage(), e ); } }
/** * Parses an Dn. * * @param schemaManager The SchemaManager * @param name the string representation of the distinguished name * @param rdns the (empty) list where parsed RDNs are put to * @return The normalized Dn * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/String parseDn( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name ) ) ); try { return dnParser.relativeDistinguishedNames( schemaManager, rdns ); } catch ( Exception e ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage(), e ); } }
/** * Parses an Rdn. * * @param schemaManager The SchemaManager * @param name the string representation of the relative distinguished name * @param rdn the (empty) Rdn where parsed ATAVs are put into * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/void parseRdn( SchemaManager schemaManager, String name, Rdn rdn ) throws LdapInvalidDnException { AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name ) ) ); try { dnParser.relativeDistinguishedName( schemaManager, rdn ); } catch ( Exception e ) { throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage(), e ); } } }