public class VersionHook extends java.lang.Object implements CommitHook
VersionEditorProvider
VersionEditor - creates version history, handles
checking-in, checking-out and restoring, prevents a
checked-in node from being modified,
VersionStorageEditor - validates changes on the
version storage,
VersionableCollector - collects all existing versionable
UUIDs, so assigned histories won't be removed in the next step,
OrphanedVersionCleaner - removes all histories that are
empty and have no longer a parent versionable node.
| Constructor and Description |
|---|
VersionHook() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull NodeState |
processCommit(NodeState before,
NodeState after,
CommitInfo info)
Validates and/or modifies the given content change before it gets
persisted.
|
@NotNull public @NotNull NodeState processCommit(NodeState before, NodeState after, CommitInfo info) throws CommitFailedException
CommitHookprocessCommit in interface CommitHookbefore - content tree before the commitafter - content tree prepared for the commitinfo - metadata associated with this commitCommitFailedException - if the commit should be rejectedCopyright © 2010 - 2023 Adobe. All Rights Reserved