本文整理了Java中org.apache.directory.server.core.api.partition.Partition.modify()
方法的一些代码示例,展示了Partition.modify()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Partition.modify()
方法的具体详情如下:
包路径:org.apache.directory.server.core.api.partition.Partition
类名称:Partition
方法名:modify
[英]Modifies an entry by adding, removing or replacing a set of attributes.
[中]通过添加、删除或替换一组属性来修改条目。
代码示例来源:origin: org.apache.directory.server/apacheds-core-shared
/**
* {@inheritDoc}
*/
@Override
public void modify( ModifyOperationContext modifyContext ) throws LdapException
{
// Special case : if we don't have any modification to apply, just return
if ( modifyContext.getModItems().isEmpty() )
{
return;
}
Partition partition = getPartition( modifyContext.getDn() );
partition.modify( modifyContext );
if ( modifyContext.isPushToEvtInterceptor() )
{
directoryService.getInterceptor( InterceptorEnum.EVENT_INTERCEPTOR.getName() ).modify( modifyContext );
}
}
代码示例来源:origin: org.apache.directory.server/apacheds-service
modifyContext.setDn( entry.getDn() );
modifyContext.setModItems( mods );
partition.modify( modifyContext );
代码示例来源:origin: com.github.livesense/org.liveSense.service.apacheds
modifyContext.setDn( entry.getDn() );
modifyContext.setModItems( mods );
partition.modify( modifyContext );
代码示例来源:origin: org.apache.directory.server/apacheds-core-api
/**
* {@inheritDoc}
*/
public void modify( ModifyOperationContext modifyContext ) throws LdapException
{
Entry entry = modifyContext.getEntry();
if ( entry == null )
{
LookupOperationContext lookupCtx = new LookupOperationContext( modifyContext.getSession(),
modifyContext.getDn() );
lookupCtx.setPartition( this );
lookupCtx.setTransaction( modifyContext.getTransaction() );
entry = wrapped.lookup( lookupCtx );
modifyContext.setEntry( entry );
}
Entry targetEntry = SchemaUtils.getTargetEntry( modifyContext.getModItems(), entry );
boolean cascade = modifyContext.hasRequestControl( Cascade.OID );
boolean hasModification = synchronizer.modify( modifyContext, targetEntry, cascade );
if ( hasModification )
{
wrapped.modify( modifyContext );
}
if ( !modifyContext.getDn().equals( schemaModificationDN ) )
{
updateSchemaModificationAttributes( modifyContext );
}
}
内容来源于网络,如有侵权,请联系作者删除!