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

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

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

DN.equals介绍

暂无

代码示例

代码示例来源:origin: dwimberger/crowd-ldap-server

private boolean isCrowd(DN dn) {
 return m_CrowdEntry.getDn().equals(dn);
}//isCrowd

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

public boolean equals( Object obj )
{
  if ( this == obj )
    return true;
  if ( obj == null )
    return false;
  if ( getClass() != obj.getClass() )
    return false;
  final StoredProcedureSearchContextOption other = ( StoredProcedureSearchContextOption ) obj;
  if ( baseObject == null )
  {
    if ( other.baseObject != null )
      return false;
  }
  else if ( !baseObject.equals( other.baseObject ) )
    return false;
  if ( searchScope == null )
  {
    if ( other.searchScope != null )
      return false;
  }
  else if ( !searchScope.equals( other.searchScope ) )
    return false;
  return true;
}

代码示例来源:origin: stackoverflow.com

private boolean isGroupContainUser(LDAPConnection ldapConnection, String groupDn, String userDn) throws LDAPException {
  boolean ret = false;
  Entry groupEntry = ldapConnection.getEntry(groupDn);

  String[] memberValues = groupEntry.getAttributeValues("uniquemember");
  if (memberValues != null) {
    DN ldapUserDn = new DN(userDn);
    for (String memberEntryDnString : memberValues) {
      DN memberEntryDn = new DN(memberEntryDnString);
      if (memberEntryDn.equals(ldapUserDn)) {
        ret = true;
        break;
      }
    }
  }
  return ret;
}

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

if ( !name.equals( req.getName() ) )

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

if ( !name.equals( req.getName() ) )

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

if ( !dn.equals( other.getDn() ) )

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

DN dnEntry = otherEntry.getDn();
if ( !thisDn.equals( dnEntry ) )
      DN entryNewSuperior = new DN( otherEntry.newSuperior );
      if ( ! thisNewSuperior.equals(  entryNewSuperior ) )

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

if ( !dn.equals( other.getDn() ) )

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

if ( !req.getBase().equals( baseDn ) )

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

if ( !name.equals( req.getName() ) )

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

if ( !matchedDn.equals( result.getMatchedDn() ) )

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

else if ( !dn1.equals( dn2 ) )

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

while ( !ancestorDn.equals( suffixDn ) )

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

if ( !name.equals( req.getName() ) )
if ( !newSuperior.equals( req.getNewSuperior() ) )

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

if ( aliasDn.equals( normalizedAliasTargetDn ) )
while ( !ancestorDn.equals( suffixDn ) && null != ancestorId )

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

subAliasIdx.drop( ancestorId, targetId );
while ( !ancestorDn.equals( suffixDn ) && ancestorDn.size() > suffixDn.size() )

相关文章