org.alfresco.repo.admin.patch.impl
Class BaseReindexingPatch

java.lang.Object
  extended by org.alfresco.repo.admin.patch.AbstractPatch
      extended by org.alfresco.repo.admin.patch.impl.BaseReindexingPatch
All Implemented Interfaces:
Patch, org.springframework.context.ApplicationEventPublisherAware
Direct Known Subclasses:
AVMFormsPropertyTokenisationPatch, AVMStorePropertyTokenisationPatch

public abstract class BaseReindexingPatch
extends AbstractPatch

Base patch for reindexing nodes in a store based on a lucene query


Field Summary
protected  IndexerAndSearcher indexerAndSearcher
           
 
Fields inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, searchService, tenantAdminService, transactionHelper, transactionService
 
Constructor Summary
BaseReindexingPatch()
           
 
Method Summary
protected  void reindex(java.lang.String query, org.alfresco.service.cmr.repository.StoreRef store)
          Reindex a collection of nodes in a store based on a Lucene query
 void setIndexerAndSearcher(IndexerAndSearcher indexerAndSearcher)
           
 
Methods inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applies, apply, applyInternal, checkProperties, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, init, isForce, reportProgress, requiresTransaction, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setNamespaceService, setNodeService, setPatchService, setRequiresTransaction, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

indexerAndSearcher

protected IndexerAndSearcher indexerAndSearcher
Constructor Detail

BaseReindexingPatch

public BaseReindexingPatch()
Method Detail

setIndexerAndSearcher

public void setIndexerAndSearcher(IndexerAndSearcher indexerAndSearcher)

reindex

protected void reindex(java.lang.String query,
                       org.alfresco.service.cmr.repository.StoreRef store)
Reindex a collection of nodes in a store based on a Lucene query

Parameters:
query - The Lucene query to execute to return nodes
store - The Store containing the nodes to reindex


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.