Class NodeObserver
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.observation.NodeObserver
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NodeObserver(String path, String... propertyNames)
Create a new instance for observing the given path.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
added(@NotNull String path, @NotNull Set<String> added, @NotNull Set<String> deleted, @NotNull Set<String> changed, @NotNull Map<String,String> properties, @NotNull CommitInfo commitInfo)
A node atpath
has been added.protected abstract void
changed(@NotNull String path, @NotNull Set<String> added, @NotNull Set<String> deleted, @NotNull Set<String> changed, @NotNull Map<String,String> properties, @NotNull CommitInfo commitInfo)
A node atpath
has been changed.void
contentChanged(@NotNull NodeState root, @NotNull CommitInfo info)
Observes a content change.protected abstract void
deleted(@NotNull String path, @NotNull Set<String> added, @NotNull Set<String> deleted, @NotNull Set<String> changed, @NotNull Map<String,String> properties, @NotNull CommitInfo commitInfo)
A node atpath
has been deleted.
-
-
-
Method Detail
-
added
protected abstract void added(@NotNull @NotNull String path, @NotNull @NotNull Set<String> added, @NotNull @NotNull Set<String> deleted, @NotNull @NotNull Set<String> changed, @NotNull @NotNull Map<String,String> properties, @NotNull @NotNull CommitInfo commitInfo)
A node atpath
has been added.- Parameters:
path
- Path of the added node.added
- Names of the added properties.deleted
- Names of the deleted properties.changed
- Names of the changed properties.properties
- Properties as specified in the constructorcommitInfo
- commit info associated with this change.
-
deleted
protected abstract void deleted(@NotNull @NotNull String path, @NotNull @NotNull Set<String> added, @NotNull @NotNull Set<String> deleted, @NotNull @NotNull Set<String> changed, @NotNull @NotNull Map<String,String> properties, @NotNull @NotNull CommitInfo commitInfo)
A node atpath
has been deleted.- Parameters:
path
- Path of the deleted node.added
- Names of the added properties.deleted
- Names of the deleted properties.changed
- Names of the changed properties.properties
- Properties as specified in the constructorcommitInfo
- commit info associated with this change.
-
changed
protected abstract void changed(@NotNull @NotNull String path, @NotNull @NotNull Set<String> added, @NotNull @NotNull Set<String> deleted, @NotNull @NotNull Set<String> changed, @NotNull @NotNull Map<String,String> properties, @NotNull @NotNull CommitInfo commitInfo)
A node atpath
has been changed.- Parameters:
path
- Path of the changed node.added
- Names of the added properties.deleted
- Names of the deleted properties.changed
- Names of the changed properties.properties
- Properties as specified in the constructorcommitInfo
- commit info associated with this change.
-
contentChanged
public void contentChanged(@NotNull @NotNull NodeState root, @NotNull @NotNull CommitInfo info)
Description copied from interface:Observer
Observes a content change. See theObserver
class javadocs and relevant repository and observer registration details for more information on when and how this method gets called.- Specified by:
contentChanged
in interfaceObserver
- Parameters:
root
- root state of the repositoryinfo
- commit information
-
-