org.apache.directory.server.core.api.partition.Partition.search()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(214)

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

Partition.search介绍

[英]Conducts a search against this ContextPartition. Namespace specific parameters for search are contained within the environment using namespace specific keys into the hash. For example in the LDAP namespace a ContextPartition implementation may look for search Controls using a namespace specific or implementation specific key for the set of LDAP Controls.
[中]对该ContextPartition执行搜索。用于搜索的特定于命名空间的参数包含在环境中,使用哈希中特定于命名空间的键。例如,在LDAP名称空间中,ContextPartition实现可能会使用特定于名称空间或特定于实现的键来查找LDAP控件集的搜索控件。

代码示例

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

/**
 * {@inheritDoc}
 */
public EntryFilteringCursor search( SearchOperationContext searchContext ) throws LdapException
{
  return wrapped.search( searchContext );
}

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

/**
 * {@inheritDoc}
 */
@Override
public EntryFilteringCursor search( SearchOperationContext searchContext ) throws LdapException
{
  Dn baseDn = searchContext.getDn();
  // TODO since we're handling the *, and + in the EntryFilteringCursor
  // we may not need this code: we need see if this is actually the
  // case and remove this code.
  if ( baseDn.size() == 0 )
  {
    return searchFromRoot( searchContext );
  }
  // Not sure we need this code...
  if ( !baseDn.isSchemaAware() )
  {
    baseDn = new Dn( schemaManager, baseDn );
  }
  // Normal case : do a search on the specific partition
  Partition backend = searchContext.getPartition();
  return backend.search( searchContext );
}

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

cursors.add( partition.search( searchContext ) );
EntryFilteringCursor cursor = partition.search( searchContext );

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

searchContext.setTransaction( deleteContext.getTransaction() );
EntryFilteringCursor cursor = wrapped.search( searchContext );

相关文章