本文整理了Java中org.apache.directory.server.core.api.partition.Partition.setSuffixDn()
方法的一些代码示例,展示了Partition.setSuffixDn()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Partition.setSuffixDn()
方法的具体详情如下:
包路径:org.apache.directory.server.core.api.partition.Partition
类名称:Partition
方法名:setSuffixDn
[英]Sets the suffix Dn, must be normalized.
[中]设置后缀Dn,必须规范化。
代码示例来源:origin: ctco/cukes
private Partition createPartition(String id, String suffix) throws LdapInvalidDnException {
Partition partition = new AvlPartition(service.getSchemaManager());
partition.setId(id);
partition.setSuffixDn(new Dn(suffix));
return partition;
}
代码示例来源:origin: org.apache.directory.server/apacheds-core-api
/**
* {@inheritDoc}
*/
@Override
protected void doInit() throws LdapException
{
if ( !initialized )
{
// -----------------------------------------------------------------------
// Load apachemeta schema from within the ldap-schema Jar with all the
// schema it depends on. This is a minimal mandatory set of schemas.
// -----------------------------------------------------------------------
wrapped.setId( SCHEMA_ID );
wrapped.setSuffixDn( schemaDN );
wrapped.setSchemaManager( schemaManager );
try
{
wrapped.initialize();
synchronizer = new RegistrySynchronizerAdaptor( schemaManager );
}
catch ( Exception e )
{
LOG.error( I18n.err( I18n.ERR_90 ), e );
throw new RuntimeException( e );
}
schemaModificationDN = new Dn( schemaManager, SchemaConstants.SCHEMA_MODIFICATIONS_DN );
}
}
代码示例来源:origin: org.apache.directory.server/apacheds-core-annotations
{ schemaManager, service.getDnFactory() } );
partition.setId( createPartition.name() );
partition.setSuffixDn( new Dn( schemaManager, createPartition.suffix() ) );
内容来源于网络,如有侵权,请联系作者删除!