本文整理了Java中com.unboundid.ldap.sdk.DN.matchesBaseAndScope()
方法的一些代码示例,展示了DN.matchesBaseAndScope()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DN.matchesBaseAndScope()
方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.DN
类名称: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
/**
* Indicates whether this DN falls within the range of the provided search
* base DN and scope.
*
* @param baseDN The base DN for which to make the determination. It must
* not be {@code null}.
* @param scope The scope for which to make the determination. It must not
* be {@code null}.
*
* @return {@code true} if this DN is within the range of the provided base
* and scope, or {@code false} if not.
*
* @throws LDAPException If a problem occurs while making the determination.
*/
public boolean matchesBaseAndScope(final String baseDN,
final SearchScope scope)
throws LDAPException
{
return matchesBaseAndScope(new DN(baseDN), scope);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Indicates whether this DN falls within the range of the provided search
* base DN and scope.
*
* @param baseDN The base DN for which to make the determination. It must
* not be {@code null}.
* @param scope The scope for which to make the determination. It must not
* be {@code null}.
*
* @return {@code true} if this DN is within the range of the provided base
* and scope, or {@code false} if not.
*
* @throws LDAPException If a problem occurs while making the determination.
*/
public boolean matchesBaseAndScope(final String baseDN,
final SearchScope scope)
throws LDAPException
{
return matchesBaseAndScope(new DN(baseDN), scope);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Indicates whether this entry falls within the range of the provided search
* base DN and scope.
*
* @param baseDN The base DN for which to make the determination. It must
* not be {@code null}.
* @param scope The scope for which to make the determination. It must not
* be {@code null}.
*
* @return {@code true} if this entry is within the range of the provided
* base and scope, or {@code false} if not.
*
* @throws LDAPException If a problem occurs while making the determination.
*/
public boolean matchesBaseAndScope(final DN baseDN, final SearchScope scope)
throws LDAPException
{
return getParsedDN().matchesBaseAndScope(baseDN, scope);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Indicates whether this entry falls within the range of the provided search
* base DN and scope.
*
* @param baseDN The base DN for which to make the determination. It must
* not be {@code null}.
* @param scope The scope for which to make the determination. It must not
* be {@code null}.
*
* @return {@code true} if this entry is within the range of the provided
* base and scope, or {@code false} if not.
*
* @throws LDAPException If a problem occurs while making the determination.
*/
public boolean matchesBaseAndScope(final DN baseDN, final SearchScope scope)
throws LDAPException
{
return getParsedDN().matchesBaseAndScope(baseDN, scope);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Indicates whether this entry falls within the range of the provided search
* base DN and scope.
*
* @param baseDN The base DN for which to make the determination. It must
* not be {@code null}.
* @param scope The scope for which to make the determination. It must not
* be {@code null}.
*
* @return {@code true} if this entry is within the range of the provided
* base and scope, or {@code false} if not.
*
* @throws LDAPException If a problem occurs while making the determination.
*/
public boolean matchesBaseAndScope(final String baseDN,
final SearchScope scope)
throws LDAPException
{
return getParsedDN().matchesBaseAndScope(new DN(baseDN), scope);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Indicates whether this entry falls within the range of the provided search
* base DN and scope.
*
* @param baseDN The base DN for which to make the determination. It must
* not be {@code null}.
* @param scope The scope for which to make the determination. It must not
* be {@code null}.
*
* @return {@code true} if this entry is within the range of the provided
* base and scope, or {@code false} if not.
*
* @throws LDAPException If a problem occurs while making the determination.
*/
public boolean matchesBaseAndScope(final String baseDN,
final SearchScope scope)
throws LDAPException
{
return getParsedDN().matchesBaseAndScope(new DN(baseDN), scope);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
if (dn.matchesBaseAndScope(parsedDN, scope))
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
try
if (dn.matchesBaseAndScope(baseDN, scope) &&
filter.matchesEntry(entry, schema))
if (! dn.matchesBaseAndScope(baseDN, scope))
内容来源于网络,如有侵权,请联系作者删除!