protected static class IndexChangeAdapters.MultiColumnChangeAdapter extends IndexChangeAdapter
ChangeSetAdapter.NodeTypePredicate
index, logger, workspaceName
context, predicate
Modifier | Constructor and Description |
---|---|
protected |
MultiColumnChangeAdapter(ExecutionContext context,
String workspaceName,
ChangeSetAdapter.NodeTypePredicate predicate,
ProvidedIndex<?> index,
Iterable<IndexChangeAdapter> adapters) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNode(String workspaceName,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
CachedNode.Properties properties)
Handle the addition of a node.
|
protected void |
modifyProperties(NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
Map<Name,AbstractPropertyChange> propChanges)
Handle the addition, change, and removal of one or more properties of a single node.
|
protected void |
moveNode(String workspaceName,
NodeKey key,
Name primaryType,
Set<Name> mixinTypes,
NodeKey oldParent,
NodeKey newParent,
Path newPath,
Path oldPath)
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)
Handle the removal of a node.
|
protected void |
renameNode(String workspaceName,
NodeKey key,
Path newPath,
Path.Segment oldSegment,
Name primaryType,
Set<Name> mixinTypes)
Handle the renaming of a node.
|
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.
|
clearDataFor, completeChanges, completeWorkspaceChanges, includesWorkspace, index, nodeKey, reindex, toString
addWorkspace, beginChanges, beginWorkspaceChanges, binaryValueUnused, changeNode, notify, removeWorkspace, repositoryMetadataChanged, sequenced, sequenceFailure
protected MultiColumnChangeAdapter(ExecutionContext context, String workspaceName, ChangeSetAdapter.NodeTypePredicate predicate, ProvidedIndex<?> index, Iterable<IndexChangeAdapter> adapters)
protected void modifyProperties(NodeKey key, Name primaryType, Set<Name> mixinTypes, Map<Name,AbstractPropertyChange> propChanges)
ChangeSetAdapter
modifyProperties
in class ChangeSetAdapter
key
- the unique key for the node; may not be nullprimaryType
- the primary type of the node for which the modifications occurred; never nullmixinTypes
- the mixin types of the node for which the modifications occurred; never null but possibly emptypropChanges
- the map of property modification events, keyed by the names of the properties; never null and neverprotected void addNode(String workspaceName, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties)
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 emptyprotected 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 removeNode(String workspaceName, NodeKey key, NodeKey parentKey, Path path, Name primaryType, Set<Name> mixinTypes)
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 emptyprotected void moveNode(String workspaceName, NodeKey key, Name primaryType, Set<Name> mixinTypes, NodeKey oldParent, NodeKey newParent, Path newPath, Path oldPath)
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 nullprotected void renameNode(String workspaceName, NodeKey key, Path newPath, Path.Segment oldSegment, Name primaryType, Set<Name> mixinTypes)
ChangeSetAdapter
renameNode
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 nullnewPath
- the new path of the node after it was moved; may not be nulloldSegment
- the old segment of the node before it was moved; 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 emptyprotected void reorderNode(String workspaceName, NodeKey key, Name primaryType, Set<Name> mixinTypes, NodeKey parent, Path newPath, Path oldPath, Path reorderedBeforePath)
ChangeSetAdapter
reorderNode
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 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.