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

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

本文整理了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

/**
 * 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))

相关文章