Interface TriggerApplicabilityCondition

All Known Implementing Classes:
CanTriggerAnything, CanTriggerEnvironments, CanTriggerIfAnotherEnvironmentExistsInProject, CanTriggerPlans, CanTriggerPlansWithBitbucketCloudRepository, CanTriggerPlansWithGithubRepository, CanTriggerPlansWithRepositories, CanTriggerPlansWithStashRepository

public interface TriggerApplicabilityCondition
Trigger plugin component that defines if trigger is applicable to a specific Triggerable
  • Method Details

    • canTriggerType

      boolean canTriggerType(@NotNull @NotNull Class<? extends Triggerable> triggerableType)
      General check of trigger applicability.
      Parameters:
      triggerableType -
      Returns:
      true iff the trigger can trigger some instances of given triggerable type.
    • canTrigger

      boolean canTrigger(@NotNull @NotNull Triggerable triggerable)
      Detailed check of trigger applicability. This can check attributes of the triggerable, not just its type, thus being more exact.
      Parameters:
      triggerable -
      Returns: