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

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

Best Java code snippets using org.apache.directory.api.ldap.model.name.Rdn.getName (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-ldap-client-all

sbUpName.append( rdn.getName() );
sbNormName.append( rdn.getNormName() );
origin: org.apache.directory.fortress/fortress-core

/**
 * Method will retrieve the relative distinguished name from a distinguished name variable.
 *
 * @param dn contains ldap distinguished name.
 * @return rDn as string.
 */
protected String getRdn( String dn )
{
  try
  {
    return new Dn( dn ).getRdn().getName();
  }
  catch ( LdapInvalidDnException lide )
  {
    return null;
  }
}
origin: org.apache.directory.api/api-ldap-client-all

upName = rdn.getName();
normName = rdn.getName();
normalized = rdn.normalized;
schemaManager = rdn.schemaManager;
origin: org.apache.directory.server/apacheds-interceptors-trigger

  public Object inject( OperationContext opContext, StoredProcedureParameter param )
    throws LdapInvalidDnException
  {
    // Return a safe copy constructed with user provided name.
    return opContext.getSession().getDirectoryService().getDnFactory().create( oldRdn.getName() );
  }
};
origin: org.apache.directory.studio/ldapbrowser.common

/**
 * Compares the string representation of the RDNs of two IEntry objects.
 *  
 * @param entry1 the first entry
 * @param entry2 the second entry
 * @return a negative integer, zero, or a positive integer
 */
private int compareRdns( IEntry entry1, IEntry entry2 )
{
  Rdn rdn1 = entry1.getRdn();
  Rdn rdn2 = entry2.getRdn();
  if ( rdn1 == null && rdn2 == null )
  {
    return equal();
  }
  else if ( rdn1 == null && rdn2 != null )
  {
    return greaterThanEntries();
  }
  else if ( rdn1 != null && rdn2 == null )
  {
    return lessThanEntries();
  }
  else
  {
    return compareEntries( rdn1.getName(), rdn2.getName() );
  }
}
origin: org.apache.directory.server/apacheds-interceptors-trigger

  public Object inject( OperationContext opContext, StoredProcedureParameter param )
    throws LdapInvalidDnException
  {
    // Return a safe copy constructed with user provided name.
    return opContext.getSession().getDirectoryService().getDnFactory().create( newRdn.getName() );
  }
};
origin: org.apache.directory.api/api-all

attributeTypeAndValue = rdn.getName();
attributeType = DnUtils.getRdnAttributeType( attributeTypeAndValue );
attributeValue = DnUtils.getRdnValue( attributeTypeAndValue );
origin: org.apache.directory.api/api-ldap-client-all

attributeTypeAndValue = rdn.getName();
attributeType = DnUtils.getRdnAttributeType( attributeTypeAndValue );
attributeValue = DnUtils.getRdnValue( attributeTypeAndValue );
origin: org.apache.directory.api/api-all

entry.setNewRdn( currentRdn.getName() );
entry.setNewSuperior( currentParent.getName() );
entry.setDeleteOldRdn( false );
origin: org.apache.directory.api/api-ldap-client-all

reverted.setNewRdn( oldRdn.getName() );
origin: org.apache.directory.server/apacheds-interceptors-journal

ldif.setChangeType( ChangeType.ModRdn );
ldif.setDn( renameContext.getDn() );
ldif.setNewRdn( renameContext.getNewRdn().getName() );
ldif.setDeleteOldRdn( renameContext.getDeleteOldRdn() );
origin: org.apache.directory.api/api-ldap-model

reverted.setNewRdn( oldRdn.getName() );
origin: org.apache.directory.api/api-all

reverted.setNewRdn( oldRdn.getName() );
origin: org.apache.directory.server/apacheds-interceptors-journal

ldif.setChangeType( ChangeType.ModDn );
ldif.setDn( moveAndRenameContext.getDn() );
ldif.setNewRdn( moveAndRenameContext.getNewRdn().getName() );
ldif.setDeleteOldRdn( moveAndRenameContext.getDeleteOldRdn() );
ldif.setNewSuperior( moveAndRenameContext.getNewDn().getName() );
origin: org.apache.directory.api/api-all

public int computeLength()
  int newRdnlength = Strings.getBytesUtf8( getNewRdn().getName() ).length;
