Class ShadowIntegrityCheckActivityRun
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,ShadowIntegrityCheckWorkDefinition,ShadowIntegrityCheckActivityHandler,AbstractActivityWorkStateType>
com.evolveum.midpoint.model.impl.integrity.shadows.ShadowIntegrityCheckActivityRun
- All Implemented Interfaces:
ImplicitSegmentationResolver,IterativeActivityRunSpecifics,SearchBasedActivityRunSpecifics<ShadowType>,ExecutionSupport,DebugDumpable
public final class ShadowIntegrityCheckActivityRun
extends SearchBasedActivityRun<ShadowType,ShadowIntegrityCheckWorkDefinition,ShadowIntegrityCheckActivityHandler,AbstractActivityWorkStateType>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.task.api.ExecutionSupport
ExecutionSupport.CountersGroup -
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRun
searchSpecificationFields inherited from class com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRun
beans, bucket, coordinator, errorState, transientRunStatisticsFields inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun
activity, activityState, endTimestamp, startTimestamp, taskRunFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionvoidafterRun(OperationResult result) Called after the run.voidbeforeRun(OperationResult result) Called before the run.voidcacheResource(PrismObject<ResourceType> resource) @NotNull ActivityReportingCharacteristicsThis method should be called only after the concrete instance is fully initialized.booleancom.evolveum.midpoint.model.impl.integrity.shadows.ShadowCheckConfigurationcom.evolveum.midpoint.model.impl.integrity.shadows.ObjectTypeContextgetObjectTypeContext(com.evolveum.midpoint.model.impl.integrity.shadows.ContextMapKey key) booleanprocessItem(@NotNull ShadowType shadow, @NotNull ItemProcessingRequest<ShadowType> request, RunningTask workerTask, OperationResult result) Processes given item that came as part of a request.voidputObjectTypeContext(com.evolveum.midpoint.model.impl.integrity.shadows.ContextMapKey key, com.evolveum.midpoint.model.impl.integrity.shadows.ObjectTypeContext context) Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRun
countObjects, determineCurrentBucketSize, determineOverallSize, getDefaultErrorAction, getItemType, getQuery, getSchemaService, getSearchOptions, getSearchSpecificationRequired, getTaskManager, isInRepository, iterateOverItemsInBucket, prepareItemSourceForCurrentBucket, processItemMethods inherited from class com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRun
canUpdateThreadLocalStatistics, 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.LocalActivityRun
getCurrentResultStatusBean, getDesiredTaskObjectRef, getSimulationTransaction, getTaskExecutionMode, isExcludedFromStalenessChecking, runInternal, shouldUpdateProgressInStateOverview, updateItemProgressInTreeOverviewIfTimePassedMethods inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun
areActionsExecutedStatisticsSupported, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.task.api.ExecutionSupport
getActivityExecutionMode, getActivityPath, incrementCounters, recordIterativeOperationStartMethods inherited from interface com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRunSpecifics
afterBucketProcessing, beforeBucketProcessing, resolveImplicitSegmentation, useOtherActivityStateForCountersMethods inherited from interface com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRunSpecifics
createCustomSearchSpecification, createItemDefinitionProvider, customizeQuery, customizeSearchOptions
-
Method Details
-
doesRequireDirectRepositoryAccess
public boolean doesRequireDirectRepositoryAccess()- Returns:
- True if the activity requires direct repository access. Note that the framework does not check the authorizations of the user running the activity in such cases. If an autz check is needed, the activity is responsible for that.
-
createReportingCharacteristics
Description copied from class:AbstractActivityRunThis method should be called only after the concrete instance is fully initialized.- Specified by:
createReportingCharacteristicsin interfaceIterativeActivityRunSpecifics- Overrides:
createReportingCharacteristicsin classLocalActivityRun<ShadowIntegrityCheckWorkDefinition,ShadowIntegrityCheckActivityHandler, AbstractActivityWorkStateType> - Returns:
- Reporting characteristics of the activity run. They e.g. provide default values
for
ActivityReportingDefinition.
-
beforeRun
Description 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:
CommonException
-
processItem
public boolean processItem(@NotNull @NotNull ShadowType shadow, @NotNull @NotNull ItemProcessingRequest<ShadowType> request, RunningTask workerTask, OperationResult result) throws CommonException, ActivityRunException 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:
CommonExceptionActivityRunException
-
afterRun
Description copied from interface:IterativeActivityRunSpecificsCalled after the run.- Throws:
SchemaException
-
getConfiguration
public com.evolveum.midpoint.model.impl.integrity.shadows.ShadowCheckConfiguration getConfiguration() -
cacheResource
-
getObjectTypeContext
public com.evolveum.midpoint.model.impl.integrity.shadows.ObjectTypeContext getObjectTypeContext(com.evolveum.midpoint.model.impl.integrity.shadows.ContextMapKey key) -
putObjectTypeContext
public void putObjectTypeContext(com.evolveum.midpoint.model.impl.integrity.shadows.ContextMapKey key, com.evolveum.midpoint.model.impl.integrity.shadows.ObjectTypeContext context)
-