Class DeleteNotUpdatedShadowTaskHandler.MyProcessing
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.tasks.simple.Processing<ShadowType,DeleteNotUpdatedShadowTaskHandler.MyExecutionContext>
-
- com.evolveum.midpoint.model.impl.tasks.DeleteNotUpdatedShadowTaskHandler.MyProcessing
-
- Enclosing class:
- DeleteNotUpdatedShadowTaskHandler
public class DeleteNotUpdatedShadowTaskHandler.MyProcessing extends Processing<ShadowType,DeleteNotUpdatedShadowTaskHandler.MyExecutionContext>
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.model.impl.tasks.simple.Processing
ctx
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectQuery
createQuery(ObjectQuery configuredQuery)
Creates search query.protected Collection<SelectorOptions<GetOperationOptions>>
createSearchOptions(Collection<SelectorOptions<GetOperationOptions>> configuredOptions)
Creates search options.protected @NotNull Class<? extends ShadowType>
determineObjectType(Class<? extends ShadowType> configuredType)
Creates object type.protected void
handleObject(PrismObject<ShadowType> object, RunningTask workerTask, OperationResult result)
Handles an object found.
-
-
-
Method Detail
-
determineObjectType
@NotNull protected @NotNull Class<? extends ShadowType> determineObjectType(Class<? extends ShadowType> configuredType)
Description copied from class:Processing
Creates object type. The default is to use object type that was configured in the task, or ObjectType if there was none. For handlers that are limited to a specific type this method MUST be overridden.- Overrides:
determineObjectType
in classProcessing<ShadowType,DeleteNotUpdatedShadowTaskHandler.MyExecutionContext>
-
createQuery
protected ObjectQuery createQuery(ObjectQuery configuredQuery) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
Description copied from class:Processing
Creates search query. The default is to use query that was configured in the task.- Overrides:
createQuery
in classProcessing<ShadowType,DeleteNotUpdatedShadowTaskHandler.MyExecutionContext>
- Parameters:
configuredQuery
- Query that was configured in the task object.- Throws:
CommunicationException
ObjectNotFoundException
SchemaException
SecurityViolationException
ConfigurationException
ExpressionEvaluationException
-
createSearchOptions
protected Collection<SelectorOptions<GetOperationOptions>> createSearchOptions(Collection<SelectorOptions<GetOperationOptions>> configuredOptions)
Description copied from class:Processing
Creates search options. The default is to use options specified in the task.- Overrides:
createSearchOptions
in classProcessing<ShadowType,DeleteNotUpdatedShadowTaskHandler.MyExecutionContext>
-
handleObject
protected void handleObject(PrismObject<ShadowType> object, RunningTask workerTask, OperationResult result) throws CommonException, PreconditionViolationException
Description copied from class:Processing
Handles an object found. Must be overridden. For simplicity we avoid returning a boolean flag. We expect that stopping the processing for simple tasks is driven solely by the configuration (based e.g. on the exceptions thrown).- Specified by:
handleObject
in classProcessing<ShadowType,DeleteNotUpdatedShadowTaskHandler.MyExecutionContext>
- Throws:
CommonException
PreconditionViolationException
-
-