org.apache.directory.shared.ldap.name.DN.clone()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(92)

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

DN.clone介绍

暂无

代码示例

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

/**
 * Set the Distinguished Name
 * 
 * @param dn
 *            The Distinguished Name
 */
public void setDn( DN dn )
{
  entry.setDn( (DN)dn.clone() );
}

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

clone.dn = (DN)dn.clone();

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

clone.setDn( (DN)dn.clone() );

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

/**
 * Checks to see if two names are siblings.
 * 
 * @param name1 the first name
 * @param name2 the second name
 * @return true if the names are siblings, false otherwise.
 */
public static boolean isSibling( DN name1, DN name2 ) throws LdapInvalidDnException
{
  if ( name1.size() == name2.size() )
  {
    DN parentDn = ( DN ) name1.clone();
    parentDn.remove( name1.size() - 1 );
    return name2.isChildOf( parentDn );
  }
  return false;
}

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

DN restoredDn = (DN)((DN)newSuperior.clone()).add( newRdn ); 
reverted.setDn( restoredDn );
DN oldSuperior = ( DN ) newDn.clone();

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

currentParent = ( DN ) modifiedDn.clone();
currentRdn = currentParent.getRdn();
currentParent.remove( currentParent.size() - 1 );
newDn = ( DN ) newSuperiorDn.clone();
newDn.add( modifiedDn.getRdn() );

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

parentDn = ( DN ) entry.getDn().clone();
RDN oldRdn = parentDn.getRdn();
newDn = ( DN ) parentDn.clone();
newDn.remove( newDn.size() - 1 );
newDn.add( newRdn );

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

rdn = ( DN ) descendant.clone();

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

DN restoredDn = (DN)((DN)newSuperior.clone()).add( newRdn ); 
reverted.setDn( restoredDn );
DN oldSuperior = ( DN ) entry.getDn().clone();

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

dn = (DN)entry.getDn().clone();

代码示例来源:origin: org.apache.directory.server/apacheds-xdbm-base

DN newParentDNClone = ( DN ) newParentDn.clone();
newParentDNClone.remove( newParentDNClone.size() - 1 );

代码示例来源:origin: org.apache.directory.server/apacheds-avl-partition

ancestorDn = ( DN ) aliasDn.clone();
ancestorDn.remove( aliasDn.size() - 1 );
ancestorId = getEntryId( ancestorDn.getNormName() );
DN normalizedAliasTargetParentDn = ( DN ) normalizedAliasTargetDn.clone();
normalizedAliasTargetParentDn.remove( normalizedAliasTargetDn.size() - 1 );
if ( !aliasDn.isChildOf( normalizedAliasTargetParentDn ) )

代码示例来源:origin: org.apache.directory.server/apacheds-avl-partition

DN aliasDN = ( DN ) new DN( aliasDn );
DN ancestorDn = ( DN ) aliasDN.clone();
ancestorDn.remove( aliasDN.size() - 1 );
Long ancestorId = getEntryId( ancestorDn.getNormName() );

代码示例来源:origin: org.apache.directory.server/apacheds-avl-partition

parentDn = ( DN ) normName.clone();
parentDn.remove( parentDn.size() - 1 );
parentId = getEntryId( parentDn.getNormName() );

代码示例来源:origin: org.apache.directory.server/apacheds-avl-partition

DN childUpdn = ( DN ) updn.clone();
DN oldUpdn = new DN( getEntryUpdn( childId ) );

代码示例来源:origin: org.apache.directory.server/apacheds-avl-partition

DN newUpdn = ( DN ) updn.clone(); // copy da old updn
newUpdn.remove( newUpdn.size() - 1 ); // remove old upRdn

相关文章