Class SimpleActivityHandler<O extends ObjectType,WD extends WorkDefinition,SAH extends SimpleActivityHandler<O,WD,SAH>>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.tasks.ModelActivityHandler<WD,SAH>
-
- com.evolveum.midpoint.model.impl.tasks.simple.SimpleActivityHandler<O,WD,SAH>
-
- All Implemented Interfaces:
ActivityRunSupplier<WD,SAH>
,CandidateIdentifierFormatter
,ActivityHandler<WD,SAH>
- Direct Known Subclasses:
DeletionActivityHandler
,IterativeChangeExecutionActivityHandler
,IterativeScriptingActivityHandler
,ObjectIntegrityCheckActivityHandler
,RecomputationActivityHandler
,ReindexActivityHandler
,ShadowCleanupActivityHandler
@Component public abstract class SimpleActivityHandler<O extends ObjectType,WD extends WorkDefinition,SAH extends SimpleActivityHandler<O,WD,SAH>> extends ModelActivityHandler<WD,SAH>
Implementing class for simple model-level search-based activity handlers. It makes writing non-composite activities a little bit easier. Generally the implementation should contain an implementation ofWorkDefinition
, a subclass ofSearchBasedActivityRun
, and a configuration code likegetWorkDefinitionSupplier()
,getLegacyHandlerUri()
, and so on.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SimpleActivityHandler.ExecutionSupplier<O extends ObjectType,WD extends WorkDefinition,SAH extends SimpleActivityHandler<O,WD,SAH>>
-
Field Summary
Fields Modifier and Type Field Description protected Clock
clock
protected Clockwork
clockwork
protected ContextFactory
contextFactory
protected ModelController
modelController
protected ModelService
modelService
protected PrismContext
prismContext
protected ProvisioningService
provisioningService
protected RepositoryService
repositoryService
protected ScriptingService
scriptingService
protected SecurityEnforcer
securityEnforcer
protected SynchronizationService
synchronizationService
protected SyncTaskHelper
syncTaskHelper
protected WorkDefinitionFactory
workDefinitionFactory
-
Fields inherited from class com.evolveum.midpoint.model.impl.tasks.ModelActivityHandler
beans, commonTaskBeans, handlerRegistry
-
-
Constructor Summary
Constructors Constructor Description SimpleActivityHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractActivityRun<WD,SAH,?>
createActivityRun(@NotNull ActivityRunInstantiationContext<WD,SAH> context, @NotNull OperationResult result)
protected abstract @NotNull SimpleActivityHandler.ExecutionSupplier<O,WD,SAH>
getExecutionSupplier()
protected String
getLegacyHandlerUri()
protected abstract @NotNull String
getShortName()
protected abstract @NotNull Class<WD>
getWorkDefinitionClass()
protected abstract @NotNull WorkDefinitionFactory.WorkDefinitionSupplier
getWorkDefinitionSupplier()
protected abstract @NotNull QName
getWorkDefinitionTypeName()
void
register()
void
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, getDefaultArchetypeOid, getIdentifierPrefix, getRootActivityStateDefinition
-
-
-
-
Field Detail
-
workDefinitionFactory
@Autowired protected WorkDefinitionFactory workDefinitionFactory
-
provisioningService
@Autowired protected ProvisioningService provisioningService
-
prismContext
@Autowired protected PrismContext prismContext
-
modelController
@Autowired protected ModelController modelController
-
modelService
@Autowired protected ModelService modelService
-
synchronizationService
@Autowired protected SynchronizationService synchronizationService
-
syncTaskHelper
@Autowired protected SyncTaskHelper syncTaskHelper
-
securityEnforcer
@Autowired protected SecurityEnforcer securityEnforcer
-
repositoryService
@Autowired @Qualifier("cacheRepositoryService") protected RepositoryService repositoryService
-
clock
@Autowired protected Clock clock
-
clockwork
@Autowired protected Clockwork clockwork
-
contextFactory
@Autowired protected ContextFactory contextFactory
-
scriptingService
@Autowired protected ScriptingService scriptingService
-
-
Method Detail
-
register
@PostConstruct public void register()
-
unregister
@PreDestroy public void unregister()
-
createActivityRun
public AbstractActivityRun<WD,SAH,?> createActivityRun(@NotNull @NotNull ActivityRunInstantiationContext<WD,SAH> context, @NotNull @NotNull OperationResult result)
-
getWorkDefinitionTypeName
@NotNull protected abstract @NotNull QName getWorkDefinitionTypeName()
-
getWorkDefinitionSupplier
@NotNull protected abstract @NotNull WorkDefinitionFactory.WorkDefinitionSupplier getWorkDefinitionSupplier()
-
getExecutionSupplier
@NotNull protected abstract @NotNull SimpleActivityHandler.ExecutionSupplier<O,WD,SAH> getExecutionSupplier()
-
getLegacyHandlerUri
protected String getLegacyHandlerUri()
-
getShortName
@NotNull protected abstract @NotNull String getShortName()
-
-