public enum ResetCommitAttributeHook extends java.lang.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(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic NodeState processCommit(NodeState before, NodeState after, CommitInfo info) throws CommitFailedException
CommitHook
processCommit
in interface CommitHook
before
- content tree before the commitafter
- content tree prepared for the commitinfo
- metadata associated with this commitCommitFailedException
- if the commit should be rejected"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"