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

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

Best Java code snippets using org.apache.directory.api.ldap.model.name.Rdn.toString (Showing top 4 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: apache/jackrabbit-oak

/**
 * Makes the intermediate path of an DN by splitting along the RDNs
 * @param dn the dn of the identity
 * @return the intermediate path or {@code null} if disabled by config
 */
private static String createDNPath(Dn dn) {
  StringBuilder path = new StringBuilder();
  for (Rdn rnd: dn.getRdns()) {
    if (path.length() > 0) {
      path.append('/');
    }
    path.append(Text.escapeIllegalJcrChars(rnd.toString()));
  }
  return path.toString();
}
origin: org.apache.directory.api/api-all

  /**
   * Get a String representation of a ModifyDNRequest
   * 
   * @return A ModifyDNRequest String
   */
  @Override
  public String toString()
  {

    StringBuilder sb = new StringBuilder();

    sb.append( "    ModifyDN Response\n" );
    sb.append( "        Entry : '" ).append( name ).append( "'\n" );
    if ( newRdn != null )
    {
      sb.append( "        New Rdn : '" ).append( newRdn.toString() ).append( "'\n" );
    }
    sb.append( "        Delete old Rdn : " ).append( deleteOldRdn ).append( "\n" );

    if ( newSuperior != null )
    {
      sb.append( "        New superior : '" ).append( newSuperior.toString() ).append( "'\n" );
    }

    // The controls
    sb.append( super.toString() );

    return super.toString( sb.toString() );
  }
}
origin: org.apache.directory.api/api-ldap-model

  /**
   * Get a String representation of a ModifyDNRequest
   * 
   * @return A ModifyDNRequest String
   */
  @Override
  public String toString()
  {

    StringBuilder sb = new StringBuilder();

    sb.append( "    ModifyDN Response\n" );
    sb.append( "        Entry : '" ).append( name ).append( "'\n" );
    if ( newRdn != null )
    {
      sb.append( "        New Rdn : '" ).append( newRdn.toString() ).append( "'\n" );
    }
    sb.append( "        Delete old Rdn : " ).append( deleteOldRdn ).append( "\n" );

    if ( newSuperior != null )
    {
      sb.append( "        New superior : '" ).append( newSuperior.toString() ).append( "'\n" );
    }

    // The controls
    sb.append( super.toString() );

    return super.toString( sb.toString() );
  }
}
origin: org.apache.directory.api/api-ldap-client-all

  /**
   * Get a String representation of a ModifyDNRequest
   * 
   * @return A ModifyDNRequest String
   */
  @Override
  public String toString()
  {

    StringBuilder sb = new StringBuilder();

    sb.append( "    ModifyDN Response\n" );
    sb.append( "        Entry : '" ).append( name ).append( "'\n" );
    if ( newRdn != null )
    {
      sb.append( "        New Rdn : '" ).append( newRdn.toString() ).append( "'\n" );
    }
    sb.append( "        Delete old Rdn : " ).append( deleteOldRdn ).append( "\n" );

    if ( newSuperior != null )
    {
      sb.append( "        New superior : '" ).append( newSuperior.toString() ).append( "'\n" );
    }

    // The controls
    sb.append( super.toString() );

    return super.toString( sb.toString() );
  }
}
org.apache.directory.api.ldap.model.nameRdntoString

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
  • getNormName
  • 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.
  • writeExternal,
  • isSchemaAware,
  • addAVA,
  • addOrdered,
  • buildNormRdn,
  • clear,
  • compareTo,
  • getEscaped,
  • getType

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JTextField (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
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