Interface TriggerApplicabilityCondition
-
- All Known Implementing Classes:
CanTriggerAnything,CanTriggerEnvironments,CanTriggerIfAnotherEnvironmentExistsInProject,CanTriggerPlans,CanTriggerPlansWithBitbucketCloudRepository,CanTriggerPlansWithRepositories,CanTriggerPlansWithStashRepository
public interface TriggerApplicabilityConditionTrigger plugin component that defines if trigger is applicable to a specificTriggerable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTriggerApplicabilityCondition.CanTriggerPredicateDeprecated.since 5.10 use lambda insteadstatic classTriggerApplicabilityCondition.CanTriggerTypePredicateDeprecated.since 5.10 use lambda instead
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanTrigger(@NotNull Triggerable triggerable)Detailed check of trigger applicability.booleancanTriggerType(@NotNull Class<? extends Triggerable> triggerableType)General check of trigger applicability.
-
-
-
Method Detail
-
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:
-
-