Class AccessControlObserver
- java.lang.Object
-
- org.apache.jackrabbit.core.security.authorization.AccessControlObserver
-
- All Implemented Interfaces:
EventListener
,SynchronousEventListener
- Direct Known Subclasses:
EntryCollector
public abstract class AccessControlObserver extends Object implements SynchronousEventListener
AccessControlObserver
...
-
-
Field Summary
Fields Modifier and Type Field Description static int
MOVE
static int
POLICY_ADDED
static int
POLICY_MODIFIED
static int
POLICY_REMOVED
-
Constructor Summary
Constructors Constructor Description AccessControlObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(AccessControlListener listener)
Add a listener that needs to be informed about changes made to access control.protected void
close()
protected void
notifyListeners(AccessControlModifications modifications)
Notifies the listeners about AC modifications.void
removeListener(AccessControlListener listener)
Remove a listener added before.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.observation.EventListener
onEvent
-
-
-
-
Field Detail
-
POLICY_ADDED
public static final int POLICY_ADDED
- See Also:
- Constant Field Values
-
POLICY_REMOVED
public static final int POLICY_REMOVED
- See Also:
- Constant Field Values
-
POLICY_MODIFIED
public static final int POLICY_MODIFIED
- See Also:
- Constant Field Values
-
MOVE
public static final int MOVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
close
protected void close()
-
addListener
public void addListener(AccessControlListener listener)
Add a listener that needs to be informed about changes made to access control.- Parameters:
listener
-EntryListener
to be added.
-
removeListener
public void removeListener(AccessControlListener listener)
Remove a listener added before.- Parameters:
listener
-EntryListener
to be removed.
-
notifyListeners
protected void notifyListeners(AccessControlModifications modifications)
Notifies the listeners about AC modifications.- Parameters:
modifications
-
-
-