@DeclareRoles(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") public class JobHandlerUpgradeWorkitems extends Object implements JobHandler
ISCOMPLETED| Constructor and Description |
|---|
JobHandlerUpgradeWorkitems() |
| Modifier and Type | Method and Description |
|---|---|
ItemCollection |
run(ItemCollection adminp)
This method runs the RebuildLuceneIndexJob.
|
static boolean |
upgradeWorkitem(ItemCollection workitem)
This method upgrades missing fields in a workitem
|
public ItemCollection run(ItemCollection adminp) throws AdminPException
The method updates the index for all affected documents which can be filtered by 'type' and '$created'.
An existing lucene index must be deleted manually by the administrator.
After the run method is finished, the properties numIndex, numUpdates and numProcessed are updated.
If the number of documents returned from the DocumentService is less the the BlockSize, the method returns true to indicate that the Timer should be canceled.
The method runs in an isolated new transaction because the method flushes the local persistence manager.
run in interface JobHandleradminp - AccessDeniedExceptionPluginExceptionAdminPExceptionpublic static boolean upgradeWorkitem(ItemCollection workitem)
worktem - Copyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.