Package org.imixs.workflow.engine.adminp
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 Summary
Fields inherited from interface org.imixs.workflow.engine.adminp.JobHandler
ISCOMPLETED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrun
(ItemCollection adminp) This method runs the RebuildLuceneIndexJob.
-
Field Details
-
ITEM_SYNCPOINT
- See Also:
-
ITEM_SYNCDATE
- See Also:
-
SNAPSHOT_TYPE_PRAFIX
- See Also:
-
-
Constructor Details
-
JobHandlerRebuildIndex
public JobHandlerRebuildIndex()
-
-
Method Details
-
run
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 interfaceJobHandler
- Parameters:
adminp
-- Returns:
- true when finished
- Throws:
AccessDeniedException
PluginException
AdminPException
-