origin: org.apache.directory.api/api-ldap-codec-core

public int computeLength()
  int newRdnlength = Strings.getBytesUtf8( getNewRdn().getName() ).length;
origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public Element toDsml( Element root )
{
  Element element = super.toDsml( root );
  ModifyDnRequest request = getDecorated();
  // Dn
  if ( request.getName() != null )
  {
    element.addAttribute( "dn", request.getName().getName() );
  }
  // NewRDN
  if ( request.getNewRdn() != null )
  {
    element.addAttribute( "newrdn", request.getNewRdn().getName() );
  }
  // DeleteOldRDN
  element.addAttribute( "deleteoldrdn", request.getDeleteOldRdn() ? "true" : "false" );
  // NewSuperior
  if ( request.getNewRdn() != null )
  {
    element.addAttribute( "newSuperior", request.getNewSuperior().getName() );
  }
  return element;
}
origin: org.apache.directory.server/apacheds-interceptors-changelog

forward.setDn( moveAndRenameContext.getDn() );
forward.setDeleteOldRdn( moveAndRenameContext.getDeleteOldRdn() );
forward.setNewRdn( moveAndRenameContext.getNewRdn().getName() );
forward.setNewSuperior( moveAndRenameContext.getNewSuperiorDn().getName() );
origin: org.apache.directory.studio/connection.core

/**
 * {@inheritDoc}
 */
public void logChangetypeModDn( Connection connection, final String oldDn, final String newDn,
  final boolean deleteOldRdn, final Control[] controls, NamingException ex )
{
  if ( !isModificationLogEnabled() )
  {
    return;
  }
  try
  {
    Dn dn = new Dn( newDn );
    Rdn newrdn = dn.getRdn();
    Dn newsuperior = dn.getParent();
    LdifChangeModDnRecord record = new LdifChangeModDnRecord( LdifDnLine.create( oldDn ) );
    addControlLines( record, controls );
    record.setChangeType( LdifChangeTypeLine.createModDn() );
    record.setNewrdn( LdifNewrdnLine.create( newrdn.getName() ) );
    record.setDeloldrdn( deleteOldRdn ? LdifDeloldrdnLine.create1() : LdifDeloldrdnLine.create0() );
    record.setNewsuperior( LdifNewsuperiorLine.create( newsuperior.getName() ) );
    record.finish( LdifSepLine.create() );
    String formattedString = record.toFormattedString( LdifFormatParameters.DEFAULT );
    log( formattedString, ex, connection );
  }
  catch ( LdapInvalidDnException e )
  {
  }
}
origin: org.apache.directory.server/apacheds-interceptors-changelog

/**
 * {@inheritDoc}
 */
@Override
public void rename( RenameOperationContext renameContext ) throws LdapException
{
  Entry serverEntry = null;
  if ( renameContext.getEntry() != null )
  {
    serverEntry = ( ( ClonedServerEntry ) renameContext.getEntry() ).getOriginalEntry();
  }
  next( renameContext );
  // After this point, the entry has been modified. The cloned entry contains
  // the modified entry, the originalEntry has changed
  if ( !changeLog.isEnabled() )
  {
    return;
  }
  LdifEntry forward = new LdifEntry();
  forward.setChangeType( ChangeType.ModRdn );
  forward.setDn( renameContext.getDn() );
  forward.setNewRdn( renameContext.getNewRdn().getName() );
  forward.setDeleteOldRdn( renameContext.getDeleteOldRdn() );
  List<LdifEntry> reverses = LdifRevertor.reverseRename(
    serverEntry, renameContext.getNewRdn(), renameContext.getDeleteOldRdn() );
  renameContext.setChangeLogEvent( changeLog.log( getPrincipal( renameContext ), forward, reverses ) );
}
org.apache.directory.api.ldap.model.nameRdngetName

Popular methods of Rdn

  • <init>
    Creates a new RDN from a list of AVA
  • 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.
  • toString
  • isSchemaAware,
  • toString,
  • addAVA,
  • addOrdered,
  • buildNormRdn,
  • clear,
  • compareTo,
  • getEscaped,
  • getType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • getSystemService (Context)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JLabel (javax.swing)
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