org.apache.directory.server.core.changelog
Class ChangeLogInterceptor
java.lang.Object
org.apache.directory.server.core.interceptor.BaseInterceptor
org.apache.directory.server.core.changelog.ChangeLogInterceptor
- All Implemented Interfaces:
- Interceptor
public class ChangeLogInterceptor
- extends BaseInterceptor
An interceptor which intercepts write operations to the directory and
logs them with the server's ChangeLog service.
Note: Adding/deleting a tag is not recorded as a change
- XBean
| Methods inherited from class org.apache.directory.server.core.interceptor.BaseInterceptor |
addContextPartition, bind, compare, destroy, getContext, getMatchedName, getName, getPrincipal, getRootDSE, getSuffix, hasEntry, list, listSuffixes, lookup, removeContextPartition, search, unbind |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChangeLogInterceptor
public ChangeLogInterceptor()
init
public void init(DirectoryService directoryService)
throws java.lang.Exception
- The init method will initialize the local variables and load the
entryDeleted AttributeType.
- Specified by:
init in interface Interceptor- Overrides:
init in class BaseInterceptor
- Throws:
java.lang.Exception
add
public void add(NextInterceptor next,
AddOperationContext opContext)
throws java.lang.Exception
- Specified by:
add in interface Interceptor- Overrides:
add in class BaseInterceptor
- Throws:
java.lang.Exception
delete
public void delete(NextInterceptor next,
DeleteOperationContext opContext)
throws java.lang.Exception
- The delete operation has to be stored with a way to restore the deleted element.
There is no way to do that but reading the entry and dump it into the LOG.
- Specified by:
delete in interface Interceptor- Overrides:
delete in class BaseInterceptor
- Throws:
java.lang.Exception
modify
public void modify(NextInterceptor next,
ModifyOperationContext opContext)
throws java.lang.Exception
- Specified by:
modify in interface Interceptor- Overrides:
modify in class BaseInterceptor
- Throws:
java.lang.Exception
rename
public void rename(NextInterceptor next,
RenameOperationContext renameContext)
throws java.lang.Exception
- Specified by:
rename in interface Interceptor- Overrides:
rename in class BaseInterceptor
- Throws:
java.lang.Exception
moveAndRename
public void moveAndRename(NextInterceptor next,
MoveAndRenameOperationContext opCtx)
throws java.lang.Exception
- Specified by:
moveAndRename in interface Interceptor- Overrides:
moveAndRename in class BaseInterceptor
- Throws:
java.lang.Exception
move
public void move(NextInterceptor next,
MoveOperationContext opCtx)
throws java.lang.Exception
- Specified by:
move in interface Interceptor- Overrides:
move in class BaseInterceptor
- Throws:
java.lang.Exception
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.