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-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.since 5.10 use lambda insteadstatic classDeprecated.since 5.10 use lambda instead -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTrigger(@NotNull Triggerable triggerable) Detailed check of trigger applicability.booleancanTriggerType(@NotNull Class<? extends Triggerable> triggerableType) General check of trigger applicability.
-
Method Details
-
canTriggerType
General check of trigger applicability.- Parameters:
triggerableType-- Returns:
- true iff the trigger can trigger some instances of given triggerable type.
-
canTrigger
Detailed check of trigger applicability. This can check attributes of the triggerable, not just its type, thus being more exact.- Parameters:
triggerable-- Returns:
-