Interface AdvancedActivityRunSupport
-
- All Known Implementing Classes:
AdvancedActivityRunSupportImpl
public interface AdvancedActivityRunSupport
Advanced features needed for activity run, like 1. calling `modelObjectResolver` for search/count operations, 2. model-level processing of expressions in search queries, 3. authorizations, 4. resolving provisioning definitions in queries, 5. managing simulation result objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 resourceObjectSetSpecification, @NotNull RunningTask task, OperationResult result)
ItemPreprocessor<ShadowType>
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.ObjectQuery
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
isPresent()
Returns true if the real support is present.
-
-
-
Method Detail
-
isPresent
boolean isPresent()
Returns true if the real support is present.
-
createSearchSpecificationFromResourceObjectSetSpec
@NotNull @NotNull SearchSpecification<?> createSearchSpecificationFromResourceObjectSetSpec(@NotNull @NotNull ResourceObjectSetSpecificationImpl resourceObjectSetSpecification, @NotNull @NotNull RunningTask task, OperationResult result) throws SchemaException, ActivityRunException
- Throws:
SchemaException
ActivityRunException
-
evaluateQueryExpressions
ObjectQuery evaluateQueryExpressions(@NotNull @NotNull ObjectQuery query, ExpressionProfile expressionProfile, @NotNull @NotNull RunningTask task, OperationResult result) throws CommonException
Assuming that query has expressions.- Throws:
CommonException
-
applyDefinitionsToQuery
void applyDefinitionsToQuery(@NotNull @NotNull SearchSpecification<?> searchSpecification, @NotNull @NotNull Task task, OperationResult result) throws CommonException
Applies definitions to query. (Currently supported for provisioning definitions.)- Throws:
CommonException
-
checkRawAuthorization
void checkRawAuthorization(Task task, OperationResult result) throws CommonException
Checks if the principal has an authorization to issue direct repo calls even if they are not required by the activity implementation.- Throws:
CommonException
-
createShadowFetchingPreprocessor
ItemPreprocessor<ShadowType> createShadowFetchingPreprocessor(@NotNull @NotNull Producer<Collection<SelectorOptions<GetOperationOptions>>> producerOptions, @NotNull @NotNull SchemaService schemaService)
-
getItemSourceFor
<C extends Containerable> SearchableItemSource getItemSourceFor(Class<C> type)
Returns item source suitable for processing items of given type.
-
createSimulationResult
@NotNull @NotNull SimulationResult createSimulationResult(@Nullable @Nullable SimulationDefinitionType definition, @NotNull @NotNull Task rootTask, @Nullable @Nullable ConfigurationSpecificationType configurationSpecification, OperationResult result) throws ConfigurationException
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).- Throws:
ConfigurationException
-
getSimulationResult
@NotNull @NotNull SimulationResult getSimulationResult(@NotNull @NotNull String resultOid, @NotNull @NotNull OperationResult result) throws SchemaException, ObjectNotFoundException
Provides aSimulationResult
for given simulation result OID. May involve repository get operation.
-
-