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 Modifier and Type Field Description static String
ITEM_SYNCDATE
static String
ITEM_SYNCPOINT
static String
SNAPSHOT_TYPE_PRAFIX
-
Fields inherited from interface org.imixs.workflow.engine.adminp.JobHandler
ISCOMPLETED
-
-
Constructor Summary
Constructors Constructor Description JobHandlerRebuildIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemCollection
run(ItemCollection adminp)
This method runs the RebuildLuceneIndexJob.
-
-
-
Field Detail
-
ITEM_SYNCPOINT
public static final String ITEM_SYNCPOINT
- See Also:
- Constant Field Values
-
ITEM_SYNCDATE
public static final String ITEM_SYNCDATE
- See Also:
- Constant Field Values
-
SNAPSHOT_TYPE_PRAFIX
public static final String SNAPSHOT_TYPE_PRAFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 interfaceJobHandler
- Parameters:
adminp
-- Returns:
- true when finished
- Throws:
AccessDeniedException
PluginException
AdminPException
-
-