Codota Logo
Rdn.getNormName
Code IndexAdd Codota to your IDE (free)

How to use
getNormName
method
in
org.apache.directory.api.ldap.model.name.Rdn

Best Java code snippets using org.apache.directory.api.ldap.model.name.Rdn.getNormName (Showing top 20 results out of 315)

  • Common ways to obtain Rdn
private void myMethod () {
Rdn r =
  • Codota IconDn dn;dn.getRdn()
  • Codota IconSchemaManager schemaManager;new Rdn(schemaManager)
  • Codota IconModifyDnRequest modifyDnRequest;modifyDnRequest.getNewRdn()
  • Smart code suggestions by Codota
}
origin: org.apache.directory.api/api-all

/**
 * Get's a child using an rdn string.
 *
 * @param rdn the rdn to use as the node key
 * @return the child node corresponding to the rdn.
 */
public synchronized DnNode<N> getChild( Rdn rdn )
{
  if ( children.containsKey( rdn.getNormName() ) )
  {
    return children.get( rdn.getNormName() );
  }
  return null;
}
origin: org.apache.directory.api/api-all

/**
 * Tells if the current DnBranchNode contains another node associated
 * with an rdn.
 *
 * @param rdn The name we are looking for
 * @return <code>true</code> if the tree instance contains this name
 */
public synchronized boolean contains( Rdn rdn )
{
  return children.containsKey( rdn.getNormName() );
}
origin: org.apache.directory.api/api-ldap-extras-util

/**
 * Tells if the current DnBranchNode contains another node associated
 * with an rdn.
 *
 * @param rdn The name we are looking for
 * @return <code>true</code> if the tree instance contains this name
 */
public synchronized boolean contains( Rdn rdn )
{
  return children.containsKey( rdn.getNormName() );
}
origin: org.apache.directory.api/api-ldap-extras-util

/**
 * Get's a child using an rdn string.
 *
 * @param rdn the rdn to use as the node key
 * @return the child node corresponding to the rdn.
 */
public synchronized DnNode<N> getChild( Rdn rdn )
{
  if ( children.containsKey( rdn.getNormName() ) )
  {
    return children.get( rdn.getNormName() );
  }
  return null;
}
origin: org.apache.directory.api/api-ldap-client-all

sbNormName.append( rdn.getNormName() );
origin: org.apache.directory.api/api-all

/**
 * rename the DnNode's Dn
 * 
 * @param newRdn the new Rdn of this node
 * @throws LdapException If the rename failed
 */
public synchronized void rename( Rdn newRdn ) throws LdapException
{
  Dn temp = nodeDn.getParent();
  temp = temp.add( newRdn );
  Rdn oldRdn = nodeRdn;
  nodeRdn = temp.getRdn();
  nodeDn = temp;
  if ( parent != null )
  {
    parent.children.remove( oldRdn.getNormName() );
    parent.children.put( nodeRdn.getNormName(), this );
  }
  updateAfterModDn( nodeDn );
}
origin: org.apache.directory.api/api-ldap-extras-util

/**
 * rename the DnNode's Dn
 * 
 * @param newRdn the new Rdn of this node
 * @throws LdapException If the rename failed
 */
public synchronized void rename( Rdn newRdn ) throws LdapException
{
  Dn temp = nodeDn.getParent();
  temp = temp.add( newRdn );
  Rdn oldRdn = nodeRdn;
  nodeRdn = temp.getRdn();
  nodeDn = temp;
  if ( parent != null )
  {
    parent.children.remove( oldRdn.getNormName() );
    parent.children.put( nodeRdn.getNormName(), this );
  }
  updateAfterModDn( nodeDn );
}
origin: org.apache.directory.api/api-ldap-extras-util

currentNode = currentNode.children.get( rdn.getNormName() );
origin: org.apache.directory.api/api-all

currentNode = currentNode.children.get( rdn.getNormName() );
origin: org.apache.directory.api/api-ldap-extras-util

currentNode = currentNode.children.get( rdn.getNormName() );
origin: org.apache.directory.api/api-ldap-model

sb.append( rdn.getNormName() );
rdns.add( rdn );
origin: org.apache.directory.api/api-ldap-extras-util

currentNode = currentNode.children.get( rdn.getNormName() );
origin: org.apache.directory.api/api-all

