public interface Indexer
| Modifier and Type | Method and Description |
|---|---|
void |
createChildRelationship(ChildAssociationRef relationshipRef)
Create a refernce link between a parent and child.
|
void |
createNode(ChildAssociationRef relationshipRef)
Create an index entry when a new node is created.
|
void |
deleteChildRelationship(ChildAssociationRef relationshipRef)
Delete a relationship between a parent and child.
|
void |
deleteIndex(StoreRef storeRef)
Delete the index for a store
|
void |
deleteNode(ChildAssociationRef relationshipRef)
Delete a node entry from an index.
|
void |
detectNodeChanges(NodeRef nodeRef,
SearchService searcher,
Collection<ChildAssociationRef> addedParents,
Collection<ChildAssociationRef> deletedParents,
Collection<ChildAssociationRef> createdNodes,
Collection<NodeRef> updatedNodes)
Does a database vs index comparison for the given created/updated/renamed/referenced nodeRef in order to
determine the set of indexing operations required
|
void |
flushPending() |
void |
setReadThrough(boolean isReadThrough)
Activates 'read through' behaviour for this indexer.
|
void |
updateChildRelationship(ChildAssociationRef relationshipBeforeRef,
ChildAssociationRef relationshipAfterRef)
Alter the relationship between parent and child nodes in the index.
|
void |
updateNode(NodeRef nodeRef)
Update an index entry due to property changes on a node.
|
void createNode(ChildAssociationRef relationshipRef)
relationshipRef - ChildAssociationRefvoid updateNode(NodeRef nodeRef)
nodeRef - NodeRefvoid deleteNode(ChildAssociationRef relationshipRef)
relationshipRef - ChildAssociationRefvoid createChildRelationship(ChildAssociationRef relationshipRef)
relationshipRef - ChildAssociationRefvoid updateChildRelationship(ChildAssociationRef relationshipBeforeRef, ChildAssociationRef relationshipAfterRef)
relationshipBeforeRef - ChildAssociationRefrelationshipAfterRef - ChildAssociationRefvoid deleteChildRelationship(ChildAssociationRef relationshipRef)
relationshipRef - ChildAssociationRefvoid detectNodeChanges(NodeRef nodeRef, SearchService searcher, Collection<ChildAssociationRef> addedParents, Collection<ChildAssociationRef> deletedParents, Collection<ChildAssociationRef> createdNodes, Collection<NodeRef> updatedNodes)
nodeRef - the nodeRef to processsearcher - searcher to query the indexesaddedParents - set to add new secondary parent associations todeletedParents - set to add removed secondary parent associations tocreatedNodes - set to add created nodes toupdatedNodes - set to add updated nodes tovoid deleteIndex(StoreRef storeRef)
storeRef - StoreRefvoid flushPending()
void setReadThrough(boolean isReadThrough)
isReadThrough - booleanCopyright © 2005–2021 Alfresco Software. All rights reserved.