本文整理了Java中org.apache.directory.server.core.api.partition.Partition.rename()
方法的一些代码示例,展示了Partition.rename()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Partition.rename()
方法的具体详情如下:
包路径:org.apache.directory.server.core.api.partition.Partition
类名称:Partition
方法名:rename
[英]Modifies an entry by changing its relative name. Optionally attributes associated with the old relative name can be removed from the entry. This makes sense only in certain namespaces like LDAP and will be ignored if it is irrelevant.
[中]通过更改条目的相对名称来修改条目。或者,可以从条目中删除与旧相对名称关联的属性。这只有在某些名称空间(如LDAP)中才有意义,如果不相关,则会被忽略。
代码示例来源:origin: org.apache.directory.server/apacheds-core-shared
/**
* {@inheritDoc}
*/
@Override
public void rename( RenameOperationContext renameContext ) throws LdapException
{
Partition partition = getPartition( renameContext.getDn() );
partition.rename( renameContext );
}
代码示例来源:origin: org.apache.directory.server/apacheds-core-api
/**
* {@inheritDoc}
*/
public void rename( RenameOperationContext renameContext ) throws LdapException
{
boolean cascade = renameContext.hasRequestControl( Cascade.OID );
// First update the registries
synchronizer.rename( renameContext, cascade );
// Update the schema partition
wrapped.rename( renameContext );
// Update the SSSE operational attributes
updateSchemaModificationAttributes( renameContext );
}
内容来源于网络,如有侵权,请联系作者删除!