Class JobHandlerRebuildIndex

java.lang.Object
org.imixs.workflow.engine.adminp.JobHandlerRebuildIndex
All Implemented Interfaces:
JobHandler

@DeclareRoles("org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs("org.imixs.ACCESSLEVEL.MANAGERACCESS") public class JobHandlerRebuildIndex extends Object implements JobHandler
JobHandler to rebuild the lucene fulltext index. The job starts at 1970/01/01 and reads documents in sequence.
Author:
rsoika
  • Field Details

  • Constructor Details

    • JobHandlerRebuildIndex

      public JobHandlerRebuildIndex()
  • Method Details

    • run

      public ItemCollection run(ItemCollection adminp) throws AdminPException
      This method runs the RebuildLuceneIndexJob. The job starts at creation date 1970/01/01 and reads single documents in sequence.

      After the run method is finished, the properties numIndex, numUpdates and numProcessed are updated.

      The method runs in an isolated new transaction because the method flushes the local persistence manager.

      Specified by:
      run in interface JobHandler
      Parameters:
      adminp -
      Returns:
      true when finished
      Throws:
      AccessDeniedException
      PluginException
      AdminPException