/** * Parses a Dn from a String * * @param name The Dn to parse * @return A valid Dn * @throws org.apache.directory.api.ldap.model.exception.LdapException If the Dn was invalid */ /* No protection*/static Dn parse( String name ) throws LdapException { Dn dn = new Dn(); parseDn( null, name, dn ); return dn; }
/** * Parses a Dn from a String * * @param name The Dn to parse * @return A valid Dn * @throws org.apache.directory.api.ldap.model.exception.LdapException If the Dn was invalid */ /* No protection*/static Dn parse( String name ) throws LdapException { Dn dn = new Dn(); parseDn( null, name, dn ); return dn; }
/** * Parses a Dn from a String * * @param name The Dn to parse * @return A valid Dn * @throws org.apache.directory.api.ldap.model.exception.LdapException If the Dn was invalid */ /* No protection*/static Dn parse( String name ) throws LdapException { Dn dn = new Dn(); parseDn( null, name, dn ); return dn; }
/** * Parses a Dn from a String * * @param schemaManager The SchemaManager * @param name The Dn to parse * @return A valid Dn * @throws LdapException If the Dn was invalid */ /* No protection*/static Dn parse( SchemaManager schemaManager, String name ) throws LdapException { Dn dn = new Dn( schemaManager ); parseDn( schemaManager, name, dn ); return dn; }
/** * Parses a Dn from a String * * @param schemaManager The SchemaManager * @param name The Dn to parse * @return A valid Dn * @throws LdapException If the Dn was invalid */ /* No protection*/static Dn parse( SchemaManager schemaManager, String name ) throws LdapException { Dn dn = new Dn( schemaManager ); parseDn( schemaManager, name, dn ); return dn; }
/** * Parses a Dn from a String * * @param schemaManager The SchemaManager * @param name The Dn to parse * @return A valid Dn * @throws LdapException If the Dn was invalid */ /* No protection*/static Dn parse( SchemaManager schemaManager, String name ) throws LdapException { Dn dn = new Dn( schemaManager ); parseDn( schemaManager, name, dn ); return dn; }
/** * Parses the given name string and fills the given Dn object. * * @param schemaManager The SchemaManager * @param name the name to parse * @param dn the Dn to fill * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/static void parseDn( SchemaManager schemaManager, String name, Dn dn ) throws LdapInvalidDnException { String normName = parseDn( schemaManager, name, dn.rdns ); dn.setUpName( name ); dn.setNormName( normName ); }
/** * Parses the given name string and fills the given Dn object. * * @param schemaManager The SchemaManager * @param name the name to parse * @param dn the Dn to fill * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/static void parseDn( SchemaManager schemaManager, String name, Dn dn ) throws LdapInvalidDnException { String normName = parseDn( schemaManager, name, dn.rdns ); dn.setUpName( name ); dn.setNormName( normName ); }
/** * Parses the given name string and fills the given Dn object. * * @param schemaManager The SchemaManager * @param name the name to parse * @param dn the Dn to fill * * @throws LdapInvalidDnException the invalid name exception */ /* No protection*/static void parseDn( SchemaManager schemaManager, String name, Dn dn ) throws LdapInvalidDnException { String normName = parseDn( schemaManager, name, dn.rdns ); dn.setUpName( name ); dn.setNormName( normName ); }
/** * Parse a Dn. * * @param schemaManager The SchemaManager * @param name The Dn to be parsed * @param rdns The list that will contain the RDNs * @return The nromalized Dn * @throws LdapInvalidDnException If the Dn is invalid */ private static String parseInternal( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { try { return FastDnParser.parseDn( schemaManager, name, rdns ); } catch ( TooComplexDnException e ) { rdns.clear(); return new ComplexDnParser().parseDn( schemaManager, name, rdns ); } }
/** * Parse a Dn. * * @param schemaManager The SchemaManager * @param name The Dn to be parsed * @param rdns The list that will contain the RDNs * @return The nromalized Dn * @throws LdapInvalidDnException If the Dn is invalid */ private static String parseInternal( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { try { return FastDnParser.parseDn( schemaManager, name, rdns ); } catch ( TooComplexDnException e ) { rdns.clear(); return new ComplexDnParser().parseDn( schemaManager, name, rdns ); } }
/** * Parse a Dn. * * @param schemaManager The SchemaManager * @param name The Dn to be parsed * @param rdns The list that will contain the RDNs * @return The nromalized Dn * @throws LdapInvalidDnException If the Dn is invalid */ private static String parseInternal( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { try { return FastDnParser.parseDn( schemaManager, name, rdns ); } catch ( TooComplexDnException e ) { rdns.clear(); return new ComplexDnParser().parseDn( schemaManager, name, rdns ); } }