Merged V2.9 to HEAD

10561: Merged V2.2 to V2.9
      9882: Node DAO separation
   10580: Merged V2.2 to V2.9
      10576: Missing onContentDelete firing
      10577: More policies: beforeCreateNode and beforeDeleteNode when archiving nodes in hierarchy
         - Updated UsageService and TenantService to conform to the new node DAO (more separation)
         - TODO: Tenant node interceptor not present.  This must be added if Multi-Tentant features are required.
   - NodeMonitor event processing now checks that the nodes are still valid before processing.
   - onMove firing was breaking NodeMonitor.  Changed onMove to not fire when nodes are moved between stores.
   - Raised ALFCOM-1912: ClassCastException when accessing property of type ver2:versionNumber
   - Pull setFixedAcls fully into Node DAO for simpler and speedier execution


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10709 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2008-09-04 00:11:13 +00:00
parent 0876d67c4d
commit 3227355279
58 changed files with 4610 additions and 3230 deletions

View File

@@ -24,8 +24,11 @@
*/
package org.alfresco.repo.search;
import org.alfresco.repo.service.StoreRedirectorProxyFactory;
import org.alfresco.service.cmr.repository.ChildAssociationRef;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.util.AbstractLifecycleBean;
import org.springframework.context.ApplicationEvent;
/**
* Component API for indexing. Delegates to the real index retrieved from the
@@ -38,10 +41,27 @@ import org.alfresco.service.cmr.repository.NodeRef;
* @author andyh
*
*/
public class IndexerComponent implements Indexer
public class IndexerComponent extends AbstractLifecycleBean implements Indexer
{
private StoreRedirectorProxyFactory<IndexerAndSearcher> storeRedirectorProxyFactory;
private IndexerAndSearcher indexerAndSearcherFactory;
public void setStoreRedirectorProxyFactory(StoreRedirectorProxyFactory<IndexerAndSearcher> storeRedirectorProxyFactory)
{
this.storeRedirectorProxyFactory = storeRedirectorProxyFactory;
}
@Override
protected void onBootstrap(ApplicationEvent event)
{
this.indexerAndSearcherFactory = storeRedirectorProxyFactory.getObject();
}
@Override
protected void onShutdown(ApplicationEvent event)
{
}
public void setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)
{
this.indexerAndSearcherFactory = indexerAndSearcherFactory;