org.apache.directory.ldap.client.api.LdapConnection.rename()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中org.apache.directory.ldap.client.api.LdapConnection.rename()方法的一些代码示例,展示了LdapConnection.rename()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LdapConnection.rename()方法的具体详情如下:
包路径:org.apache.directory.ldap.client.api.LdapConnection
类名称:LdapConnection
方法名:rename

LdapConnection.rename介绍

[英]renames the given entryDn with new Rdn and deletes the old RDN.
[中]使用新的Rdn重命名给定的entryDn并删除旧的Rdn。

代码示例

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public void rename( Dn entryDn, Rdn newRdn, boolean deleteOldRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn, deleteOldRdn );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public void rename( String entryDn, String newRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public void rename( Dn entryDn, Rdn newRdn, boolean deleteOldRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn, deleteOldRdn );
}

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public void rename( String entryDn, String newRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn );
}

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public void rename( Dn entryDn, Rdn newRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public void rename( String entryDn, String newRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public void rename( Dn entryDn, Rdn newRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public void rename( Dn entryDn, Rdn newRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public void rename( String entryDn, String newRdn, boolean deleteOldRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn, deleteOldRdn );
}

代码示例来源:origin: org.apache.directory.client.ldap/ldap-client-api

/**
 * renames the given entryDn with new RDN and deletes the old RDN.
 * @see #rename(DN, RDN, boolean)
 */
public ModifyDnResponse rename( DN entryDn, RDN newRdn ) throws LdapException
{
  return rename( entryDn, newRdn, true );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public void rename( String entryDn, String newRdn, boolean deleteOldRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn, deleteOldRdn );
}

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public void rename( String entryDn, String newRdn, boolean deleteOldRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn, deleteOldRdn );
}

代码示例来源:origin: org.apache.directory.client.ldap/ldap-client-api

/**
 * renames the given entryDn with new Rdn and deletes the old RDN.
 * @see #rename(String, String, boolean)
 */
public ModifyDnResponse rename( String entryDn, String newRdn ) throws LdapException
{
  return rename( entryDn, newRdn, true );
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public void rename( Dn entryDn, Rdn newRdn, boolean deleteOldRdn ) throws LdapException
{
  connection.rename( entryDn, newRdn, deleteOldRdn );
}

代码示例来源:origin: org.apache.directory.client.ldap/ldap-client-api

/**
 * @see #rename(DN, RDN, boolean)
 */
public ModifyDnResponse rename( String entryDn, String newRdn, boolean deleteOldRdn ) throws LdapException
{
  try
  {
    return rename( new DN( entryDn ), new RDN( newRdn ), deleteOldRdn );
  }
  catch ( InvalidNameException e )
  {
    LOG.error( e.getMessage(), e );
    throw new LdapException( e.getMessage(), e );
  }
}

代码示例来源:origin: org.apache.camel/camel-ldif

log.debug("attempting RDN move of {}", ldifEntry);
conn.rename(ldifEntry.getDn(), new Rdn(ldifEntry.getNewRdn()), ldifEntry.isDeleteOldRdn());

相关文章