public class AdministrativePointInterceptor extends BaseInterceptor
directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager
Constructor and Description |
---|
AdministrativePointInterceptor()
Creates a new instance of a AdministrativePointInterceptor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AddOperationContext addContext)
Add an administrative point into the DIT.
|
void |
delete(DeleteOperationContext deleteContext)
We have to check that we can remove the associated AdministrativePoint :
if we remove an AAP, no descendant IAP should remain orphan If we remove a SAP, no descendant IAP should remain orphan Filters Partition.delete( DeleteOperationContext ) call. |
void |
destroy()
This method does nothing by default.
|
void |
init(DirectoryService directoryService)
Registers and initializes all AdministrativePoints to this service.
|
void |
lockRead()
Get a read-lock on the AP cache.
|
void |
lockWrite()
Get a write-lock on the AP cache.
|
void |
modify(ModifyOperationContext modifyContext)
Only the add and remove modifications are fully supported.
|
void |
move(MoveOperationContext moveContext)
Filters
Partition.move( MoveOperationContext ) call. |
void |
moveAndRename(MoveAndRenameOperationContext moveAndRenameContext)
Filters MoveAndRename call.
|
void |
rename(RenameOperationContext renameContext)
Filters
Partition.rename( RenameOperationContext ) call. |
void |
unlock()
Release the read-write lock on the AP cache.
|
public AdministrativePointInterceptor()
public void lockRead()
public void lockWrite()
public void unlock()
public void init(DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
init
in interface Interceptor
init
in class BaseInterceptor
directoryService
- The DirectoryService instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If the initialization failedpublic void destroy()
destroy
in interface Interceptor
destroy
in class BaseInterceptor
public void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
add
in interface Interceptor
add
in class BaseInterceptor
addContext
- The AddOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Add operationpublic void delete(DeleteOperationContext deleteContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.delete( DeleteOperationContext )
call.delete
in interface Interceptor
delete
in class BaseInterceptor
deleteContext
- The DeleteOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Delete operationpublic void modify(ModifyOperationContext modifyContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.modify( ModifyOperationContext )
call.modify
in interface Interceptor
modify
in class BaseInterceptor
modifyContext
- The ModifyOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Modify operationpublic void move(MoveOperationContext moveContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.move( MoveOperationContext )
call.move
in interface Interceptor
move
in class BaseInterceptor
moveContext
- The MoveOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Move operationpublic void moveAndRename(MoveAndRenameOperationContext moveAndRenameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
moveAndRename
in interface Interceptor
moveAndRename
in class BaseInterceptor
moveAndRenameContext
- The MoveAndRenameOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the MoveAndRename operationpublic void rename(RenameOperationContext renameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.rename( RenameOperationContext )
call.rename
in interface Interceptor
rename
in class BaseInterceptor
renameContext
- The RenameOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Rename operationCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.