Interface SearchBasedActivityRunSpecifics<C extends Containerable>

    • Method Detail

      • createCustomSearchSpecification

        @Nullable
        default @Nullable SearchSpecification<C> createCustomSearchSpecification​(OperationResult result)
        Creates a complete search specification. If the activity is not interested in this kind of customization, it should return null, and the default search specification is then produced by the SearchBasedActivityRun. Note: freely add CommonException and ActivityRunException to the signature of this method if needed.
      • customizeQuery

        default ObjectQuery customizeQuery​(ObjectQuery configuredQuery,
                                           OperationResult result)
                                    throws CommonException
        Customizes a query present in the original search specification (usually derived from the task configuration). The activity can either add specific clauses here, or rewrite the query altogether.
        Throws:
        CommonException
      • doesRequireDirectRepositoryAccess

        default boolean doesRequireDirectRepositoryAccess()
        Returns:
        True if the activity requires direct repository access. Note that the framework does not check the authorizations of the user running the activity in such cases. If an autz check is needed, the activity is responsible for that.
      • createItemDefinitionProvider

        default ItemDefinitionProvider createItemDefinitionProvider()
        Returns a provider of definitions for runtime items (e.g. attributes) that are needed in bucket filters. Usually needed for activities that work with resource objects.