protected abstract static class IndexChangeAdapters.PathBasedChangeAdapter<T> extends IndexChangeAdapter
ChangeSetAdapter.NodeTypePredicate
context, predicate
Modifier | Constructor and Description |
---|---|
protected |
IndexChangeAdapters.PathBasedChangeAdapter(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
org.modeshape.jcr.index.local.LocalDuplicateIndex<T> index,
boolean includeRoot) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNode(String workspaceName,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
CachedNode.Properties properties,
boolean queryable)
Handle the addition of a node.
|
protected void |
completeChanges()
Signals the end of processing for the changes in a transaction described by a single
ChangeSet . |
protected void |
completeWorkspaceChanges()
Signals the end of processing for the workspace-related changes in a transaction described by a single
ChangeSet . |
protected abstract T |
convert(Path path) |
protected abstract T |
convertRoot(Path path) |
protected void |
moveNode(String workspaceName,
NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
NodeKey oldParent,
NodeKey newParent,
Path newPath,
Path oldPath,
boolean queryable)
Handle the move of a node.
|
protected void |
reindexNode(String workspaceName,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
CachedNode.Properties properties,
boolean queryable)
Handle the reindexing of a node.
|
protected void |
removeNode(String workspaceName,
NodeKey key,
NodeKey parentKey,
Path path,
Name primaryType,
Set<Name> mixinTypes,
boolean queryable)
Handle the removal of a node.
|
String |
toString() |
includesWorkspace, index
addWorkspace, beginChanges, beginWorkspaceChanges, binaryValueUnused, changeNode, modifyProperties, notify, removeWorkspace, renameNode, reorderNode, repositoryMetadataChanged, sequenced, sequenceFailure
protected IndexChangeAdapters.PathBasedChangeAdapter(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, org.modeshape.jcr.index.local.LocalDuplicateIndex<T> index, boolean includeRoot)
protected void addNode(String workspaceName, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties, boolean queryable)
ChangeSetAdapter
addNode
in class ChangeSetAdapter
workspaceName
- the workspace in which the node information should be available; may not be nullkey
- the unique key for the node; may not be nullpath
- the path of 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 emptyproperties
- the properties of the node; may not be null but may be emptyqueryable
- true if the node is queryable, false otherwiseprotected void reindexNode(String workspaceName, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties, boolean queryable)
ChangeSetAdapter
reindexNode
in class ChangeSetAdapter
workspaceName
- the workspace in which the node information should be available; may not be nullkey
- the unique key for the node; may not be nullpath
- the path of 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 emptyproperties
- the properties of the node; may not be null but may be emptyqueryable
- true if the node is queryable, false otherwiseprotected void moveNode(String workspaceName, NodeKey key, Name primaryType, Set<Name> mixinTypes, NodeKey oldParent, NodeKey newParent, Path newPath, Path oldPath, boolean queryable)
ChangeSetAdapter
moveNode
in class ChangeSetAdapter
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 emptyoldParent
- the key of the node's parent before it was moved; may not be nullnewParent
- the key of the node's parent after it was moved; 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 nullqueryable
- true if the node is queryable, false otherwiseprotected void removeNode(String workspaceName, NodeKey key, NodeKey parentKey, Path path, Name primaryType, Set<Name> mixinTypes, boolean queryable)
ChangeSetAdapter
removeNode
in class ChangeSetAdapter
workspaceName
- the workspace in which the node information should be available; may not be nullkey
- the unique key for the node; may not be nullparentKey
- the unique key for the parent of the node; may not be nullpath
- the path of 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 emptyqueryable
- true if the node is queryable, false otherwiseprotected void completeChanges()
ChangeSetAdapter
ChangeSet
.completeChanges
in class ChangeSetAdapter
ChangeSetAdapter.beginChanges()
protected void completeWorkspaceChanges()
ChangeSetAdapter
ChangeSet
.completeWorkspaceChanges
in class ChangeSetAdapter
ChangeSetAdapter.beginWorkspaceChanges()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.