Interface CommitHook

    • Method Detail

      • processCommit

        @NotNull
        @NotNull NodeState processCommit​(NodeState before,
                                         NodeState after,
                                         CommitInfo info)
                                  throws CommitFailedException
        Validates and/or modifies the given content change before it gets persisted.
        Parameters:
        before - content tree before the commit
        after - content tree prepared for the commit
        info - metadata associated with this commit
        Returns:
        content tree to be committed
        Throws:
        CommitFailedException - if the commit should be rejected