public enum ResetCommitAttributeHook extends Enum<ResetCommitAttributeHook> implements CommitHook
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
NodeState |
processCommit(NodeState before,
NodeState after,
CommitInfo info)
Validates and/or modifies the given content change before it gets
persisted.
|
static ResetCommitAttributeHook |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResetCommitAttributeHook[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResetCommitAttributeHook INSTANCE
public static ResetCommitAttributeHook[] values()
for (ResetCommitAttributeHook c : ResetCommitAttributeHook.values()) System.out.println(c);
public static ResetCommitAttributeHook valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull public NodeState processCommit(NodeState before, NodeState after, CommitInfo info) throws org.apache.jackrabbit.oak.api.CommitFailedException
CommitHookprocessCommit in interface CommitHookbefore - content tree before the commitafter - content tree prepared for the commitinfo - metadata associated with this commitorg.apache.jackrabbit.oak.api.CommitFailedException - if the commit should be rejectedCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.