public class LifecycleActionProcessor extends Object
LifecycleAgent
,
LifecyclePolicyAction
Modifier and Type | Method and Description |
---|---|
static int |
processDocumentsForTimedActions(LibrarySession session,
LifecyclePolicyEntry lpe,
LibraryObject[] docs)
Process the timed actions for the specified LifecyclePolicyEntry.
|
static void |
processEventAction(LibrarySession session,
Document doc)
Process the event action for the specified Document and
LifecyclePolicyEntry.
|
static Long[] |
selectDocumentIdsForTimedActions(LibrarySession session,
LifecyclePolicyEntry lpe,
int batchSize)
Process the document IDs that are candidates for timed actions
for the specified LifecyclePolicyEntry.
|
public static Long[] selectDocumentIdsForTimedActions(LibrarySession session, LifecyclePolicyEntry lpe, int batchSize) throws Exception
Performs a search for all documents that are candidates to move to the state indicated by the specified LifecycleEntry.
session
- the session contextlpe
- the policy entrybatchSize
- the maximum number of Documents to selectException
- if the operation failspublic static int processDocumentsForTimedActions(LibrarySession session, LifecyclePolicyEntry lpe, LibraryObject[] docs) throws Exception
Performs a search for all documents that are candidates to move to the state indicated by the specified LifecycleEntry.
session
- the session contextlpe
- the policy entrydocs
- the documents to process; each element in the
array is guaranteed to be a DocumentException
- if the operation failspublic static void processEventAction(LibrarySession session, Document doc) throws Exception
session
- the session contextdoc
- the document to processException
- if the operation failsCopyright © 2023. All rights reserved.