protected static final class IndexChangeAdapters.NodeNameChangeAdapter extends IndexChangeAdapters.PathBasedChangeAdapter<Name>
ChangeSetAdapter.NodeTypePredicate
propertyName
index, logger, workspaceName
context, predicate
Constructor and Description |
---|
NodeNameChangeAdapter(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
ProvidedIndex<?> index) |
Modifier and Type | Method and Description |
---|---|
protected Name |
convert(Path path) |
protected Name |
convertRoot(Path path) |
protected void |
reorderNode(String workspaceName,
NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
NodeKey parent,
Path newPath,
Path oldPath,
Path reorderedBeforePath)
Handle the reordering of a node.
|
addNode, moveNode, reindexNode, removeNode, renameNode, toString, valueOf
clearDataFor, completeChanges, completeWorkspaceChanges, includesWorkspace, index, nodeKey, reindex
addWorkspace, beginChanges, beginWorkspaceChanges, binaryValueUnused, changeNode, modifyProperties, notify, removeWorkspace, repositoryMetadataChanged, sequenced, sequenceFailure
public NodeNameChangeAdapter(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, ProvidedIndex<?> index)
protected Name convert(Path path)
convert
in class IndexChangeAdapters.PathBasedChangeAdapter<Name>
protected Name convertRoot(Path path)
convertRoot
in class IndexChangeAdapters.PathBasedChangeAdapter<Name>
protected void reorderNode(String workspaceName, NodeKey key, Name primaryType, Set<Name> mixinTypes, NodeKey parent, Path newPath, Path oldPath, Path reorderedBeforePath)
ChangeSetAdapter
reorderNode
in class IndexChangeAdapters.PathBasedChangeAdapter<Name>
workspaceName
- the workspace in which the node information should be available; may not be nullkey
- the unique key for the node; may not be nullprimaryType
- the primary type of the node; may not be nullmixinTypes
- the mixin types for the node; may not be null but may be emptyparent
- the key of the node's parent; may not be nullnewPath
- the new path of the node after it was moved; may not be nulloldPath
- the old path of the node before it was moved; may not be nullreorderedBeforePath
- the path of the node before which the node was placed; null if it was moved to the endCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.