public interface Interceptor
public void delete( NextInterceptor nextInterceptor, Name name ) { System.out.println( "Starting invocation." ); nextInterceptor.delete( name ); }
public void delete( NextInterceptor nextInterceptor, Name name ) { nextInterceptor.delete( name ); System.out.println( "Invocation ended." ); }
public void delete( NextInterceptor nextInterceptor, Name name ) { long startTime = System.currentTimeMillis(); try { nextInterceptor.delete( name ); } finally { long endTime = System.currentTimeMillis(); System.out.println( ( endTime - startTime ) + "ms elapsed." ); } }
public void delete( NextInterceptor nextInterceptor, Name name ) { // transform deletion into modification. Attribute mark = new AttributeImpl( "entryDeleted", "true" ); nextInterceptor.modify( name, DirIteratorContext.REPLACE_ATTRIBUTE, mark ); }
String getName()
void init(DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
directoryService
- The DirectoryService instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If the initialization failedvoid destroy()
void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.add( AddOperationContext )
call.addContext
- The AddOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Add operationvoid bind(BindOperationContext bindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
BindOperationContext
call.bindContext
- The BindOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Bind operationboolean compare(CompareOperationContext compareContext) throws org.apache.directory.api.ldap.model.exception.LdapException
compareContext
- The CompareOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Compare operationvoid delete(DeleteOperationContext deleteContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.delete( DeleteOperationContext )
call.deleteContext
- The DeleteOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Delete operationorg.apache.directory.api.ldap.model.entry.Entry getRootDse(GetRootDseOperationContext getRootDseContext) throws org.apache.directory.api.ldap.model.exception.LdapException
getRootDseContext
- The getRootDSE operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If we can't get back the RootDSE entryboolean hasEntry(HasEntryOperationContext hasEntryContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.hasEntry( HasEntryOperationContext )
call.hasEntryContext
- The HasEntryOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the HasEntry operationorg.apache.directory.api.ldap.model.entry.Entry lookup(LookupOperationContext lookupContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.lookup( LookupOperationContext )
call.lookupContext
- The LookupOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Lookup operationvoid modify(ModifyOperationContext modifyContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.modify( ModifyOperationContext )
call.modifyContext
- The ModifyOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Modify operationvoid move(MoveOperationContext moveContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.move( MoveOperationContext )
call.moveContext
- The MoveOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Move operationvoid moveAndRename(MoveAndRenameOperationContext moveAndRenameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
moveAndRenameContext
- The MoveAndRenameOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the MoveAndRename operationvoid rename(RenameOperationContext renameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.rename( RenameOperationContext )
call.renameContext
- The RenameOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Rename operationEntryFilteringCursor search(SearchOperationContext searchContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.search( SearchOperationContext )
call.searchContext
- The SearchOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Search operationvoid unbind(UnbindOperationContext unbindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.unbind( UnbindOperationContext )
call.unbindContext
- The UnbindOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Unbind operationCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.