eu.etaxonomy.cdm.api.service.search
Class CdmMassIndexer

java.lang.Object
  extended by eu.etaxonomy.cdm.api.service.search.CdmMassIndexer
All Implemented Interfaces:
ICdmMassIndexer

@Component
@Transactional
public class CdmMassIndexer
extends Object
implements ICdmMassIndexer

Author:
Andreas Kohlbecker

Field Summary
static Logger logger
           
 org.springframework.orm.hibernate4.HibernateTransactionManager transactionManager
           
 
Constructor Summary
CdmMassIndexer()
           
 
Method Summary
protected
<T extends CdmBase>
void
createDictionary(Class<T> type, IProgressMonitor monitor)
           
 void createDictionary(IProgressMonitor monitor)
          Create (spell-checking) dictionary listed in ICdmMassIndexer.dictionaryClasses().
 Class[] dictionaryClasses()
           
protected  org.hibernate.Session getSession()
           
 Class[] indexedClasses()
           
protected  void optimize(IProgressMonitor monitor)
           
protected
<T extends CdmBase>
void
purge(Class<T> type, IProgressMonitor monitor)
           
 void purge(IProgressMonitor monitor)
          This will wipe out the index.
protected
<T extends CdmBase>
void
reindex(Class<T> type, IProgressMonitor monitor)
           
 void reindex(IProgressMonitor monitor)
          Reindex all cdm entities listed in ICdmMassIndexer.indexedClasses().
 void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger

transactionManager

public org.springframework.orm.hibernate4.HibernateTransactionManager transactionManager
Constructor Detail

CdmMassIndexer

public CdmMassIndexer()
Method Detail

setTransactionManager

@Autowired
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)

getSession

protected org.hibernate.Session getSession()

reindex

protected <T extends CdmBase> void reindex(Class<T> type,
                                           IProgressMonitor monitor)

createDictionary

protected <T extends CdmBase> void createDictionary(Class<T> type,
                                                    IProgressMonitor monitor)
Parameters:
type -
monitor -

purge

protected <T extends CdmBase> void purge(Class<T> type,
                                         IProgressMonitor monitor)

reindex

public void reindex(IProgressMonitor monitor)
Description copied from interface: ICdmMassIndexer
Reindex all cdm entities listed in ICdmMassIndexer.indexedClasses(). Re-indexing will not purge the index.

Specified by:
reindex in interface ICdmMassIndexer
Parameters:
monitor - TODO

createDictionary

public void createDictionary(IProgressMonitor monitor)
Description copied from interface: ICdmMassIndexer
Create (spell-checking) dictionary listed in ICdmMassIndexer.dictionaryClasses(). This action will not purge the dictionary.

Specified by:
createDictionary in interface ICdmMassIndexer
Parameters:
monitor - TODO

optimize

protected void optimize(IProgressMonitor monitor)

purge

public void purge(IProgressMonitor monitor)
Description copied from interface: ICdmMassIndexer
This will wipe out the index.

Specified by:
purge in interface ICdmMassIndexer

indexedClasses

public Class[] indexedClasses()
Specified by:
indexedClasses in interface ICdmMassIndexer
Returns:

dictionaryClasses

public Class[] dictionaryClasses()
Specified by:
dictionaryClasses in interface ICdmMassIndexer
Returns:


Copyright © 2007-2013 EDIT. All Rights Reserved.