Uses of Interface
org.apache.jackrabbit.oak.spi.state.NodeState
-
Packages that use NodeState Package Description org.apache.jackrabbit.oak.json org.apache.jackrabbit.oak.plugins.memory org.apache.jackrabbit.oak.spi.commit org.apache.jackrabbit.oak.spi.state -
-
Uses of NodeState in org.apache.jackrabbit.oak.json
Methods in org.apache.jackrabbit.oak.json that return NodeState Modifier and Type Method Description NodeStateJsonDeserializer. deserialize(String json)NodeStateJsonDeserializer. deserialize(org.apache.jackrabbit.oak.commons.json.JsopReader reader)Methods in org.apache.jackrabbit.oak.json with parameters of type NodeState Modifier and Type Method Description booleanJsopDiff. childNodeAdded(String name, NodeState after)booleanJsopDiff. childNodeChanged(String name, NodeState before, NodeState after)booleanJsopDiff. childNodeDeleted(String name, NodeState before)static StringJsopDiff. diffToJsop(NodeState before, NodeState after)Create the JSOP diff betweenbeforeandafterfor debugging purposes.voidJsonSerializer. serialize(NodeState node)voidJsonSerializer. serialize(NodeState node, String basePath) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.memory
Classes in org.apache.jackrabbit.oak.plugins.memory that implement NodeState Modifier and Type Class Description classEmptyNodeStateSingleton instances of empty and non-existent node states, i.e.classModifiedNodeStateImmutable snapshot of a mutable node state.Fields in org.apache.jackrabbit.oak.plugins.memory declared as NodeState Modifier and Type Field Description static NodeStateEmptyNodeState. EMPTY_NODEstatic NodeStateEmptyNodeState. MISSING_NODEMethods in org.apache.jackrabbit.oak.plugins.memory with type parameters of type NodeState Modifier and Type Method Description static <E extends Map.Entry<String,? extends NodeState>>
Iterable<ChildNodeEntry>MemoryChildNodeEntry. iterable(Iterable<E> set)Methods in org.apache.jackrabbit.oak.plugins.memory that return NodeState Modifier and Type Method Description @NotNull NodeStateMemoryNodeBuilder. getBaseState()@NotNull NodeStateModifiedNodeState. getBaseState()@NotNull NodeStateEmptyNodeState. getChildNode(@NotNull String name)@NotNull NodeStateModifiedNodeState. getChildNode(@NotNull String name)NodeStateMemoryChildNodeEntry. getNodeState()@NotNull NodeStateMemoryNodeBuilder. getNodeState()NodeStateMemoryNodeStore. getRoot()NodeStateMemoryNodeStore. merge(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info)This implementation is equal to first rebasing the builder and then applying it to a new branch and immediately merging it back.NodeStateMemoryNodeStore. rebase(@NotNull NodeBuilder builder)This implementation is equal to applying the differences between the builders base state and its head state to a fresh builder on the stores root state usingConflictAnnotatingRebaseDifffor resolving conflicts.NodeStateMemoryNodeStore. reset(@NotNull NodeBuilder builder)This implementation is equal resetting the builder to the root of the store and returning the resulting node state from the builder.@Nullable NodeStateMemoryNodeStore. retrieve(@NotNull String checkpoint)static NodeStateModifiedNodeState. squeeze(NodeState state)"Squeezes"ModifiedNodeStateinstances into equivalentMemoryNodeStates.Methods in org.apache.jackrabbit.oak.plugins.memory with parameters of type NodeState Modifier and Type Method Description booleanEmptyNodeState. compareAgainstBaseState(NodeState base, NodeStateDiff diff)booleanModifiedNodeState. compareAgainstBaseState(NodeState base, NodeStateDiff diff)Since we keep track of an explicit base node state for aModifiedNodeStateinstance, we can do this in two steps: first compare all the modified properties and child nodes to those of the given base state, and then compare the base states to each other, ignoring all changed properties and child nodes that were already covered earlier.static booleanEmptyNodeState. compareAgainstEmptyState(NodeState state, NodeStateDiff diff)static booleanEmptyNodeState. isEmptyState(NodeState state)voidMemoryNodeBuilder. reset(@NotNull NodeState newBase)Throws away all changes in this builder and resets the base to the given node state.protected voidMemoryNodeBuilder. set(NodeState newState)Replaces the current state of this builder with the given node state.@NotNull NodeBuilderMemoryNodeBuilder. setChildNode(@NotNull String name, @NotNull NodeState state)static NodeStateModifiedNodeState. squeeze(NodeState state)"Squeezes"ModifiedNodeStateinstances into equivalentMemoryNodeStates.Constructors in org.apache.jackrabbit.oak.plugins.memory with parameters of type NodeState Constructor Description MemoryChildNodeEntry(String name, NodeState node)Creates a child node entry with the given name and referenced child node state.MemoryNodeBuilder(@NotNull NodeState base)Creates a new in-memory node state builder rooted at and based on the passedbasestate.MemoryNodeStore(NodeState state) -
Uses of NodeState in org.apache.jackrabbit.oak.spi.commit
Methods in org.apache.jackrabbit.oak.spi.commit that return NodeState Modifier and Type Method Description @NotNull NodeStateCommitHook. processCommit(NodeState before, NodeState after, CommitInfo info)Validates and/or modifies the given content change before it gets persisted.@NotNull NodeStateCompositeHook. processCommit(NodeState before, NodeState after, CommitInfo info)@NotNull NodeStateEditorHook. processCommit(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info)@NotNull NodeStateEmptyHook. processCommit(NodeState before, NodeState after, CommitInfo info)@NotNull NodeStateResetCommitAttributeHook. processCommit(NodeState before, NodeState after, CommitInfo info)Methods in org.apache.jackrabbit.oak.spi.commit with parameters of type NodeState Modifier and Type Method Description ThreeWayConflictHandler.ResolutionCompositeConflictHandler. addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs)@NotNull PartialConflictHandler.ResolutionConflictHandler. addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs)Deprecated.The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.@Nullable PartialConflictHandler.ResolutionPartialConflictHandler. addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs)Deprecated.The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.@NotNull ThreeWayConflictHandler.ResolutionThreeWayConflictHandler. addExistingNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState theirs)The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.ThreeWayConflictHandler.ResolutionCompositeConflictHandler. changeDeletedNode(NodeBuilder parent, String name, NodeState ours, NodeState base)@NotNull PartialConflictHandler.ResolutionConflictHandler. changeDeletedNode(NodeBuilder parent, String name, NodeState ours)Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.@Nullable PartialConflictHandler.ResolutionPartialConflictHandler. changeDeletedNode(NodeBuilder parent, String name, NodeState ours)Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.@NotNull ThreeWayConflictHandler.ResolutionThreeWayConflictHandler. changeDeletedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState base)The nodeourshas been changed inparentwhile it was removed in the persistence store.EditorCompositeEditor. childNodeAdded(String name, NodeState after)EditorDefaultEditor. childNodeAdded(String name, NodeState after)MoveValidatorDefaultMoveValidator. childNodeAdded(String name, NodeState after)ValidatorDefaultValidator. childNodeAdded(String name, NodeState after)@Nullable EditorEditor. childNodeAdded(String name, NodeState after)Processes an added child node.booleanEditorDiff. childNodeAdded(String name, NodeState after)ValidatorFailingValidator. childNodeAdded(String name, NodeState after)EditorProgressNotificationEditor. childNodeAdded(String name, NodeState after)@Nullable EditorSubtreeEditor. childNodeAdded(String name, NodeState after)ValidatorSubtreeExcludingValidator. childNodeAdded(String name, NodeState after)ValidatorSubtreeValidator. childNodeAdded(String name, NodeState after)@Nullable ValidatorValidator. childNodeAdded(String name, NodeState after)Validate an added node@Nullable EditorVisibleEditor. childNodeAdded(String name, NodeState after)@Nullable ValidatorVisibleValidator. childNodeAdded(String name, NodeState after)EditorCompositeEditor. childNodeChanged(String name, NodeState before, NodeState after)EditorDefaultEditor. childNodeChanged(String name, NodeState before, NodeState after)MoveValidatorDefaultMoveValidator. childNodeChanged(String name, NodeState before, NodeState after)ValidatorDefaultValidator. childNodeChanged(String name, NodeState before, NodeState after)@Nullable EditorEditor. childNodeChanged(String name, NodeState before, NodeState after)Processes a changed child node.booleanEditorDiff. childNodeChanged(String name, NodeState before, NodeState after)ValidatorFailingValidator. childNodeChanged(String name, NodeState before, NodeState after)EditorProgressNotificationEditor. childNodeChanged(String name, NodeState before, NodeState after)@Nullable EditorSubtreeEditor. childNodeChanged(String name, NodeState before, NodeState after)ValidatorSubtreeExcludingValidator. childNodeChanged(String name, NodeState before, NodeState after)ValidatorSubtreeValidator. childNodeChanged(String name, NodeState before, NodeState after)@Nullable ValidatorValidator. childNodeChanged(String name, NodeState before, NodeState after)Validate a changed node@Nullable EditorVisibleEditor. childNodeChanged(String name, NodeState before, NodeState after)@Nullable ValidatorVisibleValidator. childNodeChanged(String name, NodeState before, NodeState after)EditorCompositeEditor. childNodeDeleted(String name, NodeState before)EditorDefaultEditor. childNodeDeleted(String name, NodeState before)MoveValidatorDefaultMoveValidator. childNodeDeleted(String name, NodeState before)ValidatorDefaultValidator. childNodeDeleted(String name, NodeState before)@Nullable EditorEditor. childNodeDeleted(String name, NodeState before)Processes a deleted child node.booleanEditorDiff. childNodeDeleted(String name, NodeState before)ValidatorFailingValidator. childNodeDeleted(String name, NodeState before)EditorProgressNotificationEditor. childNodeDeleted(String name, NodeState before)@Nullable EditorSubtreeEditor. childNodeDeleted(String name, NodeState before)ValidatorSubtreeExcludingValidator. childNodeDeleted(String name, NodeState before)ValidatorSubtreeValidator. childNodeDeleted(String name, NodeState before)@Nullable ValidatorValidator. childNodeDeleted(String name, NodeState before)Validate a deleted node@Nullable EditorVisibleEditor. childNodeDeleted(String name, NodeState before)@Nullable ValidatorVisibleValidator. childNodeDeleted(String name, NodeState before)voidBackgroundObserver. contentChanged(@NotNull NodeState root, @NotNull CommitInfo info)voidChangeDispatcher. contentChanged(@NotNull NodeState root, @NotNull CommitInfo info)voidCompositeObserver. contentChanged(@NotNull NodeState root, @NotNull CommitInfo info)voidDiffObserver. contentChanged(@NotNull NodeState root, @NotNull CommitInfo info)voidEmptyObserver. contentChanged(@NotNull NodeState root, @NotNull CommitInfo info)voidObserver. contentChanged(@NotNull NodeState root, @NotNull CommitInfo info)Observes a content change.ThreeWayConflictHandler.ResolutionCompositeConflictHandler. deleteChangedNode(NodeBuilder parent, String name, NodeState theirs, NodeState base)@NotNull PartialConflictHandler.ResolutionConflictHandler. deleteChangedNode(NodeBuilder parent, String name, NodeState theirs)Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.@Nullable PartialConflictHandler.ResolutionPartialConflictHandler. deleteChangedNode(NodeBuilder parent, String name, NodeState theirs)Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.@NotNull ThreeWayConflictHandler.ResolutionThreeWayConflictHandler. deleteChangedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState theirs, @NotNull NodeState base)The nodetheirschanged in the persistence store while it has been deleted locally.ThreeWayConflictHandler.ResolutionCompositeConflictHandler. deleteDeletedNode(NodeBuilder parent, String name, NodeState base)@NotNull ThreeWayConflictHandler.ResolutionThreeWayConflictHandler. deleteDeletedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState base)The nodenamehas been removed inparentwhile it was also removed in the persistence store.voidCompositeEditor. enter(NodeState before, NodeState after)voidDefaultEditor. enter(NodeState before, NodeState after)voidDefaultValidator. enter(NodeState before, NodeState after)voidEditor. enter(NodeState before, NodeState after)Called before the given before and after states are compared.voidFailingValidator. enter(NodeState before, NodeState after)voidProgressNotificationEditor. enter(NodeState before, NodeState after)voidVisibleEditor. enter(NodeState before, NodeState after)voidVisibleValidator. enter(NodeState before, NodeState after)protected abstract NodeStateDiffDiffObserver. getRootDiff(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info)Returns the diff handler to be used for the given content change.@Nullable EditorCompositeEditorProvider. getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info)@Nullable EditorEditorProvider. getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info)Returns an editor for processing changes between the given two states.@Nullable EditorValidatorProvider. getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info)@Nullable EditorWhiteboardEditorProvider. getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info)protected abstract @Nullable ValidatorValidatorProvider. getRootValidator(NodeState before, NodeState after, CommitInfo info)Returns a validator for checking the changes between the given two root states.voidCompositeEditor. leave(NodeState before, NodeState after)voidDefaultEditor. leave(NodeState before, NodeState after)voidDefaultValidator. leave(NodeState before, NodeState after)voidEditor. leave(NodeState before, NodeState after)Called after the given before and after states are compared.voidFailingValidator. leave(NodeState before, NodeState after)voidProgressNotificationEditor. leave(NodeState before, NodeState after)voidVisibleEditor. leave(NodeState before, NodeState after)voidVisibleValidator. leave(NodeState before, NodeState after)voidDefaultMoveValidator. move(String name, String sourcePath, NodeState moved)static @Nullable org.apache.jackrabbit.oak.api.CommitFailedExceptionEditorDiff. process(@Nullable Editor editor, @NotNull NodeState before, @NotNull NodeState after)Validates and possibly edits the given subtree by diffing and recursing through it.@NotNull NodeStateCommitHook. processCommit(NodeState before, NodeState after, CommitInfo info)Validates and/or modifies the given content change before it gets persisted.@NotNull NodeStateCompositeHook. processCommit(NodeState before, NodeState after, CommitInfo info)@NotNull NodeStateEditorHook. processCommit(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info)@NotNull NodeStateEmptyHook. processCommit(NodeState before, NodeState after, CommitInfo info)@NotNull NodeStateResetCommitAttributeHook. processCommit(NodeState before, NodeState after, CommitInfo info)Constructors in org.apache.jackrabbit.oak.spi.commit with parameters of type NodeState Constructor Description ChangeDispatcher(@NotNull NodeState root)Create a new instance for dispatching content changes -
Uses of NodeState in org.apache.jackrabbit.oak.spi.state
Classes in org.apache.jackrabbit.oak.spi.state that implement NodeState Modifier and Type Class Description classAbstractNodeStateAbstract base class forNodeStateimplementations.Fields in org.apache.jackrabbit.oak.spi.state with type parameters of type NodeState Modifier and Type Field Description static Predicate<NodeState>NodeState. EXISTSPredicate that checks the existence of NodeState instances.Methods in org.apache.jackrabbit.oak.spi.state that return NodeState Modifier and Type Method Description @NotNull NodeStateNodeStoreBranch. getBase()Returns the base state of this branch.@NotNull NodeStateNodeBuilder. getBaseState()Returns the original base state that this builder is modifying.@NotNull NodeStateReadOnlyBuilder. getBaseState()@NotNull NodeStateNodeState. getChildNode(@NotNull String name)Returns the named, possibly non-existent, child node.@NotNull NodeStateNodeStoreBranch. getHead()Returns the head state of this branch.static @NotNull NodeStateNodeStateUtils. getNode(@NotNull NodeState node, @NotNull String path)Get a possibly non existing child node of a node.@NotNull NodeStateChildNodeEntry. getNodeState()The child node state@NotNull NodeStateNodeBuilder. getNodeState()Returns an immutable node state that matches the current state of the builder.@NotNull NodeStateReadOnlyBuilder. getNodeState()@NotNull NodeStateNodeStore. getRoot()Returns the latest state of the tree.NodeStateProxyNodeStore. getRoot()@NotNull NodeStateNodeStore. merge(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info)@NotNull NodeStateNodeStoreBranch. merge(@NotNull CommitHook hook, @NotNull CommitInfo info)Merges the changes in this branch to the main content tree.NodeStateProxyNodeStore. merge(NodeBuilder builder, CommitHook commitHook, CommitInfo info)@NotNull NodeStateNodeStore. rebase(@NotNull NodeBuilder builder)NodeStateProxyNodeStore. rebase(NodeBuilder builder)NodeStateNodeStore. reset(@NotNull NodeBuilder builder)Reset the passedbuilderby throwing away all its changes and setting its base state to the current root state.NodeStateProxyNodeStore. reset(NodeBuilder builder)@Nullable NodeStateNodeStore. retrieve(@NotNull String checkpoint)Retrieves the root node from a previously created repository checkpoint.NodeStateProxyNodeStore. retrieve(String checkpoint)Methods in org.apache.jackrabbit.oak.spi.state with parameters of type NodeState Modifier and Type Method Description protected abstract voidAbstractRebaseDiff. addExistingNode(NodeBuilder builder, String name, NodeState before, NodeState after)Called when the nodeafterwas added on the branch but the node exists already in the trunk.protected voidConflictAnnotatingRebaseDiff. addExistingNode(NodeBuilder builder, String name, NodeState before, NodeState after)voidApplyDiff. apply(NodeState target)protected abstract voidAbstractRebaseDiff. changeDeletedNode(NodeBuilder builder, String name, NodeState after, NodeState base)Called when the nodeafterwas changed on the branch but was deleted already in the trunk.protected voidConflictAnnotatingRebaseDiff. changeDeletedNode(NodeBuilder builder, String name, NodeState after, NodeState base)booleanAbstractRebaseDiff. childNodeAdded(String name, NodeState after)booleanApplyDiff. childNodeAdded(String name, NodeState after)booleanDefaultNodeStateDiff. childNodeAdded(String name, NodeState after)booleanEqualsDiff. childNodeAdded(String name, NodeState after)ValidatorMoveDetector. childNodeAdded(String name, NodeState after)@Nullable MoveValidatorMoveValidator. childNodeAdded(String name, NodeState after)booleanNodeStateDiff. childNodeAdded(String name, NodeState after)Called for all added child nodes.booleanAbstractRebaseDiff. childNodeChanged(String name, NodeState before, NodeState after)booleanApplyDiff. childNodeChanged(String name, NodeState before, NodeState after)booleanDefaultNodeStateDiff. childNodeChanged(String name, NodeState before, NodeState after)booleanEqualsDiff. childNodeChanged(String name, NodeState before, NodeState after)ValidatorMoveDetector. childNodeChanged(String name, NodeState before, NodeState after)@Nullable MoveValidatorMoveValidator. childNodeChanged(String name, NodeState before, NodeState after)booleanNodeStateDiff. childNodeChanged(String name, NodeState before, NodeState after)Called for all child nodes that may contain changes between the before and after states.booleanAbstractRebaseDiff. childNodeDeleted(String name, NodeState before)booleanApplyDiff. childNodeDeleted(String name, NodeState before)booleanDefaultNodeStateDiff. childNodeDeleted(String name, NodeState before)booleanEqualsDiff. childNodeDeleted(String name, NodeState before)ValidatorMoveDetector. childNodeDeleted(String name, NodeState before)@Nullable MoveValidatorMoveValidator. childNodeDeleted(String name, NodeState before)booleanNodeStateDiff. childNodeDeleted(String name, NodeState before)Called for all deleted child nodes.booleanAbstractNodeState. compareAgainstBaseState(NodeState base, NodeStateDiff diff)Generic default comparison algorithm that simply walks through the property and child node lists of the given base state and compares the entries one by one with corresponding ones (if any) in this state.static booleanAbstractNodeState. compareAgainstBaseState(NodeState state, NodeState base, NodeStateDiff diff)Generic default comparison algorithm that simply walks through the property and child node lists of the given base state and compares the entries one by one with corresponding ones (if any) in this state.booleanNodeState. compareAgainstBaseState(NodeState base, NodeStateDiff diff)Compares this node state against the given base state.static booleanAbstractNodeState. comparePropertiesAgainstBaseState(NodeState state, NodeState base, NodeStateDiff diff)Compares the properties ofbasestate withthisstate.protected abstract voidAbstractRebaseDiff. deleteChangedNode(NodeBuilder builder, String name, NodeState before)Called when the nodebeforewas deleted in the branch but was already changed in the trunk.protected voidConflictAnnotatingRebaseDiff. deleteChangedNode(NodeBuilder builder, String name, NodeState before)protected abstract voidAbstractRebaseDiff. deleteDeletedNode(NodeBuilder builder, String name, NodeState before)Called when the nodebeforewas deleted in the branch but was already deleted in the trunk.protected voidConflictAnnotatingRebaseDiff. deleteDeletedNode(NodeBuilder builder, String name, NodeState before)voidMoveDetector. enter(NodeState before, NodeState after)static booleanAbstractNodeState. equals(NodeState a, NodeState b)static booleanEqualsDiff. equals(NodeState before, NodeState after)Diffs the given node states and returnstrueif there are no differences.static booleanAbstractNodeState. getBoolean(NodeState state, String name)static longAbstractNodeState. getLong(NodeState state, String name)static StringAbstractNodeState. getName(NodeState state, String name)static Iterable<String>AbstractNodeState. getNames(NodeState state, String name)static @NotNull NodeStateNodeStateUtils. getNode(@NotNull NodeState node, @NotNull String path)Get a possibly non existing child node of a node.static @Nullable StringNodeStateUtils. getPrimaryTypeName(NodeState nodeState)static StringAbstractNodeState. getString(NodeState state, String name)static Iterable<String>AbstractNodeState. getStrings(NodeState state, String name)voidMoveDetector. leave(NodeState before, NodeState after)static booleanEqualsDiff. modified(NodeState before, NodeState after)Diffs the given node states and returnstrueif there are differences within the properties or direct child nodes.voidMoveValidator. move(String name, String sourcePath, NodeState moved)Called when a moved node has been detected.@NotNull NodeBuilderNodeBuilder. setChildNode(@NotNull String name, @NotNull NodeState nodeState)Adds or replaces a subtree.@NotNull NodeBuilderReadOnlyBuilder. setChildNode(@NotNull String name, @NotNull NodeState nodeState)voidNodeStoreBranch. setRoot(NodeState newRoot)Updates the state of the content tree of this private branch.static StringAbstractNodeState. toString(NodeState state)static StringNodeStateUtils. toString(NodeState node)Provides a string representation of the given node stateConstructors in org.apache.jackrabbit.oak.spi.state with parameters of type NodeState Constructor Description ReadOnlyBuilder(@NotNull NodeState state)
-