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.
-
-
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)
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.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.
-
-