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
,RoleMembershipManagementActivityHandler
,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 of
WorkDefinition
, a subclass of SearchBasedActivityRun
, and
a configuration code like getWorkDefinitionSupplier()
, and so on.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
SimpleActivityHandler.ExecutionSupplier<O extends ObjectType,
WD extends WorkDefinition, SAH extends SimpleActivityHandler<O, WD, SAH>> -
Field Summary
Modifier and TypeFieldDescriptionprotected BulkActionsService
protected Clock
protected Clockwork
protected ContextFactory
protected ModelController
protected ModelService
protected PrismContext
protected ProvisioningService
protected RepositoryService
protected SecurityEnforcer
protected SynchronizationService
protected SyncTaskHelper
protected WorkDefinitionFactory
Fields inherited from class com.evolveum.midpoint.model.impl.tasks.ModelActivityHandler
beans, commonTaskBeans, handlerRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateActivityRun
(@NotNull ActivityRunInstantiationContext<WD, SAH> context, @NotNull OperationResult result) protected abstract @NotNull SimpleActivityHandler.ExecutionSupplier<O,
WD, SAH> protected abstract @NotNull String
protected abstract @NotNull QName
protected abstract @NotNull WorkDefinitionFactory.WorkDefinitionSupplier
protected abstract @NotNull QName
void
register()
void
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 Details
-
workDefinitionFactory
-
provisioningService
-
prismContext
-
modelController
-
modelService
-
synchronizationService
-
syncTaskHelper
-
securityEnforcer
-
repositoryService
-
clock
-
clockwork
-
contextFactory
-
modelObjectResolver
-
bulkActionsService
-
-
Constructor Details
-
SimpleActivityHandler
public SimpleActivityHandler()
-
-
Method Details
-
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
-
getWorkDefinitionItemName
-
getWorkDefinitionClass
-
getWorkDefinitionSupplier
@NotNull protected abstract @NotNull WorkDefinitionFactory.WorkDefinitionSupplier getWorkDefinitionSupplier() -
getExecutionSupplier
@NotNull protected abstract @NotNull SimpleActivityHandler.ExecutionSupplier<O,WD, getExecutionSupplier()SAH> -
getShortName
-