protected static final class IndexChangeAdapters.NodeTypesChangeAdapter extends IndexChangeAdapters.EnumeratedPropertyChangeAdapter
ChangeSetAdapter.NodeTypePredicate
propertyName, valueFactory
index, logger, workspaceName
context, predicate
Constructor and Description |
---|
NodeTypesChangeAdapter(String property,
ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
ProvidedIndex<?> index) |
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
addValue, addValues, removeValues
addNode, convert, propertyName, toString
clearDataFor, completeChanges, completeWorkspaceChanges, includesWorkspace, index, nodeKey, reindex
addWorkspace, beginChanges, beginWorkspaceChanges, binaryValueUnused, changeNode, moveNode, notify, removeWorkspace, renameNode, reorderNode, repositoryMetadataChanged, sequenced, sequenceFailure
public NodeTypesChangeAdapter(String property, ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, ProvidedIndex<?> index)
protected void modifyProperties(NodeKey key, Name primaryType, Set<Name> mixinTypes, Map<Name,AbstractPropertyChange> propChanges)
ChangeSetAdapter
modifyProperties
in class IndexChangeAdapters.AbstractPropertyChangeAdapter<String>
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 removeNode(String workspaceName, NodeKey key, NodeKey parentKey, Path path, Name primaryType, Set<Name> mixinTypes)
ChangeSetAdapter
removeNode
in class IndexChangeAdapters.AbstractPropertyChangeAdapter<String>
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 reindexNode(String workspaceName, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties, boolean queryable)
ChangeSetAdapter
reindexNode
in class IndexChangeAdapters.AbstractPropertyChangeAdapter<String>
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 otherwiseCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.