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

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

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

Partition.move介绍

[英]Transplants a child entry, to a position in the namespace under a new parent entry.
[中]将子项移植到命名空间中新父项下的位置。

代码示例

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

/**
 * {@inheritDoc}
 */
@Override
public void move( MoveOperationContext moveContext ) throws LdapException
{
  // Get the current partition
  Partition partition = getPartition( moveContext.getDn() );
  partition.move( moveContext );
}

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

/**
 * {@inheritDoc}
 */
public void move( MoveOperationContext moveContext ) throws LdapException
{
  boolean cascade = moveContext.hasRequestControl( Cascade.OID );
  CoreSession session = moveContext.getSession();
  LookupOperationContext lookupContext = new LookupOperationContext( session, moveContext.getDn(),
    SchemaConstants.ALL_ATTRIBUTES_ARRAY );
  lookupContext.setPartition( this );
  lookupContext.setTransaction( moveContext.getTransaction() );
  Entry entry = session.getDirectoryService().getPartitionNexus().lookup( lookupContext );
  synchronizer.move( moveContext, entry, cascade );
  wrapped.move( moveContext );
  updateSchemaModificationAttributes( moveContext );
}

相关文章