public class IndexChangeAdapter extends ChangeSetAdapter
ChangeSetAdapter.NodeTypePredicate
context, predicate
Constructor and Description |
---|
IndexChangeAdapter(ExecutionContext context,
String workspaceName,
ChangeSetAdapter.NodeTypePredicate predicate) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
includesWorkspace(String workspaceName)
Determine whether changes in the named workspace should be processed.
|
protected void |
reindex(String workspaceName,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
CachedNode.Properties properties,
boolean queryable)
Reindex the specific node.
|
addNode, addWorkspace, beginChanges, beginWorkspaceChanges, binaryValueUnused, changeNode, completeChanges, completeWorkspaceChanges, modifyProperties, moveNode, notify, reindexNode, removeNode, removeWorkspace, renameNode, reorderNode, repositoryMetadataChanged, sequenced, sequenceFailure
public IndexChangeAdapter(ExecutionContext context, String workspaceName, ChangeSetAdapter.NodeTypePredicate predicate)
protected boolean includesWorkspace(String workspaceName)
ChangeSetAdapter
true
, which
means changes to content in all workspaces are handled by this adapter.includesWorkspace
in class ChangeSetAdapter
workspaceName
- the workspace that has changes in contentprotected final void reindex(String workspaceName, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties, boolean queryable)
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-2015 JBoss, a division of Red Hat. All Rights Reserved.