Class NodeObserver
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.observation.NodeObserver
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNodeObserver(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 voidadded(@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 atpathhas been added.protected abstract voidchanged(@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 atpathhas been changed.voidcontentChanged(@NotNull NodeState root, @NotNull CommitInfo info)Observes a content change.protected abstract voiddeleted(@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 atpathhas 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 atpathhas 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 atpathhas 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 atpathhas 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:ObserverObserves a content change. See theObserverclass javadocs and relevant repository and observer registration details for more information on when and how this method gets called.- Specified by:
contentChangedin interfaceObserver- Parameters:
root- root state of the repositoryinfo- commit information
-
-