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

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

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

DN.remove介绍

暂无

代码示例

代码示例来源: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-ldap

rdn.remove( 0 );

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

newDn.remove( newDn.size() - 1 );
newDn.add( newRdn );

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

currentParent.remove( currentParent.size() - 1 );

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

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

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

newParentDNClone.remove( newParentDNClone.size() - 1 );

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

oldSuperior.remove( oldSuperior.size() - 1 );
reverted.setNewSuperior( oldSuperior.getName() );

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

oldSuperior.remove( oldSuperior.size() - 1 );
reverted.setNewSuperior( oldSuperior.getName() );

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

ancestorDn.remove( aliasDN.size() - 1 );
Long ancestorId = getEntryId( ancestorDn.getNormName() );

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

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

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

newUpdn.remove( newUpdn.size() - 1 ); // remove old upRdn

相关文章