Class VersionablePathHook
- java.lang.Object
-
- org.apache.jackrabbit.oak.security.authorization.permission.VersionablePathHook
-
- All Implemented Interfaces:
CommitHook
public class VersionablePathHook extends Object implements CommitHook
Commit hook which is responsible for storing the path of the versionable node with every version history. This includes creating the path property for every workspace the version history is represented and updating the path upon moving around a versionable node.
-
-
Constructor Summary
Constructors Constructor Description VersionablePathHook(@NotNull String workspaceName, @NotNull ProviderCtx providerCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull NodeState
processCommit(NodeState before, NodeState after, CommitInfo info)
Validates and/or modifies the given content change before it gets persisted.String
toString()
-
-
-
Constructor Detail
-
VersionablePathHook
public VersionablePathHook(@NotNull @NotNull String workspaceName, @NotNull @NotNull ProviderCtx providerCtx)
-
-
Method Detail
-
processCommit
@NotNull public @NotNull NodeState processCommit(NodeState before, NodeState after, CommitInfo info) throws CommitFailedException
Description copied from interface:CommitHook
Validates and/or modifies the given content change before it gets persisted.- Specified by:
processCommit
in interfaceCommitHook
- Parameters:
before
- content tree before the commitafter
- content tree prepared for the commitinfo
- metadata associated with this commit- Returns:
- content tree to be committed
- Throws:
CommitFailedException
- if the commit should be rejected
-
-