public interface Indexer
Modifier and Type | Method and Description |
---|---|
void |
createChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
Create a refernce link between a parent and child.
|
void |
createNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
Create an index entry when a new node is created.
|
void |
deleteChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
Delete a relationship between a parent and child.
|
void |
deleteIndex(org.alfresco.service.cmr.repository.StoreRef storeRef)
Delete the index for a store
|
void |
deleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
Delete a node entry from an index.
|
void |
detectNodeChanges(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.search.SearchService searcher,
Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> addedParents,
Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> deletedParents,
Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> createdNodes,
Collection<org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipBeforeRef,
org.alfresco.service.cmr.repository.ChildAssociationRef relationshipAfterRef)
Alter the relationship between parent and child nodes in the index.
|
void |
updateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Update an index entry due to property changes on a node.
|
void createNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
relationshipRef
- ChildAssociationRefvoid updateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefvoid deleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
relationshipRef
- ChildAssociationRefvoid createChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
relationshipRef
- ChildAssociationRefvoid updateChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipBeforeRef, org.alfresco.service.cmr.repository.ChildAssociationRef relationshipAfterRef)
relationshipBeforeRef
- ChildAssociationRefrelationshipAfterRef
- ChildAssociationRefvoid deleteChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
relationshipRef
- ChildAssociationRefvoid detectNodeChanges(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.search.SearchService searcher, Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> addedParents, Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> deletedParents, Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> createdNodes, Collection<org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.StoreRef storeRef)
storeRef
- StoreRefvoid flushPending()
void setReadThrough(boolean isReadThrough)
isReadThrough
- booleanCopyright © 2005–2017 Alfresco Software. All rights reserved.