Class ShadowCleanupActivityHandler
java.lang.Object
com.evolveum.midpoint.model.impl.tasks.ModelActivityHandler<WD,SAH>
com.evolveum.midpoint.model.impl.tasks.simple.SimpleActivityHandler<ShadowType,ShadowCleanupActivityHandler.MyWorkDefinition,ShadowCleanupActivityHandler>
com.evolveum.midpoint.model.impl.tasks.ShadowCleanupActivityHandler
- All Implemented Interfaces:
ActivityRunSupplier<ShadowCleanupActivityHandler.MyWorkDefinition,
,ShadowCleanupActivityHandler> CandidateIdentifierFormatter
,ActivityHandler<ShadowCleanupActivityHandler.MyWorkDefinition,
ShadowCleanupActivityHandler>
@Component
public class ShadowCleanupActivityHandler
extends SimpleActivityHandler<ShadowType,ShadowCleanupActivityHandler.MyWorkDefinition,ShadowCleanupActivityHandler>
The original idea behind this activity was to treat shadows on (asynchronous) Kafka resources that did not support
"read" operation (or did that in a very limited way). So the only way how to know what shadows are really existing
was to send regular account update events that would keep "fullSynchronizationTimestamp" up to date. Shadows that
were not updated were considered to be dead.
However, such an approach is a bit brittle. In particular, if used for a regular resource, it may be possible that
such a shadow really exists. Hence, in 4.7 the behavior was changed to call explicit provisioning "getObject"
operation instead of simply assuming the shadow is gone. This conflicts with the original use case, and if that
should be usable again, the code would need to be improved somehow.
TODO Decide on the fate of this activity (MID-8350)
- Author:
- skublik
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
static class
Nested classes/interfaces inherited from class com.evolveum.midpoint.model.impl.tasks.simple.SimpleActivityHandler
SimpleActivityHandler.ExecutionSupplier<O extends ObjectType,
WD extends WorkDefinition, SAH extends SimpleActivityHandler<O, WD, SAH>> -
Field Summary
Fields inherited from class com.evolveum.midpoint.model.impl.tasks.simple.SimpleActivityHandler
bulkActionsService, clock, clockwork, contextFactory, modelController, modelObjectResolver, modelService, prismContext, provisioningService, repositoryService, securityEnforcer, synchronizationService, syncTaskHelper, workDefinitionFactory
Fields inherited from class com.evolveum.midpoint.model.impl.tasks.ModelActivityHandler
beans, commonTaskBeans, handlerRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns task archetype OID connected to this activity handler.protected @NotNull SimpleActivityHandler.ExecutionSupplier<ShadowType,
ShadowCleanupActivityHandler.MyWorkDefinition, ShadowCleanupActivityHandler> protected @NotNull String
protected @NotNull Class<ShadowCleanupActivityHandler.MyWorkDefinition>
protected @NotNull QName
protected @NotNull WorkDefinitionFactory.WorkDefinitionSupplier
protected @NotNull QName
Methods inherited from class com.evolveum.midpoint.model.impl.tasks.simple.SimpleActivityHandler
createActivityRun, register, unregister
Methods inherited from class com.evolveum.midpoint.model.impl.tasks.ModelActivityHandler
getModelBeans
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.repo.common.activity.handlers.ActivityHandler
createChildActivities, formatCandidateIdentifier, getRootActivityStateDefinition
-
Constructor Details
-
ShadowCleanupActivityHandler
public ShadowCleanupActivityHandler()
-
-
Method Details
-
getWorkDefinitionTypeName
-
getWorkDefinitionItemName
-
getWorkDefinitionClass
@NotNull protected @NotNull Class<ShadowCleanupActivityHandler.MyWorkDefinition> getWorkDefinitionClass() -
getWorkDefinitionSupplier
@NotNull protected @NotNull WorkDefinitionFactory.WorkDefinitionSupplier getWorkDefinitionSupplier() -
getExecutionSupplier
@NotNull protected @NotNull SimpleActivityHandler.ExecutionSupplier<ShadowType,ShadowCleanupActivityHandler.MyWorkDefinition, getExecutionSupplier()ShadowCleanupActivityHandler> -
getDefaultArchetypeOid
Description copied from interface:ActivityHandler
Returns task archetype OID connected to this activity handler. When a generic task starts, it is given an archetype based on the activity handler for the task's main activity. (If not set before.) -
getShortName
-
getIdentifierPrefix
-