com.unboundid.ldap.sdk.DN.matchesBaseAndScope()方法的使用及代码示例

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

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

DN.matchesBaseAndScope介绍

[英]Indicates whether this DN falls within the range of the provided search base DN and scope.
[中]指示此DN是否在提供的搜索基DN和范围内。

代码示例

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Indicates whether this DN falls within the range of the provided search
  3. * base DN and scope.
  4. *
  5. * @param baseDN The base DN for which to make the determination. It must
  6. * not be {@code null}.
  7. * @param scope The scope for which to make the determination. It must not
  8. * be {@code null}.
  9. *
  10. * @return {@code true} if this DN is within the range of the provided base
  11. * and scope, or {@code false} if not.
  12. *
  13. * @throws LDAPException If a problem occurs while making the determination.
  14. */
  15. public boolean matchesBaseAndScope(final String baseDN,
  16. final SearchScope scope)
  17. throws LDAPException
  18. {
  19. return matchesBaseAndScope(new DN(baseDN), scope);
  20. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Indicates whether this DN falls within the range of the provided search
  3. * base DN and scope.
  4. *
  5. * @param baseDN The base DN for which to make the determination. It must
  6. * not be {@code null}.
  7. * @param scope The scope for which to make the determination. It must not
  8. * be {@code null}.
  9. *
  10. * @return {@code true} if this DN is within the range of the provided base
  11. * and scope, or {@code false} if not.
  12. *
  13. * @throws LDAPException If a problem occurs while making the determination.
  14. */
  15. public boolean matchesBaseAndScope(final String baseDN,
  16. final SearchScope scope)
  17. throws LDAPException
  18. {
  19. return matchesBaseAndScope(new DN(baseDN), scope);
  20. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Indicates whether this entry falls within the range of the provided search
  3. * base DN and scope.
  4. *
  5. * @param baseDN The base DN for which to make the determination. It must
  6. * not be {@code null}.
  7. * @param scope The scope for which to make the determination. It must not
  8. * be {@code null}.
  9. *
  10. * @return {@code true} if this entry is within the range of the provided
  11. * base and scope, or {@code false} if not.
  12. *
  13. * @throws LDAPException If a problem occurs while making the determination.
  14. */
  15. public boolean matchesBaseAndScope(final DN baseDN, final SearchScope scope)
  16. throws LDAPException
  17. {
  18. return getParsedDN().matchesBaseAndScope(baseDN, scope);
  19. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Indicates whether this entry falls within the range of the provided search
  3. * base DN and scope.
  4. *
  5. * @param baseDN The base DN for which to make the determination. It must
  6. * not be {@code null}.
  7. * @param scope The scope for which to make the determination. It must not
  8. * be {@code null}.
  9. *
  10. * @return {@code true} if this entry is within the range of the provided
  11. * base and scope, or {@code false} if not.
  12. *
  13. * @throws LDAPException If a problem occurs while making the determination.
  14. */
  15. public boolean matchesBaseAndScope(final DN baseDN, final SearchScope scope)
  16. throws LDAPException
  17. {
  18. return getParsedDN().matchesBaseAndScope(baseDN, scope);
  19. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Indicates whether this entry falls within the range of the provided search
  3. * base DN and scope.
  4. *
  5. * @param baseDN The base DN for which to make the determination. It must
  6. * not be {@code null}.
  7. * @param scope The scope for which to make the determination. It must not
  8. * be {@code null}.
  9. *
  10. * @return {@code true} if this entry is within the range of the provided
  11. * base and scope, or {@code false} if not.
  12. *
  13. * @throws LDAPException If a problem occurs while making the determination.
  14. */
  15. public boolean matchesBaseAndScope(final String baseDN,
  16. final SearchScope scope)
  17. throws LDAPException
  18. {
  19. return getParsedDN().matchesBaseAndScope(new DN(baseDN), scope);
  20. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Indicates whether this entry falls within the range of the provided search
  3. * base DN and scope.
  4. *
  5. * @param baseDN The base DN for which to make the determination. It must
  6. * not be {@code null}.
  7. * @param scope The scope for which to make the determination. It must not
  8. * be {@code null}.
  9. *
  10. * @return {@code true} if this entry is within the range of the provided
  11. * base and scope, or {@code false} if not.
  12. *
  13. * @throws LDAPException If a problem occurs while making the determination.
  14. */
  15. public boolean matchesBaseAndScope(final String baseDN,
  16. final SearchScope scope)
  17. throws LDAPException
  18. {
  19. return getParsedDN().matchesBaseAndScope(new DN(baseDN), scope);
  20. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. if (dn.matchesBaseAndScope(parsedDN, scope))

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. try
  2. if (dn.matchesBaseAndScope(baseDN, scope) &&
  3. filter.matchesEntry(entry, schema))
  4. if (! dn.matchesBaseAndScope(baseDN, scope))

相关文章