public class IndexerComponent extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements Indexer
indexerAndSearcherFactory
Transactional support is free.Indexer
Constructor and Description |
---|
IndexerComponent() |
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() |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event) |
void |
setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory) |
void |
setReadThrough(boolean isReadThrough)
Activates 'read through' behaviour for this indexer.
|
void |
setStoreRedirectorProxyFactory(StoreRedirectorProxyFactory<IndexerAndSearcher> storeRedirectorProxyFactory) |
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.
|
public void setStoreRedirectorProxyFactory(StoreRedirectorProxyFactory<IndexerAndSearcher> storeRedirectorProxyFactory)
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
public void setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)
public void setReadThrough(boolean isReadThrough)
Indexer
setReadThrough
in interface Indexer
isReadThrough
- booleanpublic void createNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
Indexer
createNode
in interface Indexer
relationshipRef
- ChildAssociationRefpublic void updateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Indexer
updateNode
in interface Indexer
nodeRef
- NodeRefpublic void deleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
Indexer
deleteNode
in interface Indexer
relationshipRef
- ChildAssociationRefpublic void createChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
Indexer
createChildRelationship
in interface Indexer
relationshipRef
- ChildAssociationRefpublic void updateChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipBeforeRef, org.alfresco.service.cmr.repository.ChildAssociationRef relationshipAfterRef)
Indexer
updateChildRelationship
in interface Indexer
relationshipBeforeRef
- ChildAssociationRefrelationshipAfterRef
- ChildAssociationRefpublic void deleteChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
Indexer
deleteChildRelationship
in interface Indexer
relationshipRef
- ChildAssociationRefpublic 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)
Indexer
detectNodeChanges
in interface Indexer
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 topublic void deleteIndex(org.alfresco.service.cmr.repository.StoreRef storeRef)
Indexer
deleteIndex
in interface Indexer
storeRef
- StoreRefpublic void flushPending()
flushPending
in interface Indexer
Copyright © 2005–2017 Alfresco Software. All rights reserved.