Class AdvancedActivityRunSupportImpl
java.lang.Object
com.evolveum.midpoint.model.impl.tasks.AdvancedActivityRunSupportImpl
- All Implemented Interfaces:
AdvancedActivityRunSupport
@Component
public class AdvancedActivityRunSupportImpl
extends Object
implements AdvancedActivityRunSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDefinitionsToQuery
(@NotNull SearchSpecification<?> searchSpecification, @NotNull Task task, OperationResult result) Applies definitions to query.void
checkRawAuthorization
(Task task, OperationResult result) Checks if the principal has an authorization to issue direct repo calls even if they are not required by the activity implementation.@NotNull SearchSpecification<?>
createSearchSpecificationFromResourceObjectSetSpec
(@NotNull ResourceObjectSetSpecificationImpl objectSetSpecification, @NotNull RunningTask task, OperationResult result) createShadowFetchingPreprocessor
(@NotNull Producer<Collection<SelectorOptions<GetOperationOptions>>> producerOptions, @NotNull SchemaService schemaService) @NotNull SimulationResult
createSimulationResult
(@Nullable SimulationDefinitionType definition, @NotNull Task rootTask, @Nullable ConfigurationSpecificationType configurationSpecification, OperationResult result) Creates a simulation result into which the activity will store information about processed objects.evaluateQueryExpressions
(@NotNull ObjectQuery query, ExpressionProfile expressionProfile, @NotNull RunningTask task, OperationResult result) Assuming that query has expressions.<C extends Containerable>
SearchableItemSourcegetItemSourceFor
(Class<C> type) Returns item source suitable for processing items of given type.@NotNull SimulationResult
getSimulationResult
(@NotNull String resultOid, @NotNull OperationResult result) Provides aSimulationResult
for given simulation result OID.boolean
Returns true if the real support is present.
-
Constructor Details
-
AdvancedActivityRunSupportImpl
public AdvancedActivityRunSupportImpl()
-
-
Method Details
-
isPresent
public boolean isPresent()Description copied from interface:AdvancedActivityRunSupport
Returns true if the real support is present.- Specified by:
isPresent
in interfaceAdvancedActivityRunSupport
-
createSearchSpecificationFromResourceObjectSetSpec
@NotNull public @NotNull SearchSpecification<?> createSearchSpecificationFromResourceObjectSetSpec(@NotNull @NotNull ResourceObjectSetSpecificationImpl objectSetSpecification, @NotNull @NotNull RunningTask task, OperationResult result) throws SchemaException, ActivityRunException - Specified by:
createSearchSpecificationFromResourceObjectSetSpec
in interfaceAdvancedActivityRunSupport
- Throws:
SchemaException
ActivityRunException
-
evaluateQueryExpressions
public ObjectQuery evaluateQueryExpressions(@NotNull @NotNull ObjectQuery query, ExpressionProfile expressionProfile, @NotNull @NotNull RunningTask task, OperationResult result) throws CommonException Description copied from interface:AdvancedActivityRunSupport
Assuming that query has expressions.- Specified by:
evaluateQueryExpressions
in interfaceAdvancedActivityRunSupport
- Throws:
CommonException
-
applyDefinitionsToQuery
public void applyDefinitionsToQuery(@NotNull @NotNull SearchSpecification<?> searchSpecification, @NotNull @NotNull Task task, OperationResult result) throws CommonException Description copied from interface:AdvancedActivityRunSupport
Applies definitions to query. (Currently supported for provisioning definitions.)- Specified by:
applyDefinitionsToQuery
in interfaceAdvancedActivityRunSupport
- Throws:
CommonException
-
checkRawAuthorization
Description copied from interface:AdvancedActivityRunSupport
Checks if the principal has an authorization to issue direct repo calls even if they are not required by the activity implementation.- Specified by:
checkRawAuthorization
in interfaceAdvancedActivityRunSupport
- Throws:
CommonException
-
createShadowFetchingPreprocessor
public ItemPreprocessor<ShadowType> createShadowFetchingPreprocessor(@NotNull @NotNull Producer<Collection<SelectorOptions<GetOperationOptions>>> producerOptions, @NotNull @NotNull SchemaService schemaService) - Specified by:
createShadowFetchingPreprocessor
in interfaceAdvancedActivityRunSupport
-
getItemSourceFor
Description copied from interface:AdvancedActivityRunSupport
Returns item source suitable for processing items of given type.- Specified by:
getItemSourceFor
in interfaceAdvancedActivityRunSupport
-
createSimulationResult
@NotNull public @NotNull SimulationResult createSimulationResult(@Nullable @Nullable SimulationDefinitionType definition, @NotNull @NotNull Task rootTask, @Nullable @Nullable ConfigurationSpecificationType configurationSpecification, OperationResult result) throws ConfigurationException Description copied from interface:AdvancedActivityRunSupport
Creates a simulation result into which the activity will store information about processed objects. The result will be open until the activity realization is done. The realization can span multiple tasks (for distributed activities) and multiple task runs (in the case of suspend/resume actions).- Specified by:
createSimulationResult
in interfaceAdvancedActivityRunSupport
- Throws:
ConfigurationException
-
getSimulationResult
@NotNull public @NotNull SimulationResult getSimulationResult(@NotNull @NotNull String resultOid, @NotNull @NotNull OperationResult result) throws SchemaException, ObjectNotFoundException Description copied from interface:AdvancedActivityRunSupport
Provides aSimulationResult
for given simulation result OID. May involve repository get operation.- Specified by:
getSimulationResult
in interfaceAdvancedActivityRunSupport
- Throws:
SchemaException
ObjectNotFoundException
-