sb.append( rdn.getNormName() );
rdns.add( rdn );
origin: org.apache.directory.api/api-ldap-client-all

sb.append( rdn.getNormName() );
rdns.add( rdn );
origin: org.apache.directory.api/api-all

currentNode = currentNode.children.get( rdn.getNormName() );
origin: org.apache.directory.api/api-ldap-model

/**
 * Parses the given name string and fills the given Rdn object.
 * 
 * @param schemaManager The SchemaManager
 * @param name the name to parse
 * @param rdn the Rdn to fill
 * 
 * @throws LdapInvalidDnException the invalid name exception
 */
/* No protection*/static void parseRdn( SchemaManager schemaManager, String name, Rdn rdn ) throws LdapInvalidDnException
{
  if ( Strings.isEmpty( name ) )
  {
    throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13602_RDN_EMPTY ) );
  }
  if ( rdn == null )
  {
    throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13603_NULL_RDN ) );
  }
  Position pos = new Position();
  pos.start = 0;
  pos.length = name.length();
  StringBuilder sb = new StringBuilder();
  parseRdnInternal( schemaManager, name, pos, rdn );
  
  sb.append( rdn.getNormName() );
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Parses the given name string and fills the given Rdn object.
 * 
 * @param schemaManager The SchemaManager
 * @param name the name to parse
 * @param rdn the Rdn to fill
 * 
 * @throws LdapInvalidDnException the invalid name exception
 */
/* No protection*/static void parseRdn( SchemaManager schemaManager, String name, Rdn rdn ) throws LdapInvalidDnException
{
  if ( Strings.isEmpty( name ) )
  {
    throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13602_RDN_EMPTY ) );
  }
  if ( rdn == null )
  {
    throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13603_NULL_RDN ) );
  }
  Position pos = new Position();
  pos.start = 0;
  pos.length = name.length();
  StringBuilder sb = new StringBuilder();
  parseRdnInternal( schemaManager, name, pos, rdn );
  
  sb.append( rdn.getNormName() );
}
origin: org.apache.directory.api/api-all

/**
 * Parses the given name string and fills the given Rdn object.
 * 
 * @param schemaManager The SchemaManager
 * @param name the name to parse
 * @param rdn the Rdn to fill
 * 
 * @throws LdapInvalidDnException the invalid name exception
 */
/* No protection*/static void parseRdn( SchemaManager schemaManager, String name, Rdn rdn ) throws LdapInvalidDnException
{
  if ( Strings.isEmpty( name ) )
  {
    throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13602_RDN_EMPTY ) );
  }
  if ( rdn == null )
  {
    throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, I18n.err( I18n.ERR_13603_NULL_RDN ) );
  }
  Position pos = new Position();
  pos.start = 0;
  pos.length = name.length();
  StringBuilder sb = new StringBuilder();
  parseRdnInternal( schemaManager, name, pos, rdn );
  
  sb.append( rdn.getNormName() );
}
origin: org.apache.directory.api/api-ldap-extras-util

parentNode.children.remove( rdn.getNormName() );
origin: org.apache.directory.api/api-all

node.depth = node.nodeDn.size() + depth;
rootNode.parent = node;
node.children.put( rootNode.nodeRdn.getNormName(), rootNode );
rootNode = node;
org.apache.directory.api.ldap.model.nameRdngetNormName

Popular methods of Rdn

  • <init>
    Creates a new RDN from a list of AVA
  • getName
  • getValue
    Get the value of the Ava which type is given as an argument.
  • equals
    Compares the specified Object with this Rdn for equality. Returns true if the given object is also a
  • getNormType
    Return the normalized type, or the first one of we have more than one (the lowest)
  • size
    Get the number of Avas of this Rdn
  • getAva
    Get the Ava which type is given as an argument. If we have more than one value associated with the t
  • escapeValue
    Transform a value in a String, accordingly to RFC 2253
  • readExternal
    We read back the data to create a new RDB. The structure read is exposed in the Rdn#writeExternal(Ob
  • writeExternal
    A Rdn is composed of on to many Avas (AttributeType And Value). We should write all those Avas seque
  • isSchemaAware
    Tells if the Rdn is schema aware.
  • toString
  • isSchemaAware,
  • toString,
  • addAVA,
  • addOrdered,
  • buildNormRdn,
  • clear,
  • compareTo,
  • getEscaped,
  • getType

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JPanel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now