本文整理了Java中org.apache.directory.ldap.client.api.LdapConnection.modifyDn()
方法的一些代码示例,展示了LdapConnection.modifyDn()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LdapConnection.modifyDn()
方法的具体详情如下:
包路径:org.apache.directory.ldap.client.api.LdapConnection
类名称:LdapConnection
方法名:modifyDn
[英]Performs the modifyDn operation based on the given request object.
[中]基于给定的请求对象执行modifyDn操作。
代码示例来源:origin: org.apache.directory.api/api-ldap-client-api
/**
* {@inheritDoc}
*/
@Override
public ModifyDnResponse modifyDn( ModifyDnRequest modDnRequest ) throws LdapException
{
return connection.modifyDn( modDnRequest );
}
代码示例来源:origin: org.apache.directory.api/api-all
/**
* {@inheritDoc}
*/
@Override
public ModifyDnResponse modifyDn( ModifyDnRequest modDnRequest ) throws LdapException
{
return connection.modifyDn( modDnRequest );
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
/**
* {@inheritDoc}
*/
@Override
public ModifyDnResponse modifyDn( ModifyDnRequest modDnRequest ) throws LdapException
{
return connection.modifyDn( modDnRequest );
}
代码示例来源:origin: org.apache.directory.client.ldap/ldap-client-api
/**
*
* renames the given entryDn with new RDN and deletes the old Rdn if
* deleteOldRdn is set to true.
*
* @param entryDn the target DN
* @param newRdn new Rdn for the target DN
* @param deleteOldRdn flag to indicate whether to delete the old Rdn
* @return modifyDn operations response
* @throws LdapException
*/
public ModifyDnResponse rename( DN entryDn, RDN newRdn, boolean deleteOldRdn ) throws LdapException
{
ModifyDnRequest modDnRequest = new ModifyDnRequest();
modDnRequest.setEntryDn( entryDn );
modDnRequest.setNewRdn( newRdn );
modDnRequest.setDeleteOldRdn( deleteOldRdn );
return modifyDn( modDnRequest );
}
代码示例来源:origin: org.apache.directory.client.ldap/ldap-client-api
/**
* moves the given entry DN under the new superior DN
*
* @param entryDn the DN of the target entry
* @param newSuperiorDn DN of the new parent/superior
* @return modifyDn operations response
* @throws LdapException
*/
public ModifyDnResponse move( DN entryDn, DN newSuperiorDn ) throws LdapException
{
ModifyDnRequest modDnRequest = new ModifyDnRequest();
modDnRequest.setEntryDn( entryDn );
modDnRequest.setNewSuperior( newSuperiorDn );
//TODO not setting the below value is resulting in error
modDnRequest.setNewRdn( entryDn.getRdn() );
return modifyDn( modDnRequest );
}
代码示例来源:origin: org.apache.directory.api/api-all
ModifyDnResponse modifyDnResponse = connection.modifyDn( ( ModifyDnRequest ) request );
resultCode = modifyDnResponse.getLdapResult().getResultCode();
ModDNResponseDsml modDNResponseDsml = new ModDNResponseDsml( connection.getCodecService(),
内容来源于网络,如有侵权,请联系作者删除!