protected static final class IndexChangeAdapters.NodeTypesChangeAdapter extends IndexChangeAdapters.EnumeratedPropertyChangeAdapter
index
propertyName, valueFactory
context
Constructor and Description |
---|
IndexChangeAdapters.NodeTypesChangeAdapter(ExecutionContext context,
String workspaceName,
LocalIndex<String> index) |
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 |
modifyProperties(NodeKey key,
Map<Name,AbstractPropertyChange> propChanges)
Handle the addition, change, and removal of one or more properties of a single 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.
|
protected void |
removeValue(NodeKey key,
Object value) |
protected void |
removeValues(NodeKey key,
Property oldProperty) |
addValue, addValues, removeValues
convert
includesWorkspace, index
addWorkspace, beginWorkspaceChanges, binaryValueUnused, changeNode, completeWorkspaceChanges, moveNode, notify, removeWorkspace, renameNode, reorderNode, repositoryMetadataChanged, sequenced, sequenceFailure
public IndexChangeAdapters.NodeTypesChangeAdapter(ExecutionContext context, String workspaceName, LocalIndex<String> index)
protected void addNode(String workspaceName, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties, boolean queryable)
ChangeSetAdapter
addNode
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 otherwiseprotected void modifyProperties(NodeKey key, Map<Name,AbstractPropertyChange> propChanges)
ChangeSetAdapter
modifyProperties
in class IndexChangeAdapters.AbstractPropertyChangeAdapter<String>
key
- the unique key for the node; may not be nullpropChanges
- the map of property modification events, keyed by the names of the properties; never null and never
emptyprotected void removeNode(String workspaceName, NodeKey key, NodeKey parentKey, Path path, Name primaryType, Set<Name> mixinTypes, boolean queryable)
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 emptyqueryable
- true if the node is queryable, false otherwiseCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.