Class ShadowCleanupActivityHandler.MyRun
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun<WD,AH,BS>
  
com.evolveum.midpoint.repo.common.activity.run.LocalActivityRun<WD,AH,WS>
  
com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRun<C,WD,AH,WS>
   
com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRun<ShadowType,ShadowCleanupActivityHandler.MyWorkDefinition,ShadowCleanupActivityHandler,AbstractActivityWorkStateType>
   
com.evolveum.midpoint.model.impl.tasks.ShadowCleanupActivityHandler.MyRun
- All Implemented Interfaces:
- ImplicitSegmentationResolver,- IterativeActivityRunSpecifics,- SearchBasedActivityRunSpecifics<ShadowType>,- ExecutionSupport,- DebugDumpable
- Enclosing class:
- ShadowCleanupActivityHandler
public final class ShadowCleanupActivityHandler.MyRun
extends SearchBasedActivityRun<ShadowType,ShadowCleanupActivityHandler.MyWorkDefinition,ShadowCleanupActivityHandler,AbstractActivityWorkStateType>   
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.task.api.ExecutionSupportExecutionSupport.CountersGroup
- 
Field SummaryFields inherited from class com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRunsearchSpecificationFields inherited from class com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRunbeans, bucket, coordinator, errorState, transientRunStatisticsFields inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRunactivity, activityState, endTimestamp, startTimestamp, taskRunFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeforeRun(OperationResult result) Called before the run.@NotNull ActivityReportingCharacteristicsThis method should be called only after the concrete instance is fully initialized.voidcustomizeQuery(SearchSpecification<ShadowType> searchSpecification, OperationResult result) Customizes a query present in the original search specification (usually derived from the task configuration).voidcustomizeSearchOptions(SearchSpecification<ShadowType> searchSpecification, OperationResult result) Customizes search options present in the original search specification (usually derived from the task configuration).protected @NotNull ObjectReferenceTypeReturns the value that should be put into task.objectRef.booleanprocessItem(@NotNull ShadowType shadow, @NotNull ItemProcessingRequest<ShadowType> request, RunningTask workerTask, OperationResult result) Processes given item that came as part of a request.Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRuncountObjects, determineCurrentBucketSize, determineOverallSize, getDefaultErrorAction, getItemType, getQuery, getSchemaService, getSearchOptions, getSearchSpecificationRequired, getTaskManager, isInRepository, iterateOverItemsInBucket, prepareItemSourceForCurrentBucket, processItemMethods inherited from class com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRuncanUpdateThreadLocalStatistics, determineActivityStateForCounters, disableGlobalConnIdOperationsListener, enableGlobalConnIdOperationsListener, ensureNoParallelism, ensureNoWorkerThreads, getBucket, getChannelOverride, getConnIdOperationsReport, getContextDescription, getContextDescriptionSpaced, getErrorState, getItemsReport, getRootTaskOid, getShortName, getTransientRunStatistics, handleError, isMultithreaded, runLocally, setContextDescription, shouldReportConnIdOperations, shouldReportInternalOperations, shouldReportItems, updateStatisticsMethods inherited from class com.evolveum.midpoint.repo.common.activity.run.LocalActivityRungetCurrentResultStatusBean, getSimulationTransaction, getTaskExecutionMode, isExcludedFromStalenessChecking, runInternal, shouldUpdateProgressInStateOverview, updateItemProgressInTreeOverviewIfTimePassedMethods inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRunareActionsExecutedStatisticsSupported, areRunRecordsSupported, areStatisticsSupported, areSynchronizationStatisticsSupported, canRun, debugDump, debugDumpExtra, determineActivityStateDefinition, ensureFullExecution, ensureNoDryRun, ensureNoPreviewNorDryRun, getActivity, getActivityDefinition, getActivityExecutionMode, getActivityHandler, getActivityPath, getActivityState, getActivityStateDefinition, getBeans, getItemsProcessed, getLocalParentRun, getReportingCharacteristics, getRunningTask, getStartTimestampRequired, getTaskRun, getTreeStateOverview, getWorkDefinition, incrementCounters, incrementProgress, isBucketAnalysis, isDryRun, isFullExecution, isNoExecution, isNonScavengingWorker, isProgressSupported, isWorker, onActivityRealizationComplete, onActivityRealizationStart, recordIterativeOperationStart, run, setInstanceReady, shouldCreateWorkStateOnInitialization, standardRunResult, standardRunResult, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.task.api.ExecutionSupportgetActivityExecutionMode, getActivityPath, incrementCounters, recordIterativeOperationStartMethods inherited from interface com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRunSpecificsafterBucketProcessing, afterRun, beforeBucketProcessing, resolveImplicitSegmentation, useOtherActivityStateForCountersMethods inherited from interface com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRunSpecificscreateCustomSearchSpecification, createItemDefinitionProvider, doesRequireDirectRepositoryAccess
- 
Method Details- 
createReportingCharacteristicsDescription copied from class:AbstractActivityRunThis method should be called only after the concrete instance is fully initialized.- Specified by:
- createReportingCharacteristicsin interface- IterativeActivityRunSpecifics
- Overrides:
- createReportingCharacteristicsin class- LocalActivityRun<ShadowCleanupActivityHandler.MyWorkDefinition,- ShadowCleanupActivityHandler, - AbstractActivityWorkStateType> 
- Returns:
- Reporting characteristics of the activity run. They e.g. provide default values
 for ActivityReportingDefinition.
 
- 
beforeRunDescription copied from interface:IterativeActivityRunSpecificsCalled before the run. Note that e.g. for search-based activities the search specification is *not* known at this moment.- Throws:
- ActivityRunException
- CommonException
 
- 
getDesiredTaskObjectRefDescription copied from class:LocalActivityRunReturns the value that should be put into task.objectRef. Should be overridden by subclasses. It should be called _after_IterativeActivityRunSpecifics.beforeRun(OperationResult)method, in order to give the execution a chance to prepare data for this method.
- 
customizeQuerypublic void customizeQuery(SearchSpecification<ShadowType> searchSpecification, OperationResult result) Description copied from interface:SearchBasedActivityRunSpecificsCustomizes a query present in the original search specification (usually derived from the task configuration). The activity can either add specific clauses here, or rewrite the query altogether.
- 
customizeSearchOptionspublic void customizeSearchOptions(SearchSpecification<ShadowType> searchSpecification, OperationResult result) Description copied from interface:SearchBasedActivityRunSpecificsCustomizes search options present in the original search specification (usually derived from the task configuration). The activity can either add or modify some options in the provided object - if it's not null - or replace the whole object by its own version.
- 
processItempublic boolean processItem(@NotNull @NotNull ShadowType shadow, @NotNull @NotNull ItemProcessingRequest<ShadowType> request, RunningTask workerTask, OperationResult result) throws CommonException Description copied from interface:SearchBasedActivityRunSpecificsProcesses given item that came as part of a request. BEWARE: Item may have been preprocessed, and may be different from the item present in the request.- Throws:
- CommonException
 
 